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

Thread: Ubuntu 12.10 Server inital apt-get update taking a very long time

  1. #1
    Join Date
    Mar 2013
    Beans
    11

    Ubuntu 12.10 Server inital apt-get update taking a very long time

    I am using a clean install of Ubuntu 12.10 server and when I run the sudo apt-get update command, it gets stuck after a few get requests on this:
    Code:
    100% [waiting for headers] [waiting for headers]
    . I left it overnight and when I returned, it had finished but many of the packages had failed connections or 404s. I then changed the sources.list to this (thinking it might be a mirror problem):
    Code:
    ###### Ubuntu Main Repos
    deb http://uk.archive.ubuntu.com/ubuntu/ quantal main restricted universe multiverse 
    deb-src http://uk.archive.ubuntu.com/ubuntu/ quantal main restricted universe multiverse 
    
    
    ###### Ubuntu Update Repos
    deb http://uk.archive.ubuntu.com/ubuntu/ quantal-security main restricted universe multiverse 
    deb http://uk.archive.ubuntu.com/ubuntu/ quantal-updates main restricted universe multiverse 
    deb-src http://uk.archive.ubuntu.com/ubuntu/ quantal-security main restricted universe multiverse 
    deb-src http://uk.archive.ubuntu.com/ubuntu/ quantal-updates main restricted universe multiverse
    When I updated, the exact same thing happened. I have tried using other mirrors as well but they all give similar results. Also, when I try to install using apt-get, it either says "unable to locate package (whatever the name is)" or "Package (whatever the name is) has no installation candidate"
    Last edited by amosjackson; March 18th, 2013 at 07:58 PM.

  2. #2
    Join Date
    Jan 2009
    Location
    ::1
    Beans
    2,485

    Re: Ubuntu 12.10 Server inital apt-get update taking a very long time

    I think it would help if you would post the exact output of update command.

    And: "failed connections or 404s" looks like a plain connection problem. Might be remote (ie on the server), or on your local system. So: on what kind of LAN are you?

    What's your output of:

    HTH

  3. #3
    Join Date
    Mar 2013
    Beans
    11

    Re: Ubuntu 12.10 Server inital apt-get update taking a very long time

    I'm running Ubuntu server and because I can't update, I can't install an ssh server. How should I copy my outputs?

  4. #4
    Join Date
    Jan 2009
    Location
    ::1
    Beans
    2,485

    Re: Ubuntu 12.10 Server inital apt-get update taking a very long time

    Quote Originally Posted by amosjackson View Post
    I'm running Ubuntu server and because I can't update, I can't install an ssh server. How should I copy my outputs?
    I can also give you different advices on that, but the shortest advice: use your phone or camera to make a picture of your screen, and post it ...

  5. #5
    Join Date
    Mar 2013
    Beans
    11

    Re: Ubuntu 12.10 Server inital apt-get update taking a very long time

    When I entered the commands, it got stuck both times:



    AND

    Last edited by amosjackson; March 17th, 2013 at 03:22 PM.

  6. #6
    Join Date
    Mar 2013
    Beans
    11

    Re: Ubuntu 12.10 Server inital apt-get update taking a very long time

    I'm not sure if it matters but the server is behind two routers

  7. #7
    Join Date
    Jan 2009
    Location
    ::1
    Beans
    2,485

    Re: Ubuntu 12.10 Server inital apt-get update taking a very long time

    It looks like you have a network problem. I'll repeat my question: So: on what kind of LAN are you? Home-LAN? Corporate LAN?

    Why are you behind two routers?

    What is the output of

    Code:
    mtr -nrc2 8.8.8.8
    
    time wget www.google.com

  8. #8
    Join Date
    Mar 2013
    Beans
    11

    Re: Ubuntu 12.10 Server inital apt-get update taking a very long time

    I'm on a home LAN. I'm behind two routers because the second router acts as an ethernet switch (also I need a second wifi network). But I tried it without the second router and it made no difference.
    The results of those commands were:



    and


  9. #9
    Join Date
    Jan 2009
    Location
    ::1
    Beans
    2,485

    Re: Ubuntu 12.10 Server inital apt-get update taking a very long time

    Your network looks OK. The uk.archive.ubuntu.com does connect, but you get no respsonse. Strange.

    What is the output of:


  10. #10
    Join Date
    Mar 2013
    Beans
    11

    Re: Ubuntu 12.10 Server inital apt-get update taking a very long time

    All of those got stuck after "HTTP request sent, awaiting response..."

Page 1 of 2 12 LastLast

Tags for this Thread

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
  •