Problem creating apt cdrom repo
![Creative The name of the picture](https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgO9GURib1T8z7lCwjOGLQaGtrueEthgQ8LO42ZX8cOfTqDK4jvDDpKkLFwf2J49kYCMNW7d4ABih_XCb_2UXdq5fPJDkoyg7-8g_YfRUot-XnaXkNYycsNp7lA5_TW9td0FFpLQ2APzKcZ/s1600/1.jpg)
![Creative The name of the picture](https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhYQ0N5W1qAOxLP7t7iOM6O6AzbZnkXUy16s7P_CWfOb5UbTQY_aDsc727chyphenhyphen5W4IppVNernMMQeaUFTB_rFzAd95_CDt-tnwN-nBx6JyUp2duGjPaL5-VgNO41AVsA_vu30EJcipdDG409/s400/Clash+Royale+CLAN+TAG%2523URR8PPP.png)
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..
apt package-management repository
add a comment |Â
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..
apt package-management repository
add a comment |Â
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..
apt package-management repository
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
apt package-management repository
asked Feb 24 at 0:11
Stefan Rasmusson
1012
1012
add a comment |Â
add a comment |Â
active
oldest
votes
active
oldest
votes
active
oldest
votes
active
oldest
votes
active
oldest
votes
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
var $window = $(window),
onScroll = function(e)
var $elem = $('.new-login-left'),
docViewTop = $window.scrollTop(),
docViewBottom = docViewTop + $window.height(),
elemTop = $elem.offset().top,
elemBottom = elemTop + $elem.height();
if ((docViewTop elemBottom))
StackExchange.using('gps', function() StackExchange.gps.track('embedded_signup_form.view', location: 'question_page' ); );
$window.unbind('scroll', onScroll);
;
$window.on('scroll', onScroll);
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
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
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
var $window = $(window),
onScroll = function(e)
var $elem = $('.new-login-left'),
docViewTop = $window.scrollTop(),
docViewBottom = docViewTop + $window.height(),
elemTop = $elem.offset().top,
elemBottom = elemTop + $elem.height();
if ((docViewTop elemBottom))
StackExchange.using('gps', function() StackExchange.gps.track('embedded_signup_form.view', location: 'question_page' ); );
$window.unbind('scroll', onScroll);
;
$window.on('scroll', onScroll);
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
var $window = $(window),
onScroll = function(e)
var $elem = $('.new-login-left'),
docViewTop = $window.scrollTop(),
docViewBottom = docViewTop + $window.height(),
elemTop = $elem.offset().top,
elemBottom = elemTop + $elem.height();
if ((docViewTop elemBottom))
StackExchange.using('gps', function() StackExchange.gps.track('embedded_signup_form.view', location: 'question_page' ); );
$window.unbind('scroll', onScroll);
;
$window.on('scroll', onScroll);
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
var $window = $(window),
onScroll = function(e)
var $elem = $('.new-login-left'),
docViewTop = $window.scrollTop(),
docViewBottom = docViewTop + $window.height(),
elemTop = $elem.offset().top,
elemBottom = elemTop + $elem.height();
if ((docViewTop elemBottom))
StackExchange.using('gps', function() StackExchange.gps.track('embedded_signup_form.view', location: 'question_page' ); );
$window.unbind('scroll', onScroll);
;
$window.on('scroll', onScroll);
);
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