Debian Lenny "apt-get update" error

Just the other day I made the leap to debian (lenny) having worked red-hat type distros mostly in the past.
I'm still getting comfortable with it and I'm trying to update my apt source.list to a local mirror.
Everything seemed to be going well until I ran "apt-get update" and gave me a "failed to fetch" error. I thought I had the source in wrong but I've checked that, its finding the right directories on the mirror.

The problem is that the packages are in a gzip file on the mirror and apt-get update doesn't search for the .gz extension and so doesn't see it.
The output that shows the error is in thecode snippet below.

The server ftp.heanet.ie exists and the file Packages.gz exists in the directory that apt-get looks in. You can have a look for yourself, its an anonymous login. Unfortunately apt-get only seems to look for Packages and not Packages.gz.
Can I tell it to look the compressed .gz files?

Thanks for any and all help.
Rory

Get:7 ftp://ftp.heanet.ie lenny/updates/main Packages
Err ftp://ftp.heanet.ie lenny/updates/main Packages
  Unable to fetch file, server said '/debian/dists/lenny/updates/main/binary-i386/Packages: No such file or directory  ' [IP: 193.1.193.64 21]
Get:8 ftp://ftp.heanet.ie lenny/updates/contrib Packages
Err ftp://ftp.heanet.ie lenny/updates/contrib Packages
  Unable to fetch file, server said '/debian/dists/lenny/updates/contrib/binary-i386/Packages: No such file or directory  ' [IP: 193.1.193.64 21]
W: Failed to fetch ftp://ftp.heanet.ie/debian/dists/lenny/updates/main/binary-i386/Packages  Unable to fetch file, server said '/debian/dists/lenny/updates/main/binary-i386/Packages: No such file or directory  ' [IP: 193.1.193.64 21]
 
W: Failed to fetch ftp://ftp.heanet.ie/debian/dists/lenny/updates/contrib/binary-i386/Packages  Unable to fetch file, server said '/debian/dists/lenny/updates/contrib/binary-i386/Packages: No such file or directory  ' [IP: 193.1.193.64 21]
 
E: Some index files failed to download, they have been ignored, or old ones used instead.

Open in new window

LVL 9
Red-KingIT ManagerAsked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

osintsevCommented:
Please give your /etc/apt/sources.list
0
Red-KingIT ManagerAuthor Commented:
Sure.

#
# deb cdrom:[Debian GNU/Linux 5.0.1 _Lenny_ - Official i386 DVD Binary-1 20090413-00:33]/ lenny contrib main
#deb cdrom:[Debian GNU/Linux 5.0.1 _Lenny_ - Official i386 DVD Binary-1 20090413-00:33]/ lenny contrib main
#deb http://security.debian.org/ lenny/updates main contrib
#deb-src http://security.debian.org/ lenny/updates main contrib
#deb http://volatile.debian.org/debian-volatile lenny/volatile main contrib
#deb-src http://volatile.debian.org/debian-volatile lenny/volatile main contrib
deb ftp://ftp.heanet.ie/debian lenny/updates main contrib
0
Red-KingIT ManagerAuthor Commented:
This sources file worked but I don't get the updates downloaded. just contrib and main (better than nothing I guess)

deb ftp://ftp.heanet.ie/debian lenny contrib main
deb-src ftp://ftp.heanet.ie/debian lenny contrib main

Trying to tag updates onto the end didn't work either. Does it have to be in a certain order?

Rory
0
osintsevCommented:
the problem is that heanet.ie does not contain security updates. Replace your /etc/apt/sources.list with this:
deb http://security.debian.org/ lenny/updates main contrib
deb-src http://security.debian.org/ lenny/updates main contrib
deb ftp://ftp.heanet.ie/debian/ lenny main contrib

Open in new window

0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
Red-KingIT ManagerAuthor Commented:
Ok, it seems there's no updates folder on this mirror. That would do it.
I think I understand the format of the sources file now.

0
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Linux Distributions

From novice to tech pro — start learning today.