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

Bug#194601: apt: available file corrupted on update



On Sat, May 24, 2003 at 06:28:47PM -0700, Jonathan Walther wrote:
Version: unavailable; reported 2003-05-24
It would help to supply the apt version number.  Is this 0.5.5.1?

Yes, 0.5.5.1.  I didn't notice until the report was already sent that
"reportbug" hadn't been able to retrieve the version number.

The "available" file is created by the apt dselect method using "apt-cache
dumpavail".  Do you find something wrong in the output of this command when
you run it manually?  Is the available file already corrupt before dselect
or dpkg tries to read it?

I don't know the answer to your second question, but apt-cache dumpavail
appears to generate valid and correct output.

Try rm -f /var/cache/apt/*.bin and [U]pdate.

Ok...  After doing this, I appear to have an uncorrupted available file.

Then I did an [I]nstall, to upgrade my packages, and the corruption
still hasn't reappeared.

Tentatively then, the commands that seem to have eliminated the
problem are so:

rm /var/cache/apt/{*.bin,available*}
rm /var/lib/dpkg/available*
dselect update

Unless the problem reappears in a day or two, let us consider the bug
closed.  Anyway the above commands could be incorporated into a new
release of apt or dpkg or dselect or something?  If I ran into this
corruption problem when using an older version, probably some others
will too, and it will guarantee they are able to upgrade properly.

What creates /var/cache/apt/available anyway?  What uses it?

Jonathan

--

It's not true unless it makes you laugh, but you don't understand it until it makes you weep.
   -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-

                    Geek House Productions, Ltd.

 Providing Unix & Internet Contracting and Consulting,
 QA Testing, Technical Documentation, Systems Design & Implementation,
 General Programming, E-commerce, Web & Mail Services since 1998

Phone:   604-435-1205
Email:   djw@reactor-core.org
Webpage: http://reactor-core.org
Address: 2459 E 41st Ave, Vancouver, BC  V5R2W2

Attachment: pgp1Cwg_T7eIQ.pgp
Description: PGP signature


Reply to: