debian 5 lenny openvz template with wrong /etc/apt/sources.list

I was getting 404 Not found errors using my new openvz with debian lenny

elephant:~# apt-get update
Hit http://ftp.debian.org lenny Release.gpg
Ign http://ftp.debian.org lenny/volatile Release.gpg
Ign http://ftp.debian.org lenny/updates Release.gpg
Hit http://ftp.debian.org lenny Release
Ign http://ftp.debian.org lenny/volatile Release
Ign http://ftp.debian.org lenny/updates Release
Ign http://ftp.debian.org lenny/main Packages/DiffIndex
Ign http://ftp.debian.org lenny/contrib Packages/DiffIndex
Ign http://ftp.debian.org lenny/non-free Packages/DiffIndex

Ign http://ftp.debian.org lenny/volatile/main Packages
Ign http://ftp.debian.org lenny/volatile/contrib Packages
Ign http://ftp.debian.org lenny/volatile/non-free Packages
Ign http://ftp.debian.org lenny/updates/main Packages
Ign http://ftp.debian.org lenny/updates/contrib Packages
Ign http://ftp.debian.org lenny/updates/non-free Packages
Hit http://ftp.debian.org lenny/main Packages
Hit http://ftp.debian.org lenny/contrib Packages
Hit http://ftp.debian.org lenny/non-free Packages
Ign http://ftp.debian.org lenny/volatile/main Packages
Ign http://ftp.debian.org lenny/volatile/contrib Packages
Ign http://ftp.debian.org lenny/volatile/non-free Packages
Ign http://ftp.debian.org lenny/updates/main Packages
Ign http://ftp.debian.org lenny/updates/contrib Packages
Ign http://ftp.debian.org lenny/updates/non-free Packages
Err http://ftp.debian.org lenny/volatile/main Packages
404 Not Found [IP: 2001:610:1908:a000::149:226 80]
Err http://ftp.debian.org lenny/volatile/contrib Packages
404 Not Found [IP: 2001:610:1908:a000::149:226 80]
Err http://ftp.debian.org lenny/volatile/non-free Packages
404 Not Found [IP: 2001:610:1908:a000::149:226 80]
Err http://ftp.debian.org lenny/updates/main Packages
404 Not Found [IP: 2001:610:1908:a000::149:226 80]
Err http://ftp.debian.org lenny/updates/contrib Packages
404 Not Found [IP: 2001:610:1908:a000::149:226 80]
Err http://ftp.debian.org lenny/updates/non-free Packages
404 Not Found [IP: 2001:610:1908:a000::149:226 80]
W: Failed to fetch http://ftp.debian.org/debian-volatile/dists/lenny/volatile/main/binary-i386/Packages  404 Not Found [IP: 2001:610:1908:a000::149:226 80]

W: Failed to fetch http://ftp.debian.org/debian-volatile/dists/lenny/volatile/contrib/binary-i386/Packages  404 Not Found [IP: 2001:610:1908:a000::149:226 80]

W: Failed to fetch http://ftp.debian.org/debian-volatile/dists/lenny/volatile/non-free/binary-i386/Packages  404 Not Found [IP: 2001:610:1908:a000::149:226 80]

W: Failed to fetch http://ftp.debian.org/debian-security/dists/lenny/updates/main/binary-i386/Packages  404 Not Found [IP: 2001:610:1908:a000::149:226 80]

W: Failed to fetch http://ftp.debian.org/debian-security/dists/lenny/updates/contrib/binary-i386/Packages  404 Not Found [IP: 2001:610:1908:a000::149:226 80]

W: Failed to fetch http://ftp.debian.org/debian-security/dists/lenny/updates/non-free/binary-i386/Packages  404 Not Found [IP: 2001:610:1908:a000::149:226 80]

E: Some index files failed to download, they have been ignored, or old ones used instead.

it proved to be wrong entries in /etc/apt/sources.list

just replace them with these

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

Leave a Comment

NOTE - You can use these HTML tags and attributes:
<a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <s> <strike> <strong>

This site uses Akismet to reduce spam. Learn how your comment data is processed.