Problem with Updates Repo (6.06LTS)

Asked by Saquib

I live in Bangladesh. I've tried several times, even with changing the sources.list file, but i think the Ubuntu Updates repository has no mirrors! And I cant use the updates repository properly. The kernel/updates listed in my synaptic are older and wont update even with apt-get update. When it wants to upgrade, it looks for the listed (old) files, and cant find them, shows 404 not found error. But the files that it gets in there, are fetched! So i think apt-get can connect with the repo, but somehow cant get the file list!! It uses the existing list and when it cant find files its looking for in the repo, it shows error!! What to do???

When I refresh my list i get this:
http://archive.ubuntu.com/ubuntu/dists/dapper-updates/universe/binary-i386/Packages.gz: Sub-process gzip returned an error code (1)

Then, when I try upgrading certain components, for example, the kernel; I will get:
W: Failed to fetch http://security.ubuntu.com/ubuntu/pool/main/l/linux-source-2.6.15/linux-image-2.6.15-26-386_2.6.15-26.46_i386.deb
  404 Not Found

W: Failed to fetch http://security.ubuntu.com/ubuntu/pool/restricted/l/linux-restricted-modules-2.6.15/linux-restricted-modules-2.6.15-26-386_2.6.15.11-3_i386.deb
  404 Not Found

PLEASE HELP!! I have used Ubuntu 6.06 before, didn't have this probem.

Question information

Language:
English Edit question
Status:
Solved
For:
Ubuntu synaptic Edit question
Assignee:
No assignee Edit question
Solved by:
Luca Falavigna
Solved:
Last query:
Last reply:
Revision history for this message
Luca Falavigna (dktrkranz) said :
#1

Could you please attach your /etc/apt/sources.list file?

Revision history for this message
Saquib (saquib-h) said :
#2

deb-src http://au.archive.ubuntu.com/ubuntu/ dapper main restricted

## Major bug fix updates produced after the final release of the
## distribution.
deb http://archive.ubuntu.com/ubuntu/ dapper-updates main restricted universe multiverse
deb-src http://au.archive.ubuntu.com/ubuntu/ dapper-updates main restricted

## Uncomment the following two lines to add software from the 'universe'
## repository.
## N.B. software from this repository is ENTIRELY UNSUPPORTED by the Ubuntu
## team, and may not be under a free licence. Please satisfy yourself as to
## your rights to use the software. Also, please note that software in
## universe WILL NOT receive any review or updates from the Ubuntu security
## team.
deb http://archive.ubuntu.com/ubuntu/ dapper universe main restricted multiverse
deb-src http://au.archive.ubuntu.com/ubuntu/ dapper universe

## Uncomment the following two lines to add software from the 'backports'
## repository.
## N.B. software from this repository may not have been tested as
## extensively as that contained in the main release, although it includes
## newer versions of some applications which may provide useful features.
## Also, please note that software in backports WILL NOT receive any review
## or updates from the Ubuntu security team.
deb http://archive.ubuntu.com/ubuntu/ dapper-backports main restricted universe multiverse
deb-src http://au.archive.ubuntu.com/ubuntu/ dapper-backports main restricted universe multiverse

deb-src http://security.ubuntu.com/ubuntu dapper-security main restricted
deb http://security.ubuntu.com/ubuntu/ dapper-security universe main restricted multiverse
deb-src http://security.ubuntu.com/ubuntu dapper-security universe
deb http://idefix.eup.uva.es/paquetes/gaim2.0/ ./

Revision history for this message
John Vivirito (gnomefreak) said :
#3

you are missing deb http://au.archive.ubuntu.com/ubuntu/ dapper main restricted add that repo and update your list again. thank you. If this fixes your problem please concider closing this support request.

Revision history for this message
John Vivirito (gnomefreak) said :
#4

Scratch that please use the repos found at http://paste.ubuntu-nl.org/6666/ and refresh the list. your list is kind of messy but it does look like you are missing the main as stated about and in the error.

Revision history for this message
Saquib (saquib-h) said :
#5

I'm still having error, even after only using the sources list you specified:

saquib@7900GTX-LINUX:~$ sudo apt-get update
Get:1 http://security.ubuntu.com dapper-security Release.gpg [189B]
Hit http://security.ubuntu.com dapper-security Release
Hit http://security.ubuntu.com dapper-security/main Packages
Hit http://security.ubuntu.com dapper-security/restricted Packages
Hit http://security.ubuntu.com dapper-security/universe Packages
Hit http://security.ubuntu.com dapper-security/multiverse Packages
Get:2 http://archive.ubuntu.com dapper Release.gpg [189B]
Get:3 http://archive.ubuntu.com dapper-updates Release.gpg [189B]
Hit http://archive.ubuntu.com dapper Release
Hit http://archive.ubuntu.com dapper-updates Release
Hit http://archive.ubuntu.com dapper/main Packages
Hit http://archive.ubuntu.com dapper/restricted Packages
Hit http://archive.ubuntu.com dapper/universe Packages
Hit http://archive.ubuntu.com dapper/multiverse Packages
Hit http://archive.ubuntu.com dapper-updates/main Packages
Hit http://archive.ubuntu.com dapper-updates/restricted Packages
Ign http://archive.ubuntu.com dapper-updates/universe Packages
Hit http://archive.ubuntu.com dapper-updates/multiverse Packages
Get:4 http://archive.ubuntu.com dapper-updates/universe Packages [16.8kB]
99% [4 Packages gzip 0] 10.9kB/s 0s
gzip: stdin: not in gzip format
Err http://archive.ubuntu.com dapper-updates/universe Packages
  Sub-process gzip returned an error code (1)
Fetched 192B in 24s (8B/s)
Failed to fetch http://archive.ubuntu.com/ubuntu/dists/dapper-updates/universe/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.

Revision history for this message
Alan Pope 🍺🐧🐱 🦄 (popey) said :
#6

That looks like a dodgy internet connection to me. Are you on dialup by any chance?

The file you are downloading is:-

http://archive.ubuntu.com/ubuntu/dists/dapper-updates/universe/binary-i386/Packages.gz

And it does exist.

Does it eventually work if you run it repeatedly?

If you test downloading that file manually by doing the following, what speed download do you get?

wget http://archive.ubuntu.com/ubuntu/dists/dapper-updates/universe/binary-i386/Packages.gz

Is there anything else using the line that you could stop to give more bandwidth to apt-get?

Revision history for this message
Saquib (saquib-h) said :
#7

15 kBps ... everything else works, including MOST other repositories! Something else is wrong here! I aint the only one, please see this: http://www.ubuntuforums.org/archive/index.php/t-9944.html

Revision history for this message
Alan Pope 🍺🐧🐱 🦄 (popey) said :
#8

So the wget worked? That implies there's no problem on the server end or you wouldn't get the file.

Once you wget can you try unzipping it with gzip -d Packages.gz ?

Does it unzip okay with no errors?

Does the apt-get update eventually work if you try again and again or does it fail repeatedly *every* time?

Revision history for this message
Saquib (saquib-h) said :
#9

not yet tried with wget, I changed all the repo's links from "http" to "ftp" (using the list u gave, but with FTP) and apt-get update showed no errors. now im doing system upgrade, see if all files can be fetched and downloaded. im sure there is no poblem with my PC or settings, cuz many other stuffs work just fine. I'll confirm you if this solution (chaging from http to ftp) really solves this. The explanation is given on the link i referred to before!

"Luckily, on account of their Incredible Firewall Setup, the simple fix was to switch to ftp:// URLs in the /etc/apt/sources.list file - bingo, no more silly proxy content filter. Thanks for the suggestion. I was just getting a similar error on one of the US repositories and changing it from http:// to ftp:// in sources.list fixed the problem for me. I really wish people would stop breaking the server configs!"

Revision history for this message
Saquib (saquib-h) said :
#10

ill confirm if the problem is 100% solved, within a next few hours, when everything finishes downloading....

Revision history for this message
Saquib (saquib-h) said :
#11

Everything works fine when I change "http" to "ftp". Downloaded and install without any hassle.still confused about repositories that dont have any ftp links, and gives trouble with http. But for now this issue's 90% solved.

Revision history for this message
Saquib (saquib-h) said :
#12