Unable to download packages from local cosmic repository












0















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?










share|improve this question





























    0















    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?










    share|improve this question



























      0












      0








      0








      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?










      share|improve this question
















      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






      share|improve this question















      share|improve this question













      share|improve this question




      share|improve this question








      edited Jan 1 at 23:00







      gr0k

















      asked Jan 1 at 18:06









      gr0kgr0k

      1263




      1263






















          1 Answer
          1






          active

          oldest

          votes


















          0














          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.






          share|improve this answer























            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
            });


            }
            });














            draft saved

            draft discarded


















            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









            0














            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.






            share|improve this answer




























              0














              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.






              share|improve this answer


























                0












                0








                0







                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.






                share|improve this answer













                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.







                share|improve this answer












                share|improve this answer



                share|improve this answer










                answered Jan 1 at 23:11









                gr0kgr0k

                1263




                1263






























                    draft saved

                    draft discarded




















































                    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.




                    draft saved


                    draft discarded














                    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





















































                    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







                    Popular posts from this blog

                    Mont Emei

                    Province de Neuquén

                    Journaliste