Unable to resolve hostnames while using APT, what could be the problem?

Until two days before today my Ubuntu 10.10 Server updated fine.

The output of sudo aptitude update

The output of sudo aptitude update after replacing the Ubuntu Central Archive's domain with the IP

APT sources

Hosts

/etc/resolv.conf

4

1 Answer

Your network configuraton is broken. If you are using a static IP you must manually add the DNS servers to /etc/resolv.conf . For example, to use google public dns service, append the following lines to the file.

nameserver 8.8.8.8
nameserver 8.8.4.4

I am assuming that your IP network is properly configured and you can ping those IPs .

2

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

You Might Also Like