Page 2 of 2 FirstFirst 12
Results 11 to 19 of 19

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

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

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

    Quote Originally Posted by amosjackson View Post
    All of those got stuck after "HTTP request sent, awaiting response..."
    ... and www.google.com went OK. Weird.

    I'll now leave to you to narrow it down what is going between www.google.com versus the archive.ubuntu.com sites. Try different URLs, and see what happens. Remove one (or two?) of the routers. Connector your computer to another LAN and see if it works. In other words: explore & narrow it down.

    With that info, I can help you further

  2. #12
    Join Date
    Mar 2013
    Beans
    11

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

    Something weird: mirrors that timeout on the server load perfectly fine on other computers on the same network (and router)

  3. #13
    Join Date
    Jan 2009
    Location
    ::1
    Beans
    2,461

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

    Quote Originally Posted by amosjackson View Post
    Something weird: mirrors that timeout on the server load perfectly fine on other computers on the same network (and router)
    And what if you live-boot Ubuntu from a CD/USB-stick in the server hardware?

  4. #14
    Join Date
    Mar 2013
    Beans
    11

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

    I forgot to tell you that I also have a raspberry pi webserver on the same router as this one. The router forwards port 80 to it. Also, live-booting made no difference

  5. #15
    Join Date
    Mar 2013
    Beans
    11

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

    Oh, and one more thing: I can ping 'uk.archive.ubuntu.com' perfectly well but curl and wget time out.

  6. #16
    Join Date
    Mar 2013
    Beans
    11

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

    Everything finally works!!! All I had to do was reduce the mtu from 1500 to 1412. Thanks for all your help, anyway.

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

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

    Quote Originally Posted by amosjackson View Post
    Everything finally works!!! All I had to do was reduce the mtu from 1500 to 1412. Thanks for all your help, anyway.
    MTU? Ouch! That was the one thing I wanted to mention but I didn't because I thought it was too unlikely and too difficult.

    How can MTU be a problem? Do you use some kind of tunneling / VPN / ... ?

  8. #18
    Join Date
    Mar 2013
    Beans
    11

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

    I really don't know. I just read on a forum somewhere that lowering your mtu might solve a problem. And no, I don't use any tunnelling.

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

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

    You can manually discover the MTU size with "ping -s":

    Code:
    ping -c4 -M do -s 900 nl.archive.ubuntu.com
    ping -c4 -M do -s 1400 nl.archive.ubuntu.com
    ping -c4 -M do -s 1500 nl.archive.ubuntu.com
    Note: add 28 to that number to get the MTU size.

    EDIT: one-liner to get the MTU:

    Code:
    $ ping -c1 -M do -s 10000 www.google.com | grep mtu | awk '{ print $NF }' | sed -e s/\)//
    1500
    HTH
    Last edited by sanderj; March 18th, 2013 at 11:22 PM.

Page 2 of 2 FirstFirst 12

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
  •