(Moe's top-posted reply moved to bottom)A curious thing happened today with apt-get, that I have never seen before.
I recently upgraded my system from potato to woody, using an official CD
set (7 binary, 7 source). I followed the instructions rigorously, and am now 99% sure that all is correctly upgraded (but see http://lists.debian.org/debian-user/2003/debian-user-200306/msg02003.html ).
This morning I edited /etc/apt/sources.list, re-ordering the cdrom lines (put there by apt-cdrom) so that they were in ascending order, binaries first, and adding the following line at the bottom:
deb http://security.debian.org/ woody/updates main contrib non-free
...followed by an apt-get update and an apt-get upgrade, expecting to get the security updates.
Although this went OK, downloading and upgrading about 16Mb of archives, I also received a bunch of warnings, both during the update and twice during the upgrade. The following line or very similar was repeated 28 times (which is twice the total number of CD's):
W: Couldn't stat source package list cdrom://[Debian GNU/Linux 3.0 r0 _Woody_ - Official i386 Binary-1 (20020718)] unstable/contrib Packages (/var/lib/apt/lists/Debian%20GNU_Linux%203.0%20r0%20%5fWoody%5f%20-%20
Official%20i386%20Binary-1%20(20020718)_dists_unstable_contrib_binary-
i386_Packages) - stat (2 No such file or directory)
...followed by this line at the bottom:
W: You may want to run apt-get update to correct these problems
The trouble is, running apt-get update produces the same output again. These lines as you can see are quite long, wrapping round into 5 lines each on the screen, so this means I get 140 lines of garbage scrolling by, masking the (possibly important) messages that are emitted before them. The same is true if I try apt-get -f install (this should have produced almost no output, as all packages are installed OK).
I haven't deleted anything in /var/lib/apt/lists, and apart from re-ordering the cdrom lines in sources.list (which usually has no effect whatsoever), I haven't done anything at all out of the ordinary. What is happening here, and more importantly, how do I make it go away? Until I find the answer, I'm going to need to turn on a transcript log each time I want to do anything with apt-get, so that I can browse through the log to see how things went :-(.
BTW after this is fixed, I still want to be able to apt-get install from the CD's, for those packages that aren't affected by security updates.
What happens if you comment out security.debian.org?
Good idea, but sadly no difference :-(. But this time I started a transcript log, and noticed that in the apt-get upgrade case, there was actually a ton more junk before the lines mentioned above. Here goes:
(+) First, for each cd, the following 3 lines, repeated (with slight changes) 4 times:
Err cdrom://[Debian GNU/Linux 3.0 r0 _Woody_ - Official i386 Binary-1 (20020718)] unstable/contrib Packages Please use apt-cdrom to make this CD recognized by APT. apt-get update cannot be used to add new CDs
Ign cdrom://[Debian GNU/Linux 3.0 r0 _Woody_ - Official i386 Binary-1 (20020718)] unstable/contrib Release
(so a total of 14*12 = 168 lines so far)
(+) Next, for each cd, the following line (repeated with slight changes) 4 times:
Failed to fetch cdrom:[Debian GNU/Linux 3.0 r0 _Woody_ - Official i386 Binary-1 (20020718)]/dists/unstable/contrib/binary-i386/Packages Please use apt-cdrom to make this CD recognized by APT. apt-get update cannot be used to add new CDs
(now we're up to 168 + 14*4 = 224 lines)
(+) Next, two interesting lines:
Reading Package Lists... Done Building Dependency Tree... Done
(+) Next, for each cd, this line repeated (with slight changes) 4 times:
W: Couldn't stat source package list cdrom://[Debian GNU/Linux 3.0 r0
_Woody_ - Official i386 Binary-1 (20020718)] unstable/contrib Packages (/var/lib/apt/lists/Debian%20GNU_Linux%203.0%20r0%20%5fWoody%5f%20-%20
Official%20i386%20Binary-1%20(20020718)_dists_unstable_contrib_binary-
i386_Packages) - stat (2 No such file or directory)
(+) Finally, the following two lines:
W: You may want to run apt-get update to correct these problems
E: Some index files failed to download, they have been ignored, or old ones used instead.
(and the final sum is 224 + 56 + 2 = 282 lines)
Note: last time I said that the above warning was repeated twice for each cd, but this turned out to be a mistake. That time, the source cd's didn't show up in the transcript, but the warning was 4 times for each binary cd. I think I reported the results for the last thing I tried, i.e. apt-get -f install.
So to sum up, for the two lines of useful information, I have to watch 282 unnecessary warnings flash by, most of which wrap round to 4 or 5 lines each.
BTW I've looked in /var/lib/apt/lists/ , and it contains a single file 'lock' and a single empty directory 'partial', so stat wasn't lying. In case it might help, I also attach my sources.list and cdroms.list as they look right now.
This is really bugging me, so I would appreciate some pointers, partly how to fix this, and also what to avoid so that it doesn't happen again.
-- Cheers!
.~. /V\ // \\ /( )\ ^`~´^ < hugge >
# See sources.list(5) for more information, especialy # Remember that you can only use http, ftp or file URIs # CDROMs are managed through the apt-cdrom tool.
# The Binary CDROMs deb cdrom:[Debian GNU/Linux 3.0 r0 _Woody_ - Official i386 Binary-1 (20020718)]/ unstable contrib main non-US/contrib non-US/main deb cdrom:[Debian GNU/Linux 3.0 r0 _Woody_ - Official i386 Binary-2 (20020718)]/ unstable contrib main non-US/contrib non-US/main deb cdrom:[Debian GNU/Linux 3.0 r0 _Woody_ - Official i386 Binary-3 (20020718)]/ unstable contrib main non-US/contrib non-US/main deb cdrom:[Debian GNU/Linux 3.0 r0 _Woody_ - Official i386 Binary-4 (20020718)]/ unstable contrib main non-US/contrib non-US/main deb cdrom:[Debian GNU/Linux 3.0 r0 _Woody_ - Official i386 Binary-5 (20020718)]/ unstable contrib main non-US/contrib non-US/main deb cdrom:[Debian GNU/Linux 3.0 r0 _Woody_ - Official i386 Binary-6 (20020718)]/ unstable contrib main non-US/contrib non-US/main deb cdrom:[Debian GNU/Linux 3.0 r0 _Woody_ - Official i386 Binary-7 (20020718)]/ unstable contrib main non-US/contrib non-US/main # The Source CDROMs deb-src cdrom:[Debian GNU/Linux 3.0 r0 _Woody_ - Official Source-1 (20020718)]/ unstable contrib main non-US/contrib non-US/main deb-src cdrom:[Debian GNU/Linux 3.0 r0 _Woody_ - Official Source-2 (20020718)]/ unstable contrib main non-US/contrib non-US/main deb-src cdrom:[Debian GNU/Linux 3.0 r0 _Woody_ - Official Source-3 (20020718)]/ unstable contrib main non-US/contrib non-US/main deb-src cdrom:[Debian GNU/Linux 3.0 r0 _Woody_ - Official Source-4 (20020718)]/ unstable contrib main non-US/contrib non-US/main deb-src cdrom:[Debian GNU/Linux 3.0 r0 _Woody_ - Official Source-5 (20020718)]/ unstable contrib main non-US/contrib non-US/main deb-src cdrom:[Debian GNU/Linux 3.0 r0 _Woody_ - Official Source-6 (20020718)]/ unstable contrib main non-US/contrib non-US/main deb-src cdrom:[Debian GNU/Linux 3.0 r0 _Woody_ - Official Source-7 (20020718)]/ unstable contrib main non-US/contrib non-US/main # The Binaries @ debian #deb http://http.us.debian.org/debian woody main contrib non-free #deb http://non-us.debian.org/debian-non-US woody/non-US main contrib non-free #deb http://security.debian.org woody/updates main contrib non-free # The Sources @ debian #deb-src http://http.us.debian.org/debian woody main contrib non-free ##deb-src http://non-us.debian.org/debian-non-US woody non-US
CD::553f885536308aac09dcbe3f28424bad-2 "Debian GNU/Linux 2.2 r0 _Potato_ - Official i386 Binary-1 (20000814)"; CD::b7f61886822af69823ce7a92efe016a1-2 "Debian GNU/Linux 2.2 r0 _Potato_ - Official i386 Binary-2 (20000814)"; CD::555ddc81e79e7d2c123f16d4a391f934-2 "Debian GNU/Linux 2.2 r0 _Potato_ - Official i386 Binary-3 (20000814)"; CD::afa4012135ace9d38688e1e698ecad67-2 "Debian GNU/Linux 2.2 r0 _Potato_ - Official Source-1 (20000814)"; CD::f19ac3d868a84577c02c1c10eb9871e8-2 "Debian GNU/Linux 2.2 r0 _Potato_ - Official Source-2 (20000814)"; CD::451e3905249c1d31ac84d172eaaed715-2 "Debian GNU/Linux 2.2 r0 _Potato_ - Official Source-3 (20000814)"; CD::53d141faef013d9e0f0ebdb110a396ea-2 "Debian GNU/Linux 3.0 r0 _Woody_ - Official i386 Binary-1 (20020718)"; CD::5723fa1c8d4308a41fb028ba083cd659-2 "Debian GNU/Linux 3.0 r0 _Woody_ - Official i386 Binary-2 (20020718)"; CD::8b62869b27d28fa3346de0d1e03cf606-2 "Debian GNU/Linux 3.0 r0 _Woody_ - Official i386 Binary-3 (20020718)"; CD::3c0e3b871649869c8a5fdadf0c65800c-2 "Debian GNU/Linux 3.0 r0 _Woody_ - Official i386 Binary-4 (20020718)"; CD::ce960eda05cd296347026937df8df816-2 "Debian GNU/Linux 3.0 r0 _Woody_ - Official i386 Binary-5 (20020718)"; CD::99e53fc0f7f32fcc5334b7b7adcd4fa8-2 "Debian GNU/Linux 3.0 r0 _Woody_ - Official i386 Binary-6 (20020718)"; CD::09fc88a5ec1e450b12b26314fa107698-2 "Debian GNU/Linux 3.0 r0 _Woody_ - Official i386 Binary-7 (20020718)"; CD::7147b93e6d7e0d1ddf5de07ab0c4bb9a-2 "Debian GNU/Linux 3.0 r0 _Woody_ - Official Source-1 (20020718)"; CD::98030c9dccd61879babc382191b29df8-2 "Debian GNU/Linux 3.0 r0 _Woody_ - Official Source-2 (20020718)"; CD::4891bb6b2386ee304c9eb7b5872f71e1-2 "Debian GNU/Linux 3.0 r0 _Woody_ - Official Source-3 (20020718)"; CD::6f7fd63cb79ce8279e5a25ab681b3ac8-2 "Debian GNU/Linux 3.0 r0 _Woody_ - Official Source-4 (20020718)"; CD::463b780f174f7718603589a43b11a84a-2 "Debian GNU/Linux 3.0 r0 _Woody_ - Official Source-5 (20020718)"; CD::892c4e1cb90f3825ff370360c2d6abb1-2 "Debian GNU/Linux 3.0 r0 _Woody_ - Official Source-6 (20020718)"; CD::e9e80242113c277cd330d98d6262d5fa-2 "Debian GNU/Linux 3.0 r0 _Woody_ - Official Source-7 (20020718)"; CD::e9e80242113c277cd330d98d6262d5fa-2::Label "Debian GNU/Linux 3.0 r0 "Woody" - Official Source-7 (20020718)"; "CD::892c4e1cb90f3825ff370360c2d6abb1-2::Label"; "CD::463b780f174f7718603589a43b11a84a-2::Label"; "CD::6f7fd63cb79ce8279e5a25ab681b3ac8-2::Label"; "CD::4891bb6b2386ee304c9eb7b5872f71e1-2::Label"; "CD::98030c9dccd61879babc382191b29df8-2::Label"; "CD::7147b93e6d7e0d1ddf5de07ab0c4bb9a-2::Label"; "CD::09fc88a5ec1e450b12b26314fa107698-2::Label"; "CD::99e53fc0f7f32fcc5334b7b7adcd4fa8-2::Label"; "CD::ce960eda05cd296347026937df8df816-2::Label"; "CD::3c0e3b871649869c8a5fdadf0c65800c-2::Label"; "CD::8b62869b27d28fa3346de0d1e03cf606-2::Label"; "CD::5723fa1c8d4308a41fb028ba083cd659-2::Label"; "CD::53d141faef013d9e0f0ebdb110a396ea-2::Label"; "CD::451e3905249c1d31ac84d172eaaed715-2::Label"; "CD::f19ac3d868a84577c02c1c10eb9871e8-2::Label"; "CD::afa4012135ace9d38688e1e698ecad67-2::Label"; "CD::555ddc81e79e7d2c123f16d4a391f934-2::Label"; "CD::b7f61886822af69823ce7a92efe016a1-2::Label"; "CD::553f885536308aac09dcbe3f28424bad-2::Label";