Bug#198730: apt-cdrom broken after upgrading from potato to woody
Package: apt
Version: 0.5.4
Severity: important
I upgraded from a potato 6-CD (3 binary, 3 source) installation to a
woody 14-CD (7 binary, 7 source) installation (both "Official"
releases). I followed these instructions exactly:
http://www.debian.org/releases/woody/i386/release-notes/ch-upgrading.en.html
I commented out _all_ the existing lines in my sources.list (including
the potato cdrom lines put there by apt-cdrom), and used apt-cdrom to
add all 14 new CD's (see point 3.3.3).
I chose the method "Upgrading using apt-get directly" (see point 3.5)
even though it is "not recommended", as I not comfortable using dselect.
The install went fairly well (but see bug #197043) I fixed the problems
with X and gnome, then proceeded to add the security updates line to
sources.list:
deb http://security.debian.org/ stable/updates main
I also reordered the lines put there by apt-cdrom, to be in numerical
order, binaries first (they were the exact reverse of this). I did not
modify any of these lines in any way (though I was tempted when I saw
the word 'unstable' instead of the expected 'stable' or 'woody'). I then
did an apt-get update, excerpts from the transcript follow:
pehupc:/home/hugge# apt-get update
0% [Working]
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
0% [Working]
Ign cdrom://[Debian GNU/Linux 3.0 r0 _Woody_ - Official i386 Binary-1
(20020718)] unstable/contrib Release
These two lines are repeated 4 times for each of the 14 CD's in the
woody set. These are followed by the following, also 4 times for each CD:
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
After that came a few lines of useful text:
Hit http://security.debian.org/ stable/ Packages
Get:1 http://security.debian.org/ stable/ Release
Reading Package Lists... Done
Building Dependency Tree... Done
Next came the following line, repeated 4 * 14 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-%20Official%20i386%20Binary-1%20(20020718)_dists_unstable_contrib_binary-i386_Packages)
- stat (2 No such file or directory)
And finally these 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.
Now, any time I use apt-get, I get this line repeated 4 times for each
_binary_ cd:
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-%20Official%20i386%20Binary-1%20(20020718)_dists_unstable_contrib_binary-i386_Packages)
- stat (2 No such file or directory)
So, quite a bit of junk to wade through to find the important
information from apt-get.
I made some more observations, by comparing with a clean woody install
(i.e. _not_ an upgrade) on another PC, after updating with the security
updates in place. I did not add the source cd-roms on that PC, as I
won't be using it for compiling anything.
1) The format of the file cdroms.list seems to have changed. On my
broken system it looks like this:
<---------- start broken cdroms.list ------------>
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";
<----------- end broken cdroms.list ------------->
Whereas on the good system it looks like this:
<---------- start good cdroms.list ------------>
CD::53d141faef013d9e0f0ebdb110a396ea-2 "Debian GNU/Linux 3.0 r0 _Woody_
- Official i386 Binary-1 (20020718)";
CD::53d141faef013d9e0f0ebdb110a396ea-2::Label "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::5723fa1c8d4308a41fb028ba083cd659-2::Label "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::8b62869b27d28fa3346de0d1e03cf606-2::Label "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::3c0e3b871649869c8a5fdadf0c65800c-2::Label "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::ce960eda05cd296347026937df8df816-2::Label "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::99e53fc0f7f32fcc5334b7b7adcd4fa8-2::Label "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::09fc88a5ec1e450b12b26314fa107698-2::Label "Debian GNU/Linux 3.0 r0
_Woody_ - Official i386 Binary-7 (20020718)";
<----------- end good cdroms.list ------------->
Note that on the good file, each line is repeated with a complete
"::Label" entry immediately after it, whereas on the broken file, these
lines are without content, and are grouped at the bottom of the file.
Also, the old potato CD's are still remembered, even though I removed
them from sources.list.
2) On the good system, the directory /var/lib/apt/lists contains 56
files generated from the binary CD's, 2 from the security updates, plus
an empty file called 'lock' and an empty directory called 'partial'. On
the broken system, this directory is empty, apart from 'lock' and the
empty 'partial'
3) The sources.list files on the two machines are the same, apart from
the fact that the broken machine has the source CD's in it, and that the
CD's are in ascending order.
After that I followed a suggestion from the deb-user list and removed
the security updates line from sources.list before trying again. The
results were pretty much the same. Other than that, I have not messed
with the system at all, and have not done anything out of the ordinary,
so if you respond in a reasonable time I will be able to provide more
information. At the moment the broken sources.list looks like this:
<---------- start broken sources.list ------------>
# 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
<----------- end broken sources.list ------------->
After a couple of weeks, I will give up and do a clean install, as I am
not sure how many other things are broken WRT upgrading from potato to
woody. Anything else I find during that time, I will file bug reports as
necessary.
I would appreciate a solution if you have one - which files I can safely
remove before re-doing 'apt-cdrom add', or even which files to edit and
how, and I will help with more information for as long as possible. Come
mid-july, I will just wipe everything and do a clean install, so it's up
to you!
--
Cheers,
.~.
/V\
// \\
/( )\
^`~´^
< hugge >
Reply to: