[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

apt-cdrom -> E: Read error - read (22 Invalid argument)



Hi!
I don't know if my writing directly to you is wrong: if so, please excuse me and just tell me where to ask
my question. If not, here it is the problem.
I masterized a CD with some debs stuff and placed everything under
/cdrom/Linux/
leaving existing Packages[.gz] file(s) untouched.
Specifically:
----------------------------------------------------------------------------------
mamo:/cdrom/Linux# find . -name "Package*" -print

./XFree 4.0.2/cpbotha/people.debian.org/~cpbotha/jed_potato/Packages.gz
Filename: jed_potato/jed_0.99.12-3_i386.deb
... and so on

./XFree 4.0.2/cpbotha/people.debian.org/~cpbotha/xf401_potato/all/Packages.gz
Filename: xf401_potato/all//xfonts-100dpi_4.0.1-8_all.deb
... and so on

./XFree 4.0.2/cpbotha/people.debian.org/~cpbotha/xf401_potato/i386/Packages.gz
Filename: xf401_potato/i386//lbxproxy_4.0.1-8_i386.deb
... and so on

./XFree 4.0.2/cpbotha/people.debian.org/~cpbotha/xf402_potato/all/Packages.gz
Filename: xf402_potato/all/xfonts-100dpi_4.0.2-1_all.deb
... and so on

./XFree 4.0.2/cpbotha/people.debian.org/~cpbotha/xf402_potato/i386/Packages.gz
Filename: xf402_potato/i386/lbxproxy_4.0.2-1_i386.deb
... and so on

./debian/dists/potato/non-free/binary-i386/Packages
./debian/dists/potato/non-free/binary-i386/Packages.gz
Filename: dists/potato/non-free/binary-all/text/a2ps-perl-ja_1.44-1.deb
... and so on
----------------------------------------------------------------------------------

When I run 'apt-cdrom add' what I get is:
--------------------------------------------------------------------------------
mamo:~# apt-cdrom add
Using CD-ROM mount point /cdrom/
Unmounting CD-ROM
Please insert a Disc in the drive and press enter 
Mounting CD-ROM
Identifying.. [6c51867ad73b85dcb40d5dd06339d41e-2]
Scanning Disc for index files..  Found 3 package indexes and 0 source indexes.
Please provide a name for this Disc, such as 'Debian 2.1r1 Disk 1':
Debian 2.2r3 non-free et al.
This Disc is called:
 'Debian 2.2r3 non-free et al.'
Reading Package Indexes... Error!
E: Read error - read (22 Invalid argument)
--------------------------------------------------------------------------------

1. What's wrong?

2. Is there a non-compatibilty between the place where I grouped all Linux stuff on the CD and the file
path description inside the each Packages[.gz] files?

3. I just want to be able to download all archives that I need where the network is fast and get all the
files at home where I can install everything I need without using my slow PPP connection.
Here I'd like to take advantage of the apt-get and/or dselect family but I don't want to re-create all
Packages[.gz] files because all the files are on the CD (where I cannot write a new Packages file).
I do not want as well to copy all debs to the hard disk where I can run dpkg-scanpackages.
May I have all debs on the CD and create a new Packeges file in the hard disk?

TIA for your kind attention and for your help (if any)!
Bye,
Maurizio.



Reply to: