Results 1 to 5 of 5

Thread: apt-get update & upgrade not working

  1. #1
    Join Date
    Sep 2013
    Beans
    50

    apt-get update & upgrade not working

    Hi,

    I recently installed a Ubuntu Server 12.04LTS and have been having fun setting it up.

    However on boot the system mentioned that it needed some updates and I was prompted to type. "sudo apt-get update" and "sudo apt-get upgrade" this all worked and all was fine it said all was completed.

    But now when I try and use the "sudo apt-get install minidlna"command for example I get:

    "Failed to fetch http://gb.archive.ubuntu.com/ubuntu/...ntu1_amd64.deb Temporary failure resolving ‘gb.archive.ubuntu.com’
    E: Unable to fetch some archives, maybe run apt-get update or try with --fix-missing?"

    I have read online that this can be to do with ISP however all worked fine until the "sudo apt-get upgrade"

    Does anyone know how to fix this? Can I downgrade the apt-get function back to what it was on the original install?

    Regards.

    Adam

  2. #2
    Join Date
    Dec 2008
    Location
    USA
    Beans
    524
    Distro
    Ubuntu 12.04 Precise Pangolin

    Re: apt-get update & upgrade not working

    Sounds like a DNS problem. Check your /etc/resolv.conf file.
    Can you ping 8.8.8.8 ?
    I don' really like coffee. I guess I'll give my Ubuntu beans to my wife.

    Luke

  3. #3
    Join Date
    Sep 2013
    Beans
    50

    Re: apt-get update & upgrade not working

    Hi,

    Yeah i can ping 8.8.8.8

    Adam

  4. #4
    Join Date
    Nov 2008
    Location
    S.H.I.E.L.D. 6-1-6
    Beans
    Hidden!
    Distro
    Ubuntu Development Release

    Re: apt-get update & upgrade not working

    Quote Originally Posted by adam17 View Post
    Hi,

    Yeah i can ping 8.8.8.8

    Adam
    Can you post the output of
    Code:
    cat /etc/resolv.conf
    Depending on your config, there are two things it can show.

    Either, it will say it is managed by resolvconf, .etc .etc

    In that case, add the line
    Code:
    dns-nameservers 8.8.8.8 8.8.4.4
    to your main network interface in /etc/network/interfaces


    If you are using DHCP and the file does have nameservers, but are incorrect, then this is a issue you should take up with the DHCP server that serves your network

    Otherwise, if the file is blank, or has the wrong nameservers and you are using static interfaces, run
    Code:
    echo "nameserver 8.8.8.8" > /etc/resolv.conf
    echo "nameserver 8.8.4.4" >> /etc/resolv.conf
    Last edited by sandyd; December 21st, 2013 at 07:22 AM. Reason: typo
    Don't waste your energy trying to change opinions ... Do your thing, and don't care if they like it.

  5. #5
    Join Date
    Nov 2009
    Beans
    1

    Re: apt-get update & upgrade not working

    Quote Originally Posted by sandyd View Post
    Can you post the output of
    Code:
    cat /etc/resolv.conf
    Depending on your config, there are two things it can show.

    Either, it will say it is managed by resolvconf, .etc .etc

    In that case, add the line
    Code:
    dns-nameservers 8.8.8.8 8.8.4.4
    to your main network interface in /etc/network/interfaces


    If you are using DHCP and the file does have nameservers, but are incorrect, then this is a issue you should take up with the DHCP server that serves your network

    Otherwise, if the file is blank, or has the wrong nameservers and you are using static interfaces, run
    Code:
    echo "nameserver 8.8.8.8" > /etc/resolv.conf
    echo "nameserver 8.8.8.8" >> /etc/resolv.conf
    Probably should be :

    echo "nameserver 8.8.8.8" > /etc/resolv.conf
    echo "nameserver 8.8.4.4" >> /etc/resolv.conf

    to concatenate the second nameserver line... there is no point in entering the same nameserver address twice.

    NickB

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
  •