20.08.2014, 12:46 UhrDeutsch | English
Hallo Gast [ Registrierung | Anmelden ]

Neues Thema eröffnen   Neue Antwort erstellen
Vorheriges Thema anzeigen Druckerfreundliche Version Einloggen, um private Nachrichten zu lesen Nächstes Thema anzeigen
Autor Nachricht
nitto
Titel: bzip error with apt-get update  BeitragVerfasst am: 06.10.2006, 09:56 Uhr



Anmeldung: 31. Jul 2006
Beiträge: 81
Wohnort: Melbourne
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.

_________________
____________________________
The reasonable man adapts himself to the world;
The unreasonable man persists in trying to adapt the world to himself.
Therefore all progress depends on the unreasonable man. (George Bernard Shaw)


Zuletzt bearbeitet von nitto am 07.10.2006, 01:18 Uhr, insgesamt ein Mal bearbeitet
 
 Benutzer-Profile anzeigen Private Nachricht senden MSN Messenger  
Antworten mit Zitat Nach oben
piper
Titel: RE: weird error with apt-get update  BeitragVerfasst am: 06.10.2006, 15:42 Uhr
Team Member
Team Member


Anmeldung: 03. Mai 2005
Beiträge: 1544
Wohnort: out there somewhere
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

_________________
h2's d-u script
h2's rdiff-backup script
 
 Benutzer-Profile anzeigen Private Nachricht senden Website dieses Benutzers besuchen  
Antworten mit Zitat Nach oben
nitto
Titel: Re: RE: weird error with apt-get update  BeitragVerfasst am: 07.10.2006, 01:12 Uhr



Anmeldung: 31. Jul 2006
Beiträge: 81
Wohnort: Melbourne
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

_________________
____________________________
The reasonable man adapts himself to the world;
The unreasonable man persists in trying to adapt the world to himself.
Therefore all progress depends on the unreasonable man. (George Bernard Shaw)
 
 Benutzer-Profile anzeigen Private Nachricht senden MSN Messenger  
Antworten mit Zitat Nach oben
Beiträge vom vorherigen Thema anzeigen:     
Gehe zu:  
Alle Zeiten sind GMT + 1 Stunde
Neues Thema eröffnen   Neue Antwort erstellen
Vorheriges Thema anzeigen Druckerfreundliche Version Einloggen, um private Nachrichten zu lesen Nächstes Thema anzeigen
PNphpBB2 © 2003-2007 
 
Deutsch | English
Logos and trademarks are the property of their respective owners, comments are property of their posters, the rest is © 2004 - 2006 by Jörg Schirottke (Kano).
Consult Impressum and Legal Terms for details. Kanotix is Free Software released under the GNU/GPL license.
This CMS is powered by PostNuke, all themes used at this site are released under the GNU/GPL license. designed and hosted by w3you. Our web server is running on Kanotix64-2006.