As root i type this command apt-get update and get these error messages.

> Err lenny/updates Release.gpg Could not resolve 'security.debian.org' Err lenny/updates/main Translation-en_US Could not resolve 'security.debian.org' Err lenny/updates/contrib Translation-en_US Could not resolve 'security.debian.org' Err lenny/updates/non-free Translation-en_US Could not resolve 'security.debian.org' Err lenny-backports Release.gpg Could not resolve ' Err lenny-backports/main Translation-en_US Could not resolve ' Err lenny-backports/contrib Translation-en_US Could not resolve ' Err lenny-backports/non-free Translation-en_US Could not resolve ' Err lenny Release.gpg Could not resolve 'ftp.us.debian.org' Err lenny/main Translation-en_US Could not resolve 'ftp.us.debian.org' Err lenny/contrib Translation-en_US Could not resolve 'ftp.us.debian.org' Err lenny/non-free Translation-en_US Could not resolve 'ftp.us.debian.org' Err stable Release.gpg Could not resolve 'http.us.debian.org' Err stable/main Translation-en_US Could not resolve 'http.us.debian.org' Err stable/contrib Translation-en_US Could not resolve 'http.us.debian.org' Err stable/non-free Translation-en_US Could not resolve 'http.us.debian.org' Reading package lists... Done W: Failed to fetch Could not resolve 'ftp.us.debian.org' W: Failed to fetch Could not resolve 'ftp.us.debian.org' W: Failed to fetch Could not resolve 'ftp.us.debian.org' W: Failed to fetch Could not resolve 'ftp.us.debian.org' W: Failed to fetch Could not resolve 'http.us.debian.org' W: Failed to fetch Could not resolve 'http.us.debian.org' W: Failed to fetch Could not resolve 'http.us.debian.org' W: Failed to fetch Could not resolve 'http.us.debian.org' W: Failed to fetch Could not resolve 'security.debian.org' W: Failed to fetch Could not resolve 'security.debian.org' W: Failed to fetch Could not resolve 'security.debian.org' W: Failed to fetch Could not resolve 'security.debian.org' W: Failed to fetch Could not resolve ' W: Failed to fetch Could not resolve ' W: Failed to fetch Could not resolve ' W: Failed to fetch Could not resolve ' W: Some index files failed to download, they have been ignored, or old ones used instead. W: You may want to run apt-get update to correct these problems 

This is on a dreamplug linux server. Configured so that my network starts on 192.168.1.2 and my router is port forwarding ssh to 192.168.1.6 to the server.

5

3 Answers

Seems to be an issue with your DNS resolver.

Could not resolve 'security.debian.org' Could not resolve 'ftp.us.debian.org' 

etc, etc

It may be helpful to add more details.

What troubleshooting have you tried?

Has apt-get update worked before, and recently stopped working?

Can you ping any of the sites listed in the error?

5

I had to do a lot of searching around on this one.

HTTP seems to have a problem resolving but not FTP. I tried putting in an FTP:// instead of HTTP:// and it worked.

Edit:

/etc/apt/sources.list deb-src ftp:// wheezy main deb ftp:// wheezy main 

Your Answer

Sign up or log in

Sign up using Google Sign up using Facebook Sign up using Email and Password

Post as a guest

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy