Take the 2-minute tour ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

When I try to update or upgrade my Ubuntu 11.10 installation through either update manager or the terminal I get a connection error. How can I troubleshoot this?


Err us.archive.ubuntu.com/ubuntu oneiric-updates/main firefox amd64 12.0+build1-0ubuntu0.11.10.1 Connection failed [IP: 91.189.92.155 80] 
Err security.ubuntu.com/ubuntu oneiric-security/main firefox amd64 12.0+build1-0ubuntu0.11.10.1 Connection failed [IP: 91.189.92.151 80] 
Failed to fetch security.ubuntu.com/ubuntu/pool/main/f/firefox/… Connection failed [IP:91.189.92.151 80] 
E: Unable to fetch some archives, maybe run apt-get update or try with --fix-missing
share|improve this question
    
Please can you post the wording of the error? Also post output of this command typed into a treminal. dpkg -l |grep dpkg –  Sun Dial May 9 '12 at 14:42
    
ii dpkg 1.16.0.3ubuntu5.1 Debian package management system –  kwesi May 9 '12 at 16:05
    
Err us.archive.ubuntu.com/ubuntu oneiric-updates/main firefox amd64 12.0+build1-0ubuntu0.11.10.1 Connection failed [IP: 91.189.92.155 80] Err security.ubuntu.com/ubuntu oneiric-security/main firefox amd64 12.0+build1-0ubuntu0.11.10.1 Connection failed [IP: 91.189.92.151 80] Failed to fetch security.ubuntu.com/ubuntu/pool/main/f/firefox/… Connection failed [IP: 91.189.92.151 80] E: Unable to fetch some archives, maybe run apt-get update or try with --fix-missing? –  kwesi May 9 '12 at 16:06
    
Are you connecting to the Internet through a proxy? –  Sun Dial May 9 '12 at 16:14
    
Well am using a mobile usb modem. However, i have been using this all the while and have been able to update my ubuntu until recently. Could that be the issue? –  kwesi May 9 '12 at 16:27
show 2 more comments

1 Answer 1

If you are able to reach remote server on the internet using IP address, but not by domain name, then most likely you need to update your DNS servers:

  1. Edit /etc/resolv.conf:

    sudo vi /etc/resolv.conf
    
  2. If any nameserver lines appear, write down the IP addresses for future reference. Replace the nameserver lines with, or add, the following lines:

    For IPv4:

    nameserver 8.8.8.8
    nameserver 8.8.4.4
    

    For IPv6:

    nameserver 2001:4860:4860::8888
    nameserver 2001:4860:4860::8844
    
  3. Save and exit.

  4. Restart any Internet clients you are using.
  5. Test that your setup is working correctly:

    ping google.com
    

Reference: Google Public DNS

share|improve this answer
    
Dont know what happened, i tried again this morning without going through the proposed solution but its working. Updating through the terminal though –  kwesi May 10 '12 at 9:22
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.