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

apt-0.3.4: package list or status file could not be parsed or opened



Hi!

Since apt-0.3.4 now supports smbmounting cd-roms, I started a new
attempt to get apt-get running on my system. My Debian box is stowed
away in a closet and I access it via the network from a Windows box.
It would be quite comfortable to use apt-get with the official Debian
CDs inserted into my Windows box's CD-ROM drive.

apt.conf says:
|Acquire
|{
|  Queue-Mode "access";       // host|access
|  Retries "0";
|
|  cdrom
|  {
|    Mount "/mnt/cdrom";
|
|    // You need the trailing slash!
|    "/mnt/cdrom/"
|    {
|       Mount "smbmount //janeway/cdrom /mnt/cdrom/ -U apt-guest -P <some-password>";
|       UMount "umount /mnt/cdrom";
|    }
|  };
|};

Adding a cdrom to the apt-list:
|=>ROOT<=@torres:/home/mh # apt-cdrom add
|Using CD-ROM mount point /mnt/cdrom/
|Unmounting CD-ROM
|Please insert a Disc in the drive and press enter
|Mounting CD-ROM
|Identifying.. [44a95765d1120c78f7bdd49ce4ab9e3e]
|Scanning Disc for index files..  Found 2 package index files.
|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 Lists... Done
|Wrote 975 package records with 224 mismatched files.
|Alot of package entires were discarded, perhaps this CD is funny?
|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, contribSAM19990306/" slink contrib main
|=>ROOT<=@torres:/home/mh #

Please note the "224 mismatched files".

The CD is not funny, it's made from the official images and works fine
when it is being locally mounted on a Debian box.

/etc/apt/sources.list seems to be built Ok:
|=>ROOT<=@torres:/mnt/cdrom # cat /etc/apt/sources.list
|# Use for a local mirror - remove the ftp1 http lines for the bits
|# your mirror contains.
|# deb file:/your/mirror/here/debian stable main contrib non-free
|# See sources.list(5) for more information, especial
|# Remember that you can only use http, ftp or file URIs
|
|
|
|deb "cdrom:Debian GNU_Linux slink (2.1) 2_4 main binary-i386 section 2, contrib SAM19990306/" slink contrib main
|=>ROOT<=@torres:/mnt/cdrom #

However, installing packages fails:
|=>ROOT<=@torres:/etc/apt # apt-get install umich-ldap-docs
|Reading Package Lists... Error!
|E: Unable to parse package file /var/state/apt/lists/Debian%20GNU%5fLinux%20slink%20(2.1)%202%5f4%20main%20binary-i386%20section%202,%20contrib%20SAM19990306_dists_slink_contrib_binary-i386_Packages (1)
|E: The package lists or status file could not be parsed or opened.
|=>ROOT<=@torres:/etc/apt #

The file with the lengthy name exists:
|=>ROOT<=@torres:/home/mh # ls -l /var/state/apt/lists/
|total 727
|-rw-r--r--   1 root     root        54241 May  5 20:20 Debian%20GNU%5fLinux%20slink%20(2.1)%202%5f4%20main%20binary-i386%20section%202,%20contrib%20SAM19990306_dists_slink_contrib_binary-i386_Packages
|-rw-r--r--   1 root     root           96 May  5 20:20 Debian%20GNU%5fLinux%20slink%20(2.1)%202%5f4%20main%20binary-i386%20section%202,%20contrib%20SAM19990306_dists_slink_contrib_binary-i386_Release
|-rw-r--r--   1 root     root       681934 May  5 20:20 Debian%20GNU%5fLinux%20slink%20(2.1)%202%5f4%20main%20binary-i386%20section%202,%20contrib%20SAM19990306_dists_slink_main_binary-i386_Packages
|-rw-r--r--   1 root     root           93 May  5 20:20 Debian%20GNU%5fLinux%20slink%20(2.1)%202%5f4%20main%20binary-i386%20section%202,%20contrib%20SAM19990306_dists_slink_main_binary-i386_Release
|drwxr-xr-x   2 root     root         1024 May  5 20:20 partial/
|=>ROOT<=@torres:/home/mh #

Its contents looks fine, too:
|=>ROOT<=@torres:/home/mh # head -n 10 /var/state/apt/lists/Debian%20GNU%5fLinux%20slink%20\(2.1\)%202%5f4%20main%20binary-i386%20section%202,%20contrib%20SAM19990306_dists_slink_contrib_binary-i386_Packages
|Package: apple2
|Version: 0.04-5
|Priority: optional
|Section: contrib/otherosfs
|Maintainer: Tom Lear <tom@trap.mountain-view.ca.us>
|Depends: libc6 (>= 2.0.7u), svgalibg1
|Architecture: i386
|Filename: dists/slink/contrib/binary-i386/otherosfs/apple2_0.04-5.deb
|Size: 146648
|MD5sum: 5ed318a84605eff27dcdd3af995f31d2
|=>ROOT<=@torres:/home/mh #

What am I doing wrong? Can this have something to do with the
smbmount? But /var/state/apt is on a local drive and loading that file
from the CD worked fine.

Any hints will be appreciated.

Greetings
Marc

-- 
-------------------------------------- !! No courtesy copies, please !! -----
Marc Haber          |   " Questions are the         | Mailadresse im Header
Karlsruhe, Germany  |     Beginning of Wisdom "     | Fon: *49 721 966 32 15
Nordisch by Nature  | Lt. Worf, TNG "Rightful Heir" | Fax: *49 721 966 31 29


Reply to: