Take the 2-minute tour ×
Server Fault is a question and answer site for system and network administrators. It's 100% free, no registration required.

Can anyone tell me where to find URLs to put in /etc/apt/sources.list for debian so that I could run apt-get update?

I couldn't find the precise answer by searching Google.

When I currently try running apt-get update I get:

W: Failed to fetch ftp://ftp.debian.org/debian/dists/lenny/contrib/binary-i386/Packages  Unable to fetch file, server said 'Failed to open file.  ' [IP: 130.89.148.12 21]

W: Failed to fetch ftp://ftp.debian.org/debian/dists/lenny/non-free/binary-i386/Packages  Unable to fetch file, server said 'Failed to open file.  ' [IP: 130.89.148.12 21]

I have no idea how to solve this.

Here is how my current sources.list looks like:

deb ftp://ftp.debian.org/debian lenny main contrib non-free
deb-src ftp://ftp.debian.org/debian lenny main contrib non-free
deb ftp://ftp.debian.org/debian lenny/updates main contrib non-free
deb-src ftp://ftp.debian.org/debian lenny/updates main contrib non-free

I'm running debian_version 5.0.8:

# cat /etc/debian_version 
5.0.8

Thanks!

share|improve this question

2 Answers 2

Lenny is end of life; its repos have been removed from the normal mirrors. They now live on the archive mirror.

deb http://archive.debian.org/debian lenny main contrib non-free
deb-src http://archive.debian.org/debian lenny main contrib non-free
deb http://archive.debian.org/debian-security lenny/updates main contrib non-free
deb-src http://archive.debian.org/debian-security lenny/updates main contrib non-free
share|improve this answer
    
Thanks, it worked! –  Boda Cydo Jun 5 '12 at 23:09

It looks like mirror you're being sent to is broken. Try using the primary mirror for the country which the machine is hosted in. Also try using HTTP instead of FTP.

deb http://ftp.us.debian.org/debian lenny main contrib non-free
deb http://ftp.us.debian.org/debian lenny/updates main contrib non-free

If that still doesn't work, pick one of the secondary mirrors.

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.