apt-get update error

James Gray james at grayonline.id.au
Wed Jun 21 21:55:05 UTC 2006


On Wednesday 21 June 2006 20:56, Tez wrote:
> Hi,
> This isn't a huge problem but it gets annoying.
> When I do a "sudo apt-get update" everything goes fine except when it
> gets to
> http://archive.ubuntu.com dapper/main Packages
> It says:
> gzip: stdin: not in gzip format
> Errhttp://archive.ubuntu.com dapper/main Packages
>   Sub-process gzip returned an error code (1)
>
> And at the end it says:
> Failed to fetch
> http://archive.ubuntu.com/ubuntu/dists/dapper/main/binary-i386/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.
>
> This has been going on for a while now, but the odd thing is if I do:
> "wget
> http://archive.ubuntu.com/ubuntu/dists/dapper/main/binary-i386/Packages.gz
> -O -|gzip -dc > filename"
> it works fine, no errors.
> What command dose apt-get use to decompress the Packages.gz file that's
> not working?

Try:
sudo apt-get --fix-missing update

I had a similar problem a few days ago on my AMD64 Dapper machine and this 
cured it.  I think "they" did something funky with the main repo's and a few 
of the mirrors got junk temporarily.  If you did an update before the 
"junked" mirrors resynced, you have this problem.  The "--fix-missing" switch 
tells apt to basically re-fetch all the package lists and rebuild it's index 
of available packages.  The man page will give you the full details, but 
that's it in layman's terms.

Cheers,

James



-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: not available
URL: <https://lists.ubuntu.com/archives/kubuntu-users/attachments/20060622/03a2c46f/attachment.sig>


More information about the kubuntu-users mailing list