PDA

View Full Version : [ubuntu] Ubuntu 12.04 Server error on update



larzeb
May 22nd, 2013, 04:11 PM
I am having trouble updating the operating system. I get an error when running sudo apt-get update


Ign http://us.archive.ubuntu.com precise-backports/universe TranslationIndex
Err http://us.archive.ubuntu.com precise-updates/main Sources
Unable to connect to us.archive.ubuntu.com:http: [IP: 91.189.91.13 80]
...


I have included some commands which might help. Any ideas on what might fix this? I am in the US.

Thanks Larry


larry@ubuntu:~$ nslookup ubuntu.com
;; connection timed out; no servers could be reached


larry@ubuntu:~$ nslookup google.com
Server: 8.8.4.4
Address: 8.8.4.4#53


Non-authoritative answer:
Name: google.com
Address: 74.125.225.40
Name: google.com
Address: 74.125.225.32
Name: google.com
Address: 74.125.225.37
Name: google.com
Address: 74.125.225.38
Name: google.com
Address: 74.125.225.39
Name: google.com
Address: 74.125.225.41
Name: google.com
Address: 74.125.225.33
Name: google.com
Address: 74.125.225.36
Name: google.com
Address: 74.125.225.46
Name: google.com
Address: 74.125.225.35
Name: google.com
Address: 74.125.225.34


larry@ubuntu:~$ dig ubuntu.com


; <<>> DiG 9.8.1-P1 <<>> ubuntu.com
;; global options: +cmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 51796
;; flags: qr rd ra; QUERY: 1, ANSWER: 1, AUTHORITY: 0, ADDITIONAL: 0


;; QUESTION SECTION:
;ubuntu.com. IN A


;; ANSWER SECTION:
ubuntu.com. 391 IN A 91.189.94.156


;; Query time: 1758 msec
;; SERVER: 8.8.4.4#53(8.8.4.4)
;; WHEN: Wed May 22 08:01:43 2013
;; MSG SIZE rcvd: 44


larry@ubuntu:~$ ifconfig
eth1 Link encap:Ethernet HWaddr 00:1b:21:36:23:2e
inet addr:192.168.10.24 Bcast:192.168.10.255 Mask:255.255.255.0
inet6 addr: fe80::21b:21ff:fe36:232e/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:13756 errors:0 dropped:0 overruns:0 frame:0
TX packets:12487 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:6735920 (6.7 MB) TX bytes:2951364 (2.9 MB)


lo Link encap:Local Loopback
inet addr:127.0.0.1 Mask:255.0.0.0
inet6 addr: ::1/128 Scope:Host
UP LOOPBACK RUNNING MTU:16436 Metric:1
RX packets:81 errors:0 dropped:0 overruns:0 frame:0
TX packets:81 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:5670 (5.6 KB) TX bytes:5670 (5.6 KB)


tun0 Link encap:UNSPEC HWaddr 00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00
inet addr:10.16.0.14 P-t-P:10.16.0.13 Mask:255.255.255.255
UP POINTOPOINT RUNNING NOARP MULTICAST MTU:1500 Metric:1
RX packets:7380 errors:0 dropped:0 overruns:0 frame:0
TX packets:6854 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:100
RX bytes:4645590 (4.6 MB) TX bytes:745975 (745.9 KB)


larry@ubuntu:~$ route -n
Kernel IP routing table
Destination Gateway Genmask Flags Metric Ref Use Iface
0.0.0.0 10.16.0.13 128.0.0.0 UG 0 0 0 tun0
0.0.0.0 192.168.10.254 0.0.0.0 UG 100 0 0 eth1
10.16.0.1 10.16.0.13 255.255.255.255 UGH 0 0 0 tun0
10.16.0.13 0.0.0.0 255.255.255.255 UH 0 0 0 tun0
128.0.0.0 10.16.0.13 128.0.0.0 UG 0 0 0 tun0
184.105.235.195 192.168.10.254 255.255.255.255 UGH 0 0 0 eth1
192.168.10.0 0.0.0.0 255.255.255.0 U 0 0 0 eth1

dino99
May 22nd, 2013, 04:41 PM
its an issue with the us.archive server; you cant do anything, except using an other server's archive (remove "us" to get the "main" server instead)

larzeb
May 22nd, 2013, 05:19 PM
Thanks, Dino, I changed "us" to "main" in /etc/apt/sources.list and that did the trick.