4

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

The output of sudo aptitude update http://codepad.org/tkvXq66j

The output of sudo aptitude update after replacing the Ubuntu Central Archive's domain with the IP http://codepad.org/QkgRhY8E

APT sources http://codepad.org/yh6E9TAe

Hosts http://codepad.org/yODoWbHp

/etc/resolv.conf http://codepad.org/Cba5kaEt

4
  • This is better suited for serverfault.com. Can you connect to the internet? What are the results of ping http://example.com and curl http://example.com?
    – Lekensteyn
    Commented Jan 15, 2011 at 11:01
  • @Lekensteyn: Yes, -every- other Internet-requiring functions correctly. "ping: unknown host archive.ubuntu.com". I don't have curl installed, and due to this issue I can't install it via APT. Commented Jan 15, 2011 at 11:27
  • If ping 8.8.8.8 works, it's a DNS issue. Otherwise, it's a problem in your network configuration. How can you run commands if you've no Internet connectivity?
    – Lekensteyn
    Commented Jan 15, 2011 at 13:08
  • @Lekensteyn: It's an oldie laptop on my LAN that I SSH into via PuTTY :D Commented Jan 15, 2011 at 14:32

1 Answer 1

2

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
  • Thank you, that fixed it ! Yes, my network has DHCP Server in the modem/router but computers are given static IP. Commented Jan 15, 2011 at 14:42
  • It's actually better to use your ISP's DNS servers rather than Google's. For example, you'll most likely get better routing to things like Akamai's network by using your ISP's DNS. Commented Jan 18, 2011 at 1:26

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .