Page 1 of 2 12 LastLast
Results 1 to 10 of 17

Thread: Not able to run sudo apt-get update

  1. #1
    Join Date
    Dec 2013
    Beans
    6

    Not able to run sudo apt-get update

    Hello,
    I am running Ubuntu Server 12.10 on an old Dell computer. About a year ago I had everything working well, decided to do a fresh install and am now having problems.

    I am trying to install software through
    Code:
    sudo apt-get install softwareName
    , however I get the error message
    Code:
    E:Unable to locate package softwareName
    . I have read other forums and posts and have checked my
    Code:
     /etc/apt/sources.list
    file and all the sites/archives are uncommented. I have successfully pinged Google (using the ip address 74.125.225.180) so I am connected to the internet. As a result, I figured I needed to update my system (I don't think I ever did after initial installation). I have tried
    Code:
    sudo apt-get update
    many times and always receive the same message:

    Code:
    Err http://security.ubuntu.com quantal-security InRelease
    
    
    Err http://extras.ubuntu.com quantal InRelease
    
    
    Err http://archive.canonical.com quantal InRelease
    
    
    Err http://archive.canonical.com quantal Release.gpg
      Temporary failure resolving 'archive.canonical.com'
    Err http://security.ubuntu.com quantal-security Release.gpg
      Temporary failure resolving 'security.ubuntu.com'
    Err http://extras.ubuntu.com quantal Release.gpg
      Temporary failure resolving 'extras.ubuntu.com'
    Err http://us.archive.ubuntu.com quantal InRelease
    
    
    Err http://us.archive.ubuntu.com quantal-updates InRelease
    
    
    Err http://us.archive.ubuntu.com quantal-backports InRelease
    
    
    Err http://us.archive.ubuntu.com quantal Release.gpg
      Temporary failure resolving 'us.archive.ubuntu.com'
    Err http://us.archive.ubuntu.com quantal-updates Release.gpg
      Temporary failure resolving 'us.archive.ubuntu.com'
    Err http://us.archive.ubuntu.com quantal-backports Release.gpg
      Temporary failure resolving 'us.archive.ubuntu.com'
    Reading package lists... Done
    W: Failed to fetch http://us.archive.ubuntu.com/ubuntu/...ntal/InRelease
    
    
    W: Failed to fetch http://us.archive.ubuntu.com/ubuntu/...ates/InRelease
    
    
    W: Failed to fetch http://us.archive.ubuntu.com/ubuntu/...orts/InRelease
    
    
    W: Failed to fetch http://security.ubuntu.com/ubuntu/di...rity/InRelease
    
    
    W: Failed to fetch http://archive.canonical.com/ubuntu/...ntal/InRelease
    
    
    W: Failed to fetch http://extras.ubuntu.com/ubuntu/dists/quantal/InRelease
    
    
    W: Failed to fetch http://security.ubuntu.com/ubuntu/di...ty/Release.gpg  Temporary failure resolving 'security.ubuntu.com'
    
    
    W: Failed to fetch http://extras.ubuntu.com/ubuntu/dist...al/Release.gpg  Temporary failure resolving 'extras.ubuntu.com'
    
    
    W: Failed to fetch http://archive.canonical.com/ubuntu/...al/Release.gpg  Temporary failure resolving 'archive.canonical.com'
    
    
    W: Failed to fetch http://us.archive.ubuntu.com/ubuntu/...al/Release.gpg  Temporary failure resolving 'us.archive.ubuntu.com'
    
    
    W: Failed to fetch http://us.archive.ubuntu.com/ubuntu/...es/Release.gpg  Temporary failure resolving 'us.archive.ubuntu.com'
    
    
    W: Failed to fetch http://us.archive.ubuntu.com/ubuntu/...ts/Release.gpg  Temporary failure resolving 'us.archive.ubuntu.com'
    
    
    W: Some index files failed to download. They have been ignored, or old ones used instead.
    From what I understand, my server cannot reach the websites, however it is connected to the internet. My guess is that this is also why it cannot download software. As a result, I believe my server is having trouble resolving domain names.

    This is extremely frustrating as I cannot add any software to the server.... any ideas as to why this is happening are extremely welcome!
    Thanks!

  2. #2
    Join Date
    Apr 2011
    Location
    3rd Rock from the Sun
    Beans
    Hidden!
    Distro
    Ubuntu Development Release

    Re: Not able to run sudo apt-get update

    Try changing the Update server. 'Software Center' -> Edit ->Software sources -> select another server.

    Then run the following:
    Code:
    sudo rm /var/lib/apt/lists/* -vf
    sudo apt-get clean
    sudo apt-get update && sudo apt-get upgrade
    Post errors, if any.
    "Evolution is Nature's way of issuing upgrades."


  3. #3
    Join Date
    Dec 2013
    Beans
    77

    Re: Not able to run sudo apt-get update

    I think v12.10 is unsupported somehow as a default install. I understand maybe it is an "unstable" version of 12.04. To make it easy without messing with the configurations files too much I recommend to use v12.04 or v13.10. I know that error because I have a copy of version 10.10 64-bit on DVD and I cannot upgrade it at all because it is not supported anymore. I blame the linux ratrace for keeping up with the Jones'

  4. #4
    Join Date
    Jul 2007
    Location
    UK
    Beans
    16,900
    Distro
    Ubuntu Development Release

    Re: Not able to run sudo apt-get update

    Post your sources list please.

  5. #5
    Join Date
    Apr 2011
    Location
    3rd Rock from the Sun
    Beans
    Hidden!
    Distro
    Ubuntu Development Release

    Re: Not able to run sudo apt-get update

    12.10 had 18months support and it is still in support upto April 2014.
    "Evolution is Nature's way of issuing upgrades."


  6. #6
    Join Date
    Dec 2013
    Beans
    6

    Re: Not able to run sudo apt-get update

    Thanks for the replies,

    @Fantab, Nothing changed when I did apt-get update, wasn't able to completely remove everything because there was a directory there though.

    @philunix, This is my sources.list file:

    Code:
    # deb cdrom:[Ubuntu-Server 12.10 _Quantal Quetzal_ - Release i386 (20121017.2)]/ quantal main restricted
    
    
    #deb cdrom:[Ubuntu-Server 12.10 _Quantal Quetzal_ - Release i386 (20121017.2)]/ quantal main restricted
    
    
    # See http://help.ubuntu.com/community/UpgradeNotes for how to upgrade to
    # newer versions of the distribution.
    deb http://us.archive.ubuntu.com/ubuntu/ quantal main restricted
    deb-src http://us.archive.ubuntu.com/ubuntu/ quantal main restricted
    
    
    ## Major bug fix updates produced after the final release of the
    ## distribution.
    deb http://us.archive.ubuntu.com/ubuntu/ quantal-updates main restricted
    deb-src http://us.archive.ubuntu.com/ubuntu/ quantal-updates main restricted
    
    
    ## N.B. software from this repository is ENTIRELY UNSUPPORTED by the Ubuntu
    ## team. Also, please note that software in universe WILL NOT receive any
    ## review or updates from the Ubuntu security team.
    deb http://us.archive.ubuntu.com/ubuntu/ quantal universe
    deb-src http://us.archive.ubuntu.com/ubuntu/ quantal universe
    deb http://us.archive.ubuntu.com/ubuntu/ quantal-updates universe
    deb-src http://us.archive.ubuntu.com/ubuntu/ quantal-updates universe
    
    
    ## N.B. software from this repository is ENTIRELY UNSUPPORTED by the Ubuntu
    ## team, and may not be under a free licence. Please satisfy yourself as to
    ## your rights to use the software. Also, please note that software in
    ## multiverse WILL NOT receive any review or updates from the Ubuntu
    ## security team.
    deb http://us.archive.ubuntu.com/ubuntu/ quantal multiverse
    deb-src http://us.archive.ubuntu.com/ubuntu/ quantal multiverse
    deb http://us.archive.ubuntu.com/ubuntu/ quantal-updates multiverse
    deb-src http://us.archive.ubuntu.com/ubuntu/ quantal-updates multiverse
    
    
    ## N.B. software from this repository may not have been tested as
    ## extensively as that contained in the main release, although it includes
    ## newer versions of some applications which may provide useful features.
    ## Also, please note that software in backports WILL NOT receive any review
    ## or updates from the Ubuntu security team.
    deb http://us.archive.ubuntu.com/ubuntu/ quantal-backports main restricted universe multiverse
    deb-src http://us.archive.ubuntu.com/ubuntu/ quantal-backports main restricted universe multiverse
    
    
    deb http://security.ubuntu.com/ubuntu quantal-security main restricted
    deb-src http://security.ubuntu.com/ubuntu quantal-security main restricted
    deb http://security.ubuntu.com/ubuntu quantal-security universe
    deb-src http://security.ubuntu.com/ubuntu quantal-security universe
    deb http://security.ubuntu.com/ubuntu quantal-security multiverse
    deb-src http://security.ubuntu.com/ubuntu quantal-security multiverse
    
    
    ## Uncomment the following two lines to add software from Canonical's
    ## 'partner' repository.
    ## This software is not part of Ubuntu, but is offered by Canonical and the
    ## respective vendors as a service to Ubuntu users.
    deb http://archive.canonical.com/ubuntu quantal partner
    deb-src http://archive.canonical.com/ubuntu quantal partner
    
    
    ## Uncomment the following two lines to add software from Ubuntu's
    ## 'extras' repository.
    ## This software is not part of Ubuntu, but is offered by third-party
    ## developers who want to ship their latest software.
    deb http://extras.ubuntu.com/ubuntu quantal main
    deb-src http://extras.ubuntu.com/ubuntu quantal main

  7. #7
    Join Date
    Apr 2012
    Beans
    5,910

    Re: Not able to run sudo apt-get update

    Can you dig or ping the addresses it's complaining about? e.g.

    Code:
    dig us.archive.ubuntu.com

  8. #8
    Join Date
    Dec 2013
    Beans
    6

    Re: Not able to run sudo apt-get update

    The following is what happens when I ping or dig:

    Code:
    $ dig us.archive.ubuntu.com
    ; <<>> DiG 9.8.1-P1 <<>> us.archive.ubuntu.com
    ;; global options: +cmd
    ;; connection timed out; no servers could be reached
    $ ping us.archive.ubuntu.com
    ping: unknown host us.archive.ubuntu.com
    It seems like I am not able to access sites via url, however I am able to via ip address...I'm not sure why though

  9. #9
    Join Date
    Apr 2012
    Beans
    5,910

    Re: Not able to run sudo apt-get update

    So it looks like your system is unable to reach a DNS server - is this a real server box (no GUI, networking defined via /etc/network/interfaces) or are you using the GUI-based network manager?

    What do

    Code:
    ls -l /etc/resolv.conf
    
    cat /etc/resolv.conf
    say?

  10. #10
    Join Date
    May 2009
    Location
    Indiana
    Beans
    1,925
    Distro
    Ubuntu 14.04 Trusty Tahr

    Re: Not able to run sudo apt-get update

    Sounds like a problem with your DNS server.
    Jane, stop this crazy thing!

Page 1 of 2 12 LastLast

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •