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
ping http://example.com
andcurl http://example.com
?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?