Unable to download packages from local cosmic repository
Tried making a local copy of the cosmic repo, but every time I try installing a package I'm getting Package has no installation candiate.
I followed the steps here to create the local repo.
This is my mirror.list
############# config ##################
#
set base_path /mnt/mirror
#
# set mirror_path $base_path/mirror
# set skel_path $base_path/skel
# set var_path $base_path/var
# set cleanscript $var_path/clean.sh
# set defaultarch <running host architecture>
# set postmirror_script $var_path/postmirror.sh
# set run_postmirror 0
set nthreads 20
set _tilde 0
#
############# end config ##############
deb http://archive.ubuntu.com/ubuntu cosmic main restricted universe multiverse
deb http://archive.ubuntu.com/ubuntu cosmic-security main restricted universe multiverse
deb http://archive.ubuntu.com/ubuntu cosmic-updates main restricted universe multiverse
deb-src http://archive.ubuntu.com/ubuntu cosmic main restricted universe multiverse
deb-src http://archive.ubuntu.com/ubuntu cosmic-security main restricted universe multiverse
deb-src http://archive.ubuntu.com/ubuntu cosmic-updates main restricted universe multiverse
clean http://archive.ubuntu.com/ubuntu
I made the symlink in /var/www/html to point to the repo for apache2:
ls -la /var/www/html/
total 20
drwxr-xr-x 2 root root 4096 Jan 1 11:58 .
drwxr-xr-x 3 root root 4096 Jan 1 11:27 ..
-rw-r--r-- 1 root root 10918 Jan 1 11:32 index.html
lrwxrwxrwx 1 root root 44 Jan 1 11:58 ubuntu -> /mnt/mirror/mirror/archive.ubuntu.com/ubuntu
I updated my sources.list and ran apt-get update
deb http://127.0.1.1/ubuntu cosmic main restricted universe multiverse
deb http://127.0.1.1/ubuntu cosmic-security main restricted universe multiverse
deb http://127.0.1.1/ubuntu cosmic-updates main restricted universe multiverse
I can see the directories when I visit the page in a browser, and it looks like it matches the official repo.
What am I missing here?
apt package-management apache2 localrepository
add a comment |
Tried making a local copy of the cosmic repo, but every time I try installing a package I'm getting Package has no installation candiate.
I followed the steps here to create the local repo.
This is my mirror.list
############# config ##################
#
set base_path /mnt/mirror
#
# set mirror_path $base_path/mirror
# set skel_path $base_path/skel
# set var_path $base_path/var
# set cleanscript $var_path/clean.sh
# set defaultarch <running host architecture>
# set postmirror_script $var_path/postmirror.sh
# set run_postmirror 0
set nthreads 20
set _tilde 0
#
############# end config ##############
deb http://archive.ubuntu.com/ubuntu cosmic main restricted universe multiverse
deb http://archive.ubuntu.com/ubuntu cosmic-security main restricted universe multiverse
deb http://archive.ubuntu.com/ubuntu cosmic-updates main restricted universe multiverse
deb-src http://archive.ubuntu.com/ubuntu cosmic main restricted universe multiverse
deb-src http://archive.ubuntu.com/ubuntu cosmic-security main restricted universe multiverse
deb-src http://archive.ubuntu.com/ubuntu cosmic-updates main restricted universe multiverse
clean http://archive.ubuntu.com/ubuntu
I made the symlink in /var/www/html to point to the repo for apache2:
ls -la /var/www/html/
total 20
drwxr-xr-x 2 root root 4096 Jan 1 11:58 .
drwxr-xr-x 3 root root 4096 Jan 1 11:27 ..
-rw-r--r-- 1 root root 10918 Jan 1 11:32 index.html
lrwxrwxrwx 1 root root 44 Jan 1 11:58 ubuntu -> /mnt/mirror/mirror/archive.ubuntu.com/ubuntu
I updated my sources.list and ran apt-get update
deb http://127.0.1.1/ubuntu cosmic main restricted universe multiverse
deb http://127.0.1.1/ubuntu cosmic-security main restricted universe multiverse
deb http://127.0.1.1/ubuntu cosmic-updates main restricted universe multiverse
I can see the directories when I visit the page in a browser, and it looks like it matches the official repo.
What am I missing here?
apt package-management apache2 localrepository
add a comment |
Tried making a local copy of the cosmic repo, but every time I try installing a package I'm getting Package has no installation candiate.
I followed the steps here to create the local repo.
This is my mirror.list
############# config ##################
#
set base_path /mnt/mirror
#
# set mirror_path $base_path/mirror
# set skel_path $base_path/skel
# set var_path $base_path/var
# set cleanscript $var_path/clean.sh
# set defaultarch <running host architecture>
# set postmirror_script $var_path/postmirror.sh
# set run_postmirror 0
set nthreads 20
set _tilde 0
#
############# end config ##############
deb http://archive.ubuntu.com/ubuntu cosmic main restricted universe multiverse
deb http://archive.ubuntu.com/ubuntu cosmic-security main restricted universe multiverse
deb http://archive.ubuntu.com/ubuntu cosmic-updates main restricted universe multiverse
deb-src http://archive.ubuntu.com/ubuntu cosmic main restricted universe multiverse
deb-src http://archive.ubuntu.com/ubuntu cosmic-security main restricted universe multiverse
deb-src http://archive.ubuntu.com/ubuntu cosmic-updates main restricted universe multiverse
clean http://archive.ubuntu.com/ubuntu
I made the symlink in /var/www/html to point to the repo for apache2:
ls -la /var/www/html/
total 20
drwxr-xr-x 2 root root 4096 Jan 1 11:58 .
drwxr-xr-x 3 root root 4096 Jan 1 11:27 ..
-rw-r--r-- 1 root root 10918 Jan 1 11:32 index.html
lrwxrwxrwx 1 root root 44 Jan 1 11:58 ubuntu -> /mnt/mirror/mirror/archive.ubuntu.com/ubuntu
I updated my sources.list and ran apt-get update
deb http://127.0.1.1/ubuntu cosmic main restricted universe multiverse
deb http://127.0.1.1/ubuntu cosmic-security main restricted universe multiverse
deb http://127.0.1.1/ubuntu cosmic-updates main restricted universe multiverse
I can see the directories when I visit the page in a browser, and it looks like it matches the official repo.
What am I missing here?
apt package-management apache2 localrepository
Tried making a local copy of the cosmic repo, but every time I try installing a package I'm getting Package has no installation candiate.
I followed the steps here to create the local repo.
This is my mirror.list
############# config ##################
#
set base_path /mnt/mirror
#
# set mirror_path $base_path/mirror
# set skel_path $base_path/skel
# set var_path $base_path/var
# set cleanscript $var_path/clean.sh
# set defaultarch <running host architecture>
# set postmirror_script $var_path/postmirror.sh
# set run_postmirror 0
set nthreads 20
set _tilde 0
#
############# end config ##############
deb http://archive.ubuntu.com/ubuntu cosmic main restricted universe multiverse
deb http://archive.ubuntu.com/ubuntu cosmic-security main restricted universe multiverse
deb http://archive.ubuntu.com/ubuntu cosmic-updates main restricted universe multiverse
deb-src http://archive.ubuntu.com/ubuntu cosmic main restricted universe multiverse
deb-src http://archive.ubuntu.com/ubuntu cosmic-security main restricted universe multiverse
deb-src http://archive.ubuntu.com/ubuntu cosmic-updates main restricted universe multiverse
clean http://archive.ubuntu.com/ubuntu
I made the symlink in /var/www/html to point to the repo for apache2:
ls -la /var/www/html/
total 20
drwxr-xr-x 2 root root 4096 Jan 1 11:58 .
drwxr-xr-x 3 root root 4096 Jan 1 11:27 ..
-rw-r--r-- 1 root root 10918 Jan 1 11:32 index.html
lrwxrwxrwx 1 root root 44 Jan 1 11:58 ubuntu -> /mnt/mirror/mirror/archive.ubuntu.com/ubuntu
I updated my sources.list and ran apt-get update
deb http://127.0.1.1/ubuntu cosmic main restricted universe multiverse
deb http://127.0.1.1/ubuntu cosmic-security main restricted universe multiverse
deb http://127.0.1.1/ubuntu cosmic-updates main restricted universe multiverse
I can see the directories when I visit the page in a browser, and it looks like it matches the official repo.
What am I missing here?
apt package-management apache2 localrepository
apt package-management apache2 localrepository
edited Jan 1 at 23:00
gr0k
asked Jan 1 at 18:06
gr0kgr0k
1263
1263
add a comment |
add a comment |
1 Answer
1
active
oldest
votes
Found this post where he used the following:
deb [arch=amd64 trusted=yes] file:///home/discoprodigy debbin/
Modified my sources.list:
deb [arch=amd64 trusted=yes] http://127.0.0.1/ubuntu cosmic main restricted universe multiverse
Looks like adding architecture and trusted fixed the problem.
add a comment |
Your Answer
StackExchange.ready(function() {
var channelOptions = {
tags: "".split(" "),
id: "89"
};
initTagRenderer("".split(" "), "".split(" "), channelOptions);
StackExchange.using("externalEditor", function() {
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled) {
StackExchange.using("snippets", function() {
createEditor();
});
}
else {
createEditor();
}
});
function createEditor() {
StackExchange.prepareEditor({
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: true,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: 10,
bindNavPrevention: true,
postfix: "",
imageUploader: {
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
},
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
});
}
});
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2faskubuntu.com%2fquestions%2f1106063%2funable-to-download-packages-from-local-cosmic-repository%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
1 Answer
1
active
oldest
votes
1 Answer
1
active
oldest
votes
active
oldest
votes
active
oldest
votes
Found this post where he used the following:
deb [arch=amd64 trusted=yes] file:///home/discoprodigy debbin/
Modified my sources.list:
deb [arch=amd64 trusted=yes] http://127.0.0.1/ubuntu cosmic main restricted universe multiverse
Looks like adding architecture and trusted fixed the problem.
add a comment |
Found this post where he used the following:
deb [arch=amd64 trusted=yes] file:///home/discoprodigy debbin/
Modified my sources.list:
deb [arch=amd64 trusted=yes] http://127.0.0.1/ubuntu cosmic main restricted universe multiverse
Looks like adding architecture and trusted fixed the problem.
add a comment |
Found this post where he used the following:
deb [arch=amd64 trusted=yes] file:///home/discoprodigy debbin/
Modified my sources.list:
deb [arch=amd64 trusted=yes] http://127.0.0.1/ubuntu cosmic main restricted universe multiverse
Looks like adding architecture and trusted fixed the problem.
Found this post where he used the following:
deb [arch=amd64 trusted=yes] file:///home/discoprodigy debbin/
Modified my sources.list:
deb [arch=amd64 trusted=yes] http://127.0.0.1/ubuntu cosmic main restricted universe multiverse
Looks like adding architecture and trusted fixed the problem.
answered Jan 1 at 23:11
gr0kgr0k
1263
1263
add a comment |
add a comment |
Thanks for contributing an answer to Ask Ubuntu!
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
To learn more, see our tips on writing great answers.
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2faskubuntu.com%2fquestions%2f1106063%2funable-to-download-packages-from-local-cosmic-repository%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown