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

Bug#45695: marked as done (apt: apt-get update fails with apt-cdrom)



Your message dated Thu, 11 Nov 1999 16:40:20 -0700 (MST)
with message-id <[🔎] Pine.LNX.3.96.991111163840.12810C-100000@wakko.deltatee.com>
and subject line Fixed Bugs
has caused the attached Bug report to be marked as done.

This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.

(NB: If you are a system administrator and have no idea what I am
talking about this indicates a serious mail system misconfiguration
somewhere.  Please contact me immediately.)

Darren Benham
(administrator, Debian Bugs database)

--------------------------------------
Received: (at submit) by bugs.debian.org; 21 Sep 1999 20:35:52 +0000
Received: (qmail 3858 invoked from network); 21 Sep 1999 20:35:49 -0000
Received: from postfix.rhein.de (193.175.27.8)
  by master.debian.org with SMTP; 21 Sep 1999 20:35:49 -0000
Received: by postfix.rhein.de (Postfix, from userid 5)
	id 03EE3128D8; Tue, 21 Sep 1999 22:35:12 +0200 (MET DST)
Received: from luv (luv)
	by aiur (rbsmtp 2.3pl8bMS);
	Tue Sep 21 22:35:11 1999
	using /var/spool/bsmtp/out/q13033.01.937946111
Received: from spinnaker.rhein.de (root@spinnaker.rhein.de [193.175.27.129])
	by luv.rhein.de (8.9.3/8.9.3/Debian/GNU) with ESMTP id WAA27715;
	Tue, 21 Sep 1999 22:30:06 +0200
Received: (from roland@localhost)
	by spinnaker.rhein.de (8.9.3/8.9.3/Debian/GNU) id WAA18463;
	Tue, 21 Sep 1999 22:29:55 +0200
Date: Tue, 21 Sep 1999 22:29:55 +0200
Message-Id: <199909212029.WAA18463@spinnaker.rhein.de>
From: Roland Rosenfeld <roland@spinnaker.de>
Subject: apt: apt-get update fails with apt-cdrom
To: submit@bugs.debian.org
X-Mailer: bug 3.2.3
Sender: roland@spinnaker.rhein.de

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
---------------------------------------
Received: (at 45695-done) by bugs.debian.org; 11 Nov 1999 23:40:29 +0000
Received: (qmail 22352 invoked from network); 11 Nov 1999 23:40:27 -0000
Received: from crash.ab.videon.ca (root@206.75.216.220)
  by master.debian.org with SMTP; 11 Nov 1999 23:40:27 -0000
Received: from wakko.deltatee.com (mail@wakko.powersurfr.com [24.108.53.97])
	by crash.ab.videon.ca (8.9.2/8.9.2) with ESMTP id QAA06526;
	Thu, 11 Nov 1999 16:40:21 -0700 (MST)
Received: from localhost (wakko.deltatee.com) [127.0.0.1] (jgg)
	by wakko.deltatee.com with smtp (Exim 2.11 #1)
	id 11m3pE-0003ND-00 (Debian); Thu, 11 Nov 1999 16:40:20 -0700
Date: Thu, 11 Nov 1999 16:40:20 -0700 (MST)
From: Jason Gunthorpe <jgg@ualberta.ca>
X-Sender: jgg@wakko.deltatee.com
To: Deity Creation Team <deity@lists.debian.org>
Subject: Fixed Bugs
Message-ID: <[🔎] Pine.LNX.3.96.991111163840.12810C-100000@wakko.deltatee.com>
MIME-Version: 1.0
Content-Type: TEXT/PLAIN; charset=US-ASCII


These bugs are fixed in the latest APT upload to unstable, 0.3.14:

apt (0.3.14) unstable; urgency=low

  * Fix Perl or group pre-depends thing Closes: #46091, #46096, #46233, #45901
  * Fix handling of dpkg's conversions from < -> <= Closes: #46094, #47088
  * Make unparsable priorities non-fatal Closes: #46266, #46267, #46293, #46298
  * Fix handling of '/' for the dist name. Closes: #43830, #45640, #45692
  * Fixed 'Method gave a blank filename' error from IMS queries onto CDs.
    Closes: #45034, #45695, #46537
  * Made OR group handling in the problem resolver more elaborate. Closes: #45646
  * Added APT::Clean-Installed option. Closes: #45973
  * Moves the free space check to after the calculated size is printed.
    Closes: #46639, #47498
  * mipsel arch Closes: #47614
  * Beautified URI printing to not include passwords Closes: #46857
  * Fixed little problem with --no-download Closes: #47557
  * Tweaked Dselect 'update' script to re-gen the avail file even in the
    event of a failure Closes: #47112
  * Retries for source archives too Closes: #47529
  * Unmounts CDROMs iff it mounted them Closes: #45299
  * Checks for the partial directories before doing downloads Closes: #47392
  * no_proxy environment variable (http only!) Closes: #43476
  * apt-cache showsrc Closes: #45799
  * De-Refs Single Pure virtual packages. Closes: #42437, #43555
  * Regexs for install. Closes: #35304, #38835
  * Dependency reports now show OR group relations
  * Re-Install feature. Cloes: #46961, #37393, #38919
  * Locks archive directory on clean (woops)
  * Remove is not 'sticky'. Closes: #48392
  * Slightly more accurate 'can not find package' message. Closes: #48311
  * --trivial-only and --no-remove. Closes: #48518
  * Increased the cache size. Closes: #47648
  * Comment woopsie. Closes: #48789
  * Removes existing links when linking sources. Closes: #48775
  * Problem resolver does not install all virtual packages. Closes: #48591, #49252
  * Clearer usage message about 'source' Closes: #48858
  * Immediate configure internal error Closes: #49062, #48884
  
 -- Ben Gertzfield <che@debian.org>  Sun,  7 Nov 1999 20:21:25 -0800


Reply to: