Problem creating apt cdrom repo

The name of the pictureThe name of the pictureThe name of the pictureClash Royale CLAN TAG#URR8PPP








up vote
0
down vote

favorite












Im trying to create a apt cdrom repository. As a PoC Im trying to create a repository only containing what is needed to install vim.



I start by download the package and its dependecies



ls packages gives me



cdebconf_0.213ubuntu1_amd64.deb
debconf_1.5.63_all.deb
dpkg_1.18.24ubuntu1_amd64.deb
gcc-7-base_7.2.0-8ubuntu3.2_amd64.deb
install-info_6.4.90.dfsg.1-1build1_amd64.deb
libacl1_2.2.52-3build1_amd64.deb
libattr1_1%3a2.4.47-2build1_amd64.deb
libbz2-1.0_1.0.6-8.1_amd64.deb
libc6_2.26-0ubuntu2.1_amd64.deb
libdb5.3_5.3.28-13.1_amd64.deb
libexpat1_2.2.3-1_amd64.deb
libffi6_3.2.1-6_amd64.deb
libgcc1_1%3a7.2.0-8ubuntu3.2_amd64.deb
libgpm2_1.20.4-6.2_amd64.deb
liblzma5_5.2.2-1.3_amd64.deb
libmpdec2_2.4.2-1_amd64.deb
libncursesw5_6.0+20160625-1ubuntu1_amd64.deb
libpcre3_2%3a8.39-5ubuntu3_amd64.deb
libpython3.6_3.6.3-1ubuntu1_amd64.deb
libpython3.6-minimal_3.6.3-1ubuntu1_amd64.deb
libpython3.6-stdlib_3.6.3-1ubuntu1_amd64.deb
libreadline7_7.0-0ubuntu2_amd64.deb
libselinux1_2.7-1_amd64.deb
libsqlite3-0_3.19.3-3_amd64.deb
libssl1.0.0_1.0.2g-1ubuntu13.3_amd64.deb
libtinfo5_6.0+20160625-1ubuntu1_amd64.deb
mime-support_3.60ubuntu1_all.deb
Packages.gz
perl-base_5.26.0-8ubuntu1_amd64.deb
readline-common_7.0-0ubuntu2_all.deb
tar_1.29b-2_amd64.deb
vim_2%3a8.0.0197-4ubuntu5_amd64.deb
vim-common_2%3a8.0.0197-4ubuntu5_all.deb
vim-runtime_2%3a8.0.0197-4ubuntu5_all.deb
xxd_2%3a8.0.0197-4ubuntu5_amd64.deb
zlib1g_1%3a1.2.11.dfsg-0ubuntu2_amd64.deb


I create a packages index



dpkg-scanpackages . /dev/null | gzip -9c > Packages.gz


Lastly from the parent directory I create a image of the repo



genisoimage -J -R -V "Ubuntu update-iso" -o update-iso.iso packages/


On the machine where I would like to use the repository I mount the iso and register it as a cdrom repo.



apt-cdrom add
Using CD-ROM mount point /media/test/Ubuntu update-iso/
Identifying... [1297a704c4b1ca71c8579037f58631c2-2]
Scanning disc for index files...
Found 1 package indexes, 0 source indexes, 0 translation indexes and 0 signatures
Please provide a name for this Disc, such as 'Debian 5.0.3 Disk 1':
test
Name: 'test'
This disc is called:
'test'
Reading Package Indexes... Done
Writing new source list
Source list entries for this disc are:
deb cdrom:[test]/ /


Lastly trying to install vim on the machine



apt-get install vim

...
Do you want to continue? [Y/n]
Get:1 cdrom://test artful/main amd64 vim-runtime all 2:8.0.0197-4ubuntu5 [5,317 kB]
Err:2 cdrom://test artful/main amd64 vim amd64 2:8.0.0197-4ubuntu5
File not found


Seems the runtime dependecy is found, but the vim package itself is reported as File not found. I can see that the package is in the iso.



vim_2%3a8.0.0197-4ubuntu5_amd64


and the package is listed in Packages.gz



Any ideas? Im really out of them..










share|improve this question

























    up vote
    0
    down vote

    favorite












    Im trying to create a apt cdrom repository. As a PoC Im trying to create a repository only containing what is needed to install vim.



    I start by download the package and its dependecies



    ls packages gives me



    cdebconf_0.213ubuntu1_amd64.deb
    debconf_1.5.63_all.deb
    dpkg_1.18.24ubuntu1_amd64.deb
    gcc-7-base_7.2.0-8ubuntu3.2_amd64.deb
    install-info_6.4.90.dfsg.1-1build1_amd64.deb
    libacl1_2.2.52-3build1_amd64.deb
    libattr1_1%3a2.4.47-2build1_amd64.deb
    libbz2-1.0_1.0.6-8.1_amd64.deb
    libc6_2.26-0ubuntu2.1_amd64.deb
    libdb5.3_5.3.28-13.1_amd64.deb
    libexpat1_2.2.3-1_amd64.deb
    libffi6_3.2.1-6_amd64.deb
    libgcc1_1%3a7.2.0-8ubuntu3.2_amd64.deb
    libgpm2_1.20.4-6.2_amd64.deb
    liblzma5_5.2.2-1.3_amd64.deb
    libmpdec2_2.4.2-1_amd64.deb
    libncursesw5_6.0+20160625-1ubuntu1_amd64.deb
    libpcre3_2%3a8.39-5ubuntu3_amd64.deb
    libpython3.6_3.6.3-1ubuntu1_amd64.deb
    libpython3.6-minimal_3.6.3-1ubuntu1_amd64.deb
    libpython3.6-stdlib_3.6.3-1ubuntu1_amd64.deb
    libreadline7_7.0-0ubuntu2_amd64.deb
    libselinux1_2.7-1_amd64.deb
    libsqlite3-0_3.19.3-3_amd64.deb
    libssl1.0.0_1.0.2g-1ubuntu13.3_amd64.deb
    libtinfo5_6.0+20160625-1ubuntu1_amd64.deb
    mime-support_3.60ubuntu1_all.deb
    Packages.gz
    perl-base_5.26.0-8ubuntu1_amd64.deb
    readline-common_7.0-0ubuntu2_all.deb
    tar_1.29b-2_amd64.deb
    vim_2%3a8.0.0197-4ubuntu5_amd64.deb
    vim-common_2%3a8.0.0197-4ubuntu5_all.deb
    vim-runtime_2%3a8.0.0197-4ubuntu5_all.deb
    xxd_2%3a8.0.0197-4ubuntu5_amd64.deb
    zlib1g_1%3a1.2.11.dfsg-0ubuntu2_amd64.deb


    I create a packages index



    dpkg-scanpackages . /dev/null | gzip -9c > Packages.gz


    Lastly from the parent directory I create a image of the repo



    genisoimage -J -R -V "Ubuntu update-iso" -o update-iso.iso packages/


    On the machine where I would like to use the repository I mount the iso and register it as a cdrom repo.



    apt-cdrom add
    Using CD-ROM mount point /media/test/Ubuntu update-iso/
    Identifying... [1297a704c4b1ca71c8579037f58631c2-2]
    Scanning disc for index files...
    Found 1 package indexes, 0 source indexes, 0 translation indexes and 0 signatures
    Please provide a name for this Disc, such as 'Debian 5.0.3 Disk 1':
    test
    Name: 'test'
    This disc is called:
    'test'
    Reading Package Indexes... Done
    Writing new source list
    Source list entries for this disc are:
    deb cdrom:[test]/ /


    Lastly trying to install vim on the machine



    apt-get install vim

    ...
    Do you want to continue? [Y/n]
    Get:1 cdrom://test artful/main amd64 vim-runtime all 2:8.0.0197-4ubuntu5 [5,317 kB]
    Err:2 cdrom://test artful/main amd64 vim amd64 2:8.0.0197-4ubuntu5
    File not found


    Seems the runtime dependecy is found, but the vim package itself is reported as File not found. I can see that the package is in the iso.



    vim_2%3a8.0.0197-4ubuntu5_amd64


    and the package is listed in Packages.gz



    Any ideas? Im really out of them..










    share|improve this question























      up vote
      0
      down vote

      favorite









      up vote
      0
      down vote

      favorite











      Im trying to create a apt cdrom repository. As a PoC Im trying to create a repository only containing what is needed to install vim.



      I start by download the package and its dependecies



      ls packages gives me



      cdebconf_0.213ubuntu1_amd64.deb
      debconf_1.5.63_all.deb
      dpkg_1.18.24ubuntu1_amd64.deb
      gcc-7-base_7.2.0-8ubuntu3.2_amd64.deb
      install-info_6.4.90.dfsg.1-1build1_amd64.deb
      libacl1_2.2.52-3build1_amd64.deb
      libattr1_1%3a2.4.47-2build1_amd64.deb
      libbz2-1.0_1.0.6-8.1_amd64.deb
      libc6_2.26-0ubuntu2.1_amd64.deb
      libdb5.3_5.3.28-13.1_amd64.deb
      libexpat1_2.2.3-1_amd64.deb
      libffi6_3.2.1-6_amd64.deb
      libgcc1_1%3a7.2.0-8ubuntu3.2_amd64.deb
      libgpm2_1.20.4-6.2_amd64.deb
      liblzma5_5.2.2-1.3_amd64.deb
      libmpdec2_2.4.2-1_amd64.deb
      libncursesw5_6.0+20160625-1ubuntu1_amd64.deb
      libpcre3_2%3a8.39-5ubuntu3_amd64.deb
      libpython3.6_3.6.3-1ubuntu1_amd64.deb
      libpython3.6-minimal_3.6.3-1ubuntu1_amd64.deb
      libpython3.6-stdlib_3.6.3-1ubuntu1_amd64.deb
      libreadline7_7.0-0ubuntu2_amd64.deb
      libselinux1_2.7-1_amd64.deb
      libsqlite3-0_3.19.3-3_amd64.deb
      libssl1.0.0_1.0.2g-1ubuntu13.3_amd64.deb
      libtinfo5_6.0+20160625-1ubuntu1_amd64.deb
      mime-support_3.60ubuntu1_all.deb
      Packages.gz
      perl-base_5.26.0-8ubuntu1_amd64.deb
      readline-common_7.0-0ubuntu2_all.deb
      tar_1.29b-2_amd64.deb
      vim_2%3a8.0.0197-4ubuntu5_amd64.deb
      vim-common_2%3a8.0.0197-4ubuntu5_all.deb
      vim-runtime_2%3a8.0.0197-4ubuntu5_all.deb
      xxd_2%3a8.0.0197-4ubuntu5_amd64.deb
      zlib1g_1%3a1.2.11.dfsg-0ubuntu2_amd64.deb


      I create a packages index



      dpkg-scanpackages . /dev/null | gzip -9c > Packages.gz


      Lastly from the parent directory I create a image of the repo



      genisoimage -J -R -V "Ubuntu update-iso" -o update-iso.iso packages/


      On the machine where I would like to use the repository I mount the iso and register it as a cdrom repo.



      apt-cdrom add
      Using CD-ROM mount point /media/test/Ubuntu update-iso/
      Identifying... [1297a704c4b1ca71c8579037f58631c2-2]
      Scanning disc for index files...
      Found 1 package indexes, 0 source indexes, 0 translation indexes and 0 signatures
      Please provide a name for this Disc, such as 'Debian 5.0.3 Disk 1':
      test
      Name: 'test'
      This disc is called:
      'test'
      Reading Package Indexes... Done
      Writing new source list
      Source list entries for this disc are:
      deb cdrom:[test]/ /


      Lastly trying to install vim on the machine



      apt-get install vim

      ...
      Do you want to continue? [Y/n]
      Get:1 cdrom://test artful/main amd64 vim-runtime all 2:8.0.0197-4ubuntu5 [5,317 kB]
      Err:2 cdrom://test artful/main amd64 vim amd64 2:8.0.0197-4ubuntu5
      File not found


      Seems the runtime dependecy is found, but the vim package itself is reported as File not found. I can see that the package is in the iso.



      vim_2%3a8.0.0197-4ubuntu5_amd64


      and the package is listed in Packages.gz



      Any ideas? Im really out of them..










      share|improve this question













      Im trying to create a apt cdrom repository. As a PoC Im trying to create a repository only containing what is needed to install vim.



      I start by download the package and its dependecies



      ls packages gives me



      cdebconf_0.213ubuntu1_amd64.deb
      debconf_1.5.63_all.deb
      dpkg_1.18.24ubuntu1_amd64.deb
      gcc-7-base_7.2.0-8ubuntu3.2_amd64.deb
      install-info_6.4.90.dfsg.1-1build1_amd64.deb
      libacl1_2.2.52-3build1_amd64.deb
      libattr1_1%3a2.4.47-2build1_amd64.deb
      libbz2-1.0_1.0.6-8.1_amd64.deb
      libc6_2.26-0ubuntu2.1_amd64.deb
      libdb5.3_5.3.28-13.1_amd64.deb
      libexpat1_2.2.3-1_amd64.deb
      libffi6_3.2.1-6_amd64.deb
      libgcc1_1%3a7.2.0-8ubuntu3.2_amd64.deb
      libgpm2_1.20.4-6.2_amd64.deb
      liblzma5_5.2.2-1.3_amd64.deb
      libmpdec2_2.4.2-1_amd64.deb
      libncursesw5_6.0+20160625-1ubuntu1_amd64.deb
      libpcre3_2%3a8.39-5ubuntu3_amd64.deb
      libpython3.6_3.6.3-1ubuntu1_amd64.deb
      libpython3.6-minimal_3.6.3-1ubuntu1_amd64.deb
      libpython3.6-stdlib_3.6.3-1ubuntu1_amd64.deb
      libreadline7_7.0-0ubuntu2_amd64.deb
      libselinux1_2.7-1_amd64.deb
      libsqlite3-0_3.19.3-3_amd64.deb
      libssl1.0.0_1.0.2g-1ubuntu13.3_amd64.deb
      libtinfo5_6.0+20160625-1ubuntu1_amd64.deb
      mime-support_3.60ubuntu1_all.deb
      Packages.gz
      perl-base_5.26.0-8ubuntu1_amd64.deb
      readline-common_7.0-0ubuntu2_all.deb
      tar_1.29b-2_amd64.deb
      vim_2%3a8.0.0197-4ubuntu5_amd64.deb
      vim-common_2%3a8.0.0197-4ubuntu5_all.deb
      vim-runtime_2%3a8.0.0197-4ubuntu5_all.deb
      xxd_2%3a8.0.0197-4ubuntu5_amd64.deb
      zlib1g_1%3a1.2.11.dfsg-0ubuntu2_amd64.deb


      I create a packages index



      dpkg-scanpackages . /dev/null | gzip -9c > Packages.gz


      Lastly from the parent directory I create a image of the repo



      genisoimage -J -R -V "Ubuntu update-iso" -o update-iso.iso packages/


      On the machine where I would like to use the repository I mount the iso and register it as a cdrom repo.



      apt-cdrom add
      Using CD-ROM mount point /media/test/Ubuntu update-iso/
      Identifying... [1297a704c4b1ca71c8579037f58631c2-2]
      Scanning disc for index files...
      Found 1 package indexes, 0 source indexes, 0 translation indexes and 0 signatures
      Please provide a name for this Disc, such as 'Debian 5.0.3 Disk 1':
      test
      Name: 'test'
      This disc is called:
      'test'
      Reading Package Indexes... Done
      Writing new source list
      Source list entries for this disc are:
      deb cdrom:[test]/ /


      Lastly trying to install vim on the machine



      apt-get install vim

      ...
      Do you want to continue? [Y/n]
      Get:1 cdrom://test artful/main amd64 vim-runtime all 2:8.0.0197-4ubuntu5 [5,317 kB]
      Err:2 cdrom://test artful/main amd64 vim amd64 2:8.0.0197-4ubuntu5
      File not found


      Seems the runtime dependecy is found, but the vim package itself is reported as File not found. I can see that the package is in the iso.



      vim_2%3a8.0.0197-4ubuntu5_amd64


      and the package is listed in Packages.gz



      Any ideas? Im really out of them..







      apt package-management repository






      share|improve this question













      share|improve this question











      share|improve this question




      share|improve this question










      asked Feb 24 at 0:11









      Stefan Rasmusson

      1012




      1012

























          active

          oldest

          votes











          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',
          convertImagesToLinks: true,
          noModals: false,
          showLowRepImageUploadWarning: true,
          reputationToPostImages: 10,
          bindNavPrevention: true,
          postfix: "",
          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%2f1009194%2fproblem-creating-apt-cdrom-repo%23new-answer', 'question_page');

          );

          Post as a guest



































          active

          oldest

          votes













          active

          oldest

          votes









          active

          oldest

          votes






          active

          oldest

          votes















           

          draft saved


          draft discarded















































           


          draft saved


          draft discarded














          StackExchange.ready(
          function ()
          StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2faskubuntu.com%2fquestions%2f1009194%2fproblem-creating-apt-cdrom-repo%23new-answer', 'question_page');

          );

          Post as a guest













































































          Popular posts from this blog

          pylint3 and pip3 broken

          Missing snmpget and snmpwalk

          How to enroll fingerprints to Ubuntu 17.10 with VFS491