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

Bug#45695: apt: apt-get update fails with apt-cdrom



Package: apt
Version: 0.3.13
Severity: normal

I run into serious trouble with apt 0.3.13 when trying to use the
Linux-Central Slink 2.1r1 CDs.

Here's what I did:
- remove /etc/apt/apt.conf
- remove /etc/apt/sources.list and create a new empty one
- remove /var/state/apt/cdroms.list
- remove /var/state/apt/lists/*

So I have a clean environment.

Now I do a "apt-cdrom add" to add the binary CD 2 of the above
mentioned disk set.  This seems to work correct:

------------------------ cut ----------------------------------
# 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.. [437011adaf8f9b2306881fab43cdc877-2]
Scanning Disc for index files..  Found 2 package indexes and 1 source indexes.
Found label 'Debian GNU/Linux slink (2.1) 2/4 main binary-i386 section 2, contrib SAM19990306'
This Disc is called 'Debian GNU_Linux slink (2.1) 2_4 main binary-i386 section 2, contrib SAM19990306'
Reading Package Indexes... Done
Wrote 1199 records.
Reading Source Indexes... Done
Wrote 77 records.
Writing new source list
Source List entries for this Disc are:
deb "cdrom:Debian GNU_Linux slink (2.1) 2_4 main binary-i386 section 2, contrib SAM19990306/" debian/dists/frozen/contrib/binary-i386/
deb "cdrom:Debian GNU_Linux slink (2.1) 2_4 main binary-i386 section 2, contrib SAM19990306/" debian/dists/frozen/main/binary-i386/
deb-src "cdrom:Debian GNU_Linux slink (2.1) 2_4 main binary-i386 section 2, contrib SAM19990306/" debian/dists/frozen/contrib/source/
Repeat this process for the rest of the CDs in your set.
------------------------ cut ----------------------------------

This creates a /var/state/apt/cdroms.list with the following contents:

------------------ cdroms.list --------------------------------
CD::437011adaf8f9b2306881fab43cdc877-2 "Debian GNU_Linux slink (2.1) 2_4 main binary-i386 section 2, contrib SAM19990306";
CD::437011adaf8f9b2306881fab43cdc877-2::Label "Debian GNU/Linux slink (2.1) 2/4 main binary-i386 section 2, contrib SAM19990306";
------------------ cdroms.list --------------------------------

And the following /etc/apt/sources.list:

------------------ sources.list -------------------------------
deb-src "cdrom:Debian GNU_Linux slink (2.1) 2_4 main binary-i386 section 2, contrib SAM19990306/" debian/dists/frozen/contrib/source/
deb "cdrom:Debian GNU_Linux slink (2.1) 2_4 main binary-i386 section 2, contrib SAM19990306/" debian/dists/frozen/contrib/binary-i386/
deb "cdrom:Debian GNU_Linux slink (2.1) 2_4 main binary-i386 section 2, contrib SAM19990306/" debian/dists/frozen/main/binary-i386/
------------------ sources.list -------------------------------

This looks quite good, but when I run "apt-get update" now, the cache
files aren't accessible:

---------------------- cut ------------------------------------
# apt-get update
Failed to fetch cdrom:Debian GNU_Linux slink (2.1) 2_4 main binary-i386 section 2, contrib SAM19990306/debian/dists/frozen/contrib/source/Sources
  Method gave a blank filename
Failed to fetch cdrom:Debian GNU_Linux slink (2.1) 2_4 main binary-i386 section 2, contrib SAM19990306/debian/dists/frozen/contrib/source/Release
  Method gave a blank filename
Failed to fetch cdrom:Debian GNU_Linux slink (2.1) 2_4 main binary-i386 section 2, contrib SAM19990306/debian/dists/frozen/contrib/binary-i386/Packages
  Method gave a blank filename
Failed to fetch cdrom:Debian GNU_Linux slink (2.1) 2_4 main binary-i386 section 2, contrib SAM19990306/debian/dists/frozen/contrib/binary-i386/Release
  Method gave a blank filename
Failed to fetch cdrom:Debian GNU_Linux slink (2.1) 2_4 main binary-i386 section 2, contrib SAM19990306/debian/dists/frozen/main/binary-i386/Packages
  Method gave a blank filename
Failed to fetch cdrom:Debian GNU_Linux slink (2.1) 2_4 main binary-i386 section 2, contrib SAM19990306/debian/dists/frozen/main/binary-i386/Release
  Method gave a blank filename
Reading Package Lists... Done
Building Dependency Tree... Done
E: Some index files failed to download, they have been ignored, or old ones used instead.
---------------------- cut ------------------------------------

In /var/state/apt/lists/ there are the following files:

---------------------- cut ------------------------------------
# ls -lG /var/state/apt/lists/
-rw-r--r--   1 root        80885 Sep 21 21:57 Debian%20GNU%5fLinux%20slink%20(2.1)%202%5f4%20main%20binary-i386%20section%202,%20contrib%20SAM19990306_debian_dists_frozen_contrib_binary-i386_Packages
-rw-r--r--   1 root           96 Sep 21 21:57 Debian%20GNU%5fLinux%20slink%20(2.1)%202%5f4%20main%20binary-i386%20section%202,%20contrib%20SAM19990306_debian_dists_frozen_contrib_binary-i386_Release
-rw-r--r--   1 root            0 Sep 21 21:57 Debian%20GNU%5fLinux%20slink%20(2.1)%202%5f4%20main%20binary-i386%20section%202,%20contrib%20SAM19990306_debian_dists_frozen_contrib_source_Release
-rw-r--r--   1 root        31882 Sep 21 21:57 Debian%20GNU%5fLinux%20slink%20(2.1)%202%5f4%20main%20binary-i386%20section%202,%20contrib%20SAM19990306_debian_dists_frozen_contrib_source_Sources
-rw-r--r--   1 root       817260 Sep 21 21:57 Debian%20GNU%5fLinux%20slink%20(2.1)%202%5f4%20main%20binary-i386%20section%202,%20contrib%20SAM19990306_debian_dists_frozen_main_binary-i386_Packages
-rw-r--r--   1 root           93 Sep 21 21:57 Debian%20GNU%5fLinux%20slink%20(2.1)%202%5f4%20main%20binary-i386%20section%202,%20contrib%20SAM19990306_debian_dists_frozen_main_binary-i386_Release
-rw-r-----   1 root            0 Sep 21 21:57 lock
---------------------- cut ------------------------------------

"strace -e stat apt-get update" tells me that apt-get tries to access
the above files using stat() (with correct names, no longer problems
with double "_" or something like this), but what does this "Method
gave a blank filename" mean?


Then I tried the same as above (with an empty cdroms.list and
sources.list) with a potato CD which I burned myself.  This CD has a
directory /debian/binary-i386 with all the packages in it and a
Packages file which was created with 
        dpkg-scanpackages . /dev/null > Packages
in the /debian/binary-i386 directory.

This gives me another strange message:

---------------------- cut ------------------------------------
# apt-get update
E: The method driver /usr/lib/apt/methods/Packages.gz could not be found.
E: The method driver /usr/lib/apt/methods/Release could not be found.
---------------------- cut ------------------------------------


The Linux-Central CD worked with apt 0.3.11 without any problems while 
the self burned potato CD caused some problems (see #43830), which I
was able to work around with 0.3.11.  I didn't fully test 0.3.12, but
I fear that it also was broken for apt-cdrom like 0.3.13 is.


I hope that the above wasn't too much information but enough to find
the center of the problem, which makes apt-cdrom completely unusable
here.


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-2        GNU C Library: Shared libraries and timezone
hi  libstdc++2.10   2.95.2-0pre1   The GNU stdc++ library


Reply to: