Unix Technical Forum

apt-get update broken (some downloaded files corrupted)

This is a discussion on apt-get update broken (some downloaded files corrupted) within the Debian Linux support forums, part of the Debian Linux category; --> Hi, I tried to apt-get update on a dodgy connection yesterday, and some files didn't get fully downloaded. Here's ...


Go Back   Unix Technical Forum > Unix Operating Systems > Debian Linux > Debian Linux support

Register FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 01-19-2008, 07:34 AM
Asfand Yar Qazi
 
Posts: n/a
Default apt-get update broken (some downloaded files corrupted)

Hi,

I tried to apt-get update on a dodgy connection yesterday, and some files
didn't get fully downloaded.

Here's what's in my /etc/apt/sources.list file:
deb http://ftp.uk.debian.org/debian unstable main contrib non-free
deb-src http://ftp.uk.debian.org/debian unstable main contrib non-free

Code:
deb http://ftp.uk.debian.org/debian experimental main contrib non-free
deb-src http://ftp.uk.debian.org/debian experimental main contrib non-free


After that, here's what apt-get update spits out:

# apt-get update
Get: 1 http://ftp.uk.debian.org unstable Release.gpg [189B]
Get: 2 http://ftp.uk.debian.org experimental Release.gpg [189B]
Hit http://ftp.uk.debian.org unstable Release
Hit http://ftp.uk.debian.org experimental Release
Ign http://ftp.uk.debian.org unstable/main Packages
Hit http://ftp.uk.debian.org unstable/contrib Packages
Hit http://ftp.uk.debian.org unstable/non-free Packages
Hit http://ftp.uk.debian.org unstable/main Sources
Hit http://ftp.uk.debian.org unstable/contrib Sources
Hit http://ftp.uk.debian.org unstable/non-free Sources
Ign http://ftp.uk.debian.org experimental/main Packages
Ign http://ftp.uk.debian.org experimental/contrib Packages
Ign http://ftp.uk.debian.org experimental/non-free Packages
Ign http://ftp.uk.debian.org experimental/main Sources
Ign http://ftp.uk.debian.org experimental/contrib Sources
Ign http://ftp.uk.debian.org experimental/non-free Sources
Get: 3 http://ftp.uk.debian.org unstable/main Packages [3991kB]
Hit http://ftp.uk.debian.org experimental/main Packages
Hit http://ftp.uk.debian.org experimental/contrib Packages
Hit http://ftp.uk.debian.org experimental/non-free Packages
Hit http://ftp.uk.debian.org experimental/main Sources
Hit http://ftp.uk.debian.org experimental/contrib Sources
Hit http://ftp.uk.debian.org experimental/non-free Sources
99% [3 Packages gzip 0]
gzip: stdin: not in gzip format
Errhttp://ftp.uk.debian.org unstable/main Packages
Sub-process gzip returned an error code (1)
Fetched 3B in 1s (2B/s)
Failed to fetch
http://ftp.uk.debian.org/debian/dist...86/Packages.gz
Sub-process gzip returned an error code (1)
Reading package lists... Done
E: Some index files failed to download, they have been ignored, or old ones
used instead.

What's going on?

Thanks

--
To reply, take of all ZIGs !!
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #2 (permalink)  
Old 01-19-2008, 07:34 AM
Peter J Ross
 
Posts: n/a
Default Re: apt-get update broken (some downloaded files corrupted)

On Sun, 12 Feb 2006 12:35:10 +0000, Asfand Yar Qazi
<ayZIG0106@qaziZIG.f2sZIG.com> wrote in alt.os.linux.debian:

> Hi,
>
> I tried to apt-get update on a dodgy connection yesterday, and some files
> didn't get fully downloaded.
>
> Here's what's in my /etc/apt/sources.list file:
> deb http://ftp.uk.debian.org/debian unstable main contrib non-free
> deb-src http://ftp.uk.debian.org/debian unstable main contrib non-free
>
> Code:
> deb http://ftp.uk.debian.org/debian experimental main contrib non-free
> deb-src http://ftp.uk.debian.org/debian experimental main contrib non-free
>
>
> After that, here's what apt-get update spits out:
>
> # apt-get update
> Get: 1 http://ftp.uk.debian.org unstable Release.gpg [189B]
> Get: 2 http://ftp.uk.debian.org experimental Release.gpg [189B]
> Hit http://ftp.uk.debian.org unstable Release
> Hit http://ftp.uk.debian.org experimental Release
> Ign http://ftp.uk.debian.org unstable/main Packages
> Hit http://ftp.uk.debian.org unstable/contrib Packages
> Hit http://ftp.uk.debian.org unstable/non-free Packages
> Hit http://ftp.uk.debian.org unstable/main Sources
> Hit http://ftp.uk.debian.org unstable/contrib Sources
> Hit http://ftp.uk.debian.org unstable/non-free Sources
> Ign http://ftp.uk.debian.org experimental/main Packages
> Ign http://ftp.uk.debian.org experimental/contrib Packages
> Ign http://ftp.uk.debian.org experimental/non-free Packages
> Ign http://ftp.uk.debian.org experimental/main Sources
> Ign http://ftp.uk.debian.org experimental/contrib Sources
> Ign http://ftp.uk.debian.org experimental/non-free Sources
> Get: 3 http://ftp.uk.debian.org unstable/main Packages [3991kB]
> Hit http://ftp.uk.debian.org experimental/main Packages
> Hit http://ftp.uk.debian.org experimental/contrib Packages
> Hit http://ftp.uk.debian.org experimental/non-free Packages
> Hit http://ftp.uk.debian.org experimental/main Sources
> Hit http://ftp.uk.debian.org experimental/contrib Sources
> Hit http://ftp.uk.debian.org experimental/non-free Sources
> 99% [3 Packages gzip 0]
> gzip: stdin: not in gzip format
> Errhttp://ftp.uk.debian.org unstable/main Packages
> Sub-process gzip returned an error code (1)
> Fetched 3B in 1s (2B/s)
> Failed to fetch
> http://ftp.uk.debian.org/debian/dist...86/Packages.gz
> Sub-process gzip returned an error code (1)
> Reading package lists... Done
> E: Some index files failed to download, they have been ignored, or old ones
> used instead.
>
> What's going on?


# ls /var/lib/apt/lists/partial/

Delete any files you see there and run apt-get update again.

This thread may explain what's happening:

<http://groups.google.co.uk/group/linux.debian.bugs.dist/browse_frm/thread/8ae88c3fa617c51f>

(Don't apply the patch; it's for an older version of apt.)


PJR :-)
--
Have you been touched ___ ___ Hammer of Thor, Jan 2006
by His noodly / _ \ / _ \
appendage? ( (_) )( (_) ) Pierre Salinger Memorial
\_ _/ \_ _/ Hook, Line & Sinker, Dec
STOP GLOBAL __ _.-\\----//--._ 2003 & May 2005
WARMING _ / _\___.-'/ _| / _\ /\/\`-._.-.__ _
NOW, (_\_)| \___ ||_ ((_ //\/\\ _.-._ \-' ) AHM Wittiest
JIM LAD! \__) __) | _| _) ) || || (_ \_.-' Troll of the
/_-. || \_/ || .-'-.\ Year, 2003
http:// _._// / .--._______.-'\ \ \\__._ 2004 & 2005
www. /_._/ \ \ )) \__._)
venganza (/ _.-') ( `-._ wsd 42 ~ mhm 34x8
..org/ (_.-' :F_P: `--._) smeeter 30 ~ mwpl 12
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #3 (permalink)  
Old 01-19-2008, 07:34 AM
Asfand Yar Qazi
 
Posts: n/a
Default Re: apt-get update broken (some downloaded files corrupted)

Peter J Ross wrote:
<snip>
>
>
> # ls /var/lib/apt/lists/partial/
>
> Delete any files you see there and run apt-get update again.
>
> This thread may explain what's happening:
>
> <http://groups.google.co.uk/group/linux.debian.bugs.dist/browse_frm/thread/8ae88c3fa617c51f>
>
> (Don't apply the patch; it's for an older version of apt.)
>
>
> PJR :-)


thanks

--
To reply, take of all ZIGs !!
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Forum Jump


All times are GMT. The time now is 07:27 AM.


Powered by vBulletin® Version 3.6.5
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
SEO by vBSEO 3.2.0
www.UnixAdminTalk.com