Bug#43830: apt: apt-get needs "*__Package" instead of "*_Package" with cdrom
Package: apt
Version: 0.3.11
Severity: normal
As you can see on the subject, this bug confuses me a bit...
Here's what happened:
I created a CD with some of the potato packages I received from the
net. On this CD there is a directory debian/binary-i386/ with the
*.deb files in it. I created Packages and Packages.gz (the latter one
doesn't seem to be used by apt-cdrom) using:
dpkg-scanpackages . /dev/null > Packages
Then I run
apt-cdrom -r add
and entered "debian-potato-1999-08-31" as the disc name.
Everything seems to be all right, /etc/apt/sources.list is extended by
the following line:
deb "cdrom:debian-potato-1999-08-31/debian/binary-i386/" /
/var/state/apt/cdroms.list is extended by the following lines:
CD::1c1f77b2640898610b55a082d4f80f0e-2 "debian-potato-1999-08-31";
CD::1c1f77b2640898610b55a082d4f80f0e-2::Label "Debian GNU/Linux unstable 1999-08-31 misc binary-i386 ";
(the latter line comes from .disk/info on the CD).
and in /var/state/apt/lists two files are created:
debian-potato-1999-08-31_debian_binary-i386_Packages
debian-potato-1999-08-31_debian_binary-i386_Release
Up to this point everything seems okay. But now I run
apt-get update
to update the list of available files.
But this gives me the following message:
Err cdrom:debian-potato-1999-08-31/debian/binary-i386/ / Packages
Please use apt-cdrom to make this CD recognized by APT. apt-get update cannot be used to add new CDs
I tried apt-get check and this gives me the message:
W: Couldn't stat source package list 'cdrom:debian-potato-1999-08-31/debian/binary-i386/ / Packages' (/var/state/apt/lists/debian-potato-1999-08-31_debian_binary-i386__Packages) - stat (2 Datei oder Verzeichnis nicht gefunden)
W: You may want to run apt-get update to correct these missing files
Now I see, that apt-cdrom created the file as *_Packages, which
apt-get seems to look for *__Packages. Don't ask me why (with the
Linux Central CDs everything works correct with *_Packages).
Renaming the file from *_Packages to *__Packages works around this
problem. But I do not have any idea, what I have done wrong. Seems
to be a bug in apt-get, which add this duplicated underscore....
Ciao
Roland
-- System Information
Debian Release: potato
Kernel Version: Linux spinnaker 2.2.12 #2 Don Aug 26 15:00:39 CEST 1999 i586 unknown
Versions of the packages apt depends on:
hi libc6 2.1.2-0pre7 GNU C Library: Shared libraries and timezone
hi libstdc++2.9-gl 2.91.66-2 The GNU stdc++ library (EGCS version)
Reply to: