kanotix.com

Installation - bzip error with apt-get update

nitto - 06.10.2006, 09:56 Uhr
Titel: bzip error with apt-get update
I started to get this weird error when I did apt-get update:
any way to fix this??


Code:

...
...
Hit http://kanotix.com sid/non-free Sources
Hit http://kanotix.com sid/vdr Sources
99% [8 Sources gzip 0] [6 Packages bzip2 0] [Waiting for headers]
gzip: stdin: not in gzip format
Err http://ftp.de.debian.org unstable/contrib Sources
  Sub-process gzip returned an error code (1)
99% [6 Packages bzip2 0] [Waiting for headers]
bzip2: Data integrity error when decompressing.
        Input file = (stdin), output file = (stdout)

It is possible that the compressed file(s) have become corrupted.
You can use the -tvv option to test integrity of such files.

You can use the `bzip2recover' program to attempt to recover
data from undamaged sections of corrupted files.

Err http://ftp.de.debian.org testing/non-free Packages
  Sub-process bzip2 returned an error code (2)
99% [7 Sources bzip2 0] [Waiting for headers]
bzip2: Data integrity error when decompressing.
        Input file = (stdin), output file = (stdout)

It is possible that the compressed file(s) have become corrupted.
You can use the -tvv option to test integrity of such files.

You can use the `bzip2recover' program to attempt to recover
data from undamaged sections of corrupted files.

Err http://ftp.de.debian.org testing/main Sources
  Sub-process bzip2 returned an error code (2)
Get:9 http://ftp.de.debian.org testing/contrib Packages [62.8kB]
99% [Working]
gzip: stdin: not in gzip format
Err http://ftp.de.debian.org testing/contrib Packages
  Sub-process gzip returned an error code (1)
Fetched 9B in 3s (2B/s)
Failed to fetch http://ftp.de.debian.org/debian/dists/unstable/contrib/binary-i386/Packages.bz2  Sub-process bzip2 returned an error code (2)
Failed to fetch http://ftp.de.debian.org/debian/dists/unstable/non-free/binary-i386/Packages.bz2  Sub-process bzip2 returned an error code (2)
Failed to fetch http://ftp.de.debian.org/debian/dists/testing/non-free/binary-i386/Packages.bz2  Sub-process bzip2 returned an error code (2)
Failed to fetch http://ftp.de.debian.org/debian/dists/testing/main/source/Sources.bz2  Sub-process bzip2 returned an error code (2)
Failed to fetch http://ftp.de.debian.org/debian/dists/unstable/contrib/source/Sources.gz  Sub-process gzip returned an error code (1)
Failed to fetch http://ftp.de.debian.org/debian/dists/testing/contrib/binary-i386/Packages.gz  Sub-process gzip returned an error code (1)
Reading package lists... Done
W: Couldn't stat source package list http://ftp.de.debian.org unstable/contrib Packages (/var/lib/apt/lists/ftp.de.debian.org_debian_dists_unstable_contrib_binary-i386_Packages) - stat (2 No such file or directory)
W: Couldn't stat source package list http://ftp.de.debian.org unstable/non-free Packages (/var/lib/apt/lists/ftp.de.debian.org_debian_dists_unstable_non-free_binary-i386_Packages) - stat (2 No such file or directory)
W: Couldn't stat source package list http://ftp.de.debian.org testing/contrib Packages (/var/lib/apt/lists/ftp.de.debian.org_debian_dists_testing_contrib_binary-i386_Packages) - stat (2 No such file or directory)
W: Couldn't stat source package list http://ftp.de.debian.org testing/non-free Packages (/var/lib/apt/lists/ftp.de.debian.org_debian_dists_testing_non-free_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.

piper - 06.10.2006, 15:42 Uhr
Titel: RE: weird error with apt-get update
For starters have you tried

apt-get clean
apt-get autoclean
apt-get update

wget -O/etc/apt/sources.list http://kanotix.com/files/fix/sources.list
apt-get update

wget -O/etc/apt/preferences http://kanotix.com/files/fix/preferences
apt-get update

bzip2 and bunzip2 will by default not overwrite existing files. If you want this to happen, specify the -f flag

bzip2recover is a simple program whose purpose is to search for blocks in .bz2 files, and write each block out into its own .bz2 file. You can then use bzip2 -t to test the integrity of the resulting files, and decompress those which are undamaged.

man bzip2recover for more details or wait for others opinions/fix
nitto - 07.10.2006, 01:12 Uhr
Titel: Re: RE: weird error with apt-get update
piper hat folgendes geschrieben::
For starters have you tried

apt-get clean
apt-get autoclean
apt-get update

wget -O/etc/apt/sources.list http://kanotix.com/files/fix/sources.list
apt-get update

wget -O/etc/apt/preferences http://kanotix.com/files/fix/preferences
apt-get update


I had already tried those, however I now fixed the problem eventhough I still don't know how and why it started in the first place.

I first commented out all the lines in /etc/apt/source.list then starting from bottom progressively did an apt-get update first with all source.list lines commented out then removed comments one line at a time followed by an apt-get update each time.
That seemed to fix the problem
Alle Zeiten sind GMT + 1 Stunde
PNphpBB2 © 2003-2007