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

Bug#81829: apt segfaults on corrupted /var/cache/apt/*.bin files



I had what appears to be an interrupted transfer of the "Release" file durring an apt-get update which lead to a gzip crc error, which then triggered this bug; the error:

/usr/lib/dpkg/methods/apt/install: line 57: 13081 Segmentation fault $APTGET $OPTS "$APT_OPT0" "$APT_OPT1" dselect-upgrade

Whenever running apt-cache update

Attached is the output of the cron job where the original corruption occured. I have already worked around the problem by moving the bad /var/cache/apt/*.bin files out of the way, so nobody needs to tell me to do that ;)
--- Begin Message ---
/etc/cron.daily/debian-updates:
Hit http://non-us.debian.org sarge/non-US/main Packages
Hit http://non-us.debian.org sarge/non-US/main Release
Get:1 http://ftp.us.debian.org sarge/main Packages [2982kB]
Hit http://security.debian.org sarge/updates/main Packages
Hit http://security.debian.org sarge/updates/main Release
Get:2 http://ftp.us.debian.org sarge/main Release [81B]

gzip: stdin: invalid compressed data--crc error

gzip: stdin: invalid compressed data--length error
Err http://ftp.us.debian.org sarge/main Packages
  Sub-process gzip returned an error code (1)
Fetched 2982kB in 44s (67.1kB/s)
Reading Package Lists...Failed to fetch http://ftp.us.debian.org/debian/dists/sarge/main/binary-i386/Packages.gz  Sub-process gzip returned an error code (1)

W: Couldn't stat source package list http://ftp.us.debian.org sarge/main Packages (/var/lib/apt/lists/ftp.us.debian.org_debian_dists_sarge_main_binary-i386_Packages) - stat (2 No such file or directory)
W: Couldn't stat source package list http://ftp.us.debian.org sarge/main Packages (/var/lib/apt/lists/ftp.us.debian.org_debian_dists_sarge_main_binary-i386_Packages) - stat (2 No such file or directory)
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.
Reading Package Lists...
Building Dependency Tree...
W: Couldn't stat source package list http://ftp.us.debian.org sarge/main Packages (/var/lib/apt/lists/ftp.us.debian.org_debian_dists_sarge_main_binary-i386_Packages) - stat (2 No such file or directory)
W: You may want to run apt-get update to correct these problems
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.

--- End Message ---

Reply to: