16.04 - apt-get update 0% [Waiting for headers]












1















I'm going nuts here. Perhaps I'm just an idiot. I have a remote server colocated in a data center. I initially built the server on a local network and then dispatched it to the facility. I currently have remote access via SSH. This server has been running for over 6 months without any problems that I know of. I feel that I have exhausted my results on Google and SE so now I turn to you for help.



Here is some troubleshooting information I have gathered:





  1. Last few lines of strace. I can provide more if needed:



    0% [Waiting for headers]) = 25aders]", 25
    select(6, [5], , NULL, {0, 500000}) = 0 (Timeout)
    rt_sigprocmask(SIG_BLOCK, [WINCH], , 8) = 0
    rt_sigprocmask(SIG_SETMASK, , NULL, 8) = 0
    0% [Waiting for headers]) = 25aders]", 25
    select(6, [5], , NULL, {0, 500000}) = 0 (Timeout)
    rt_sigprocmask(SIG_BLOCK, [WINCH], , 8) = 0
    rt_sigprocmask(SIG_SETMASK, , NULL, 8) = 0
    0% [Waiting for headers]) = 25aders]", 25
    select(6, [5], , NULL, {0, 500000}) = 0 (Timeout)
    rt_sigprocmask(SIG_BLOCK, [WINCH], , 8) = 0
    rt_sigprocmask(SIG_SETMASK, , NULL, 8) = 0
    0% [Waiting for headers]) = 25aders]", 25



  2. A thread suggested that MTU or network may be the problem:



    root@ubuntu:~# ping -M do -s 1472 us.archive.ubuntu.com
    PING us.archive.ubuntu.com (91.189.91.26) 1472(1500) bytes of data.
    1480 bytes from hanger.canonical.com (91.189.91.26): icmp_seq=1 ttl=55 time=63.2 ms
    1480 bytes from hanger.canonical.com (91.189.91.26): icmp_seq=2 ttl=55 time=62.1 ms
    1480 bytes from hanger.canonical.com (91.189.91.26): icmp_seq=3 ttl=55 time=61.8 ms
    1480 bytes from hanger.canonical.com (91.189.91.26): icmp_seq=4 ttl=55 time=59.5 ms
    ^C
    --- us.archive.ubuntu.com ping statistics ---
    4 packets transmitted, 4 received, 0% packet loss, time 3004ms
    rtt min/avg/max/mdev = 59.590/61.701/63.218/1.318 ms



  3. Perhaps its my sources.list? Well I thought that too... :



    ###### Ubuntu Main Repos
    deb http://us.archive.ubuntu.com/ubuntu/ xenial main restricted universe multiverse
    deb-src http://us.archive.ubuntu.com/ubuntu/ xenial main

    ###### Ubuntu Update Repos
    deb http://us.archive.ubuntu.com/ubuntu/ xenial-security main restricted universe multiverse
    deb http://us.archive.ubuntu.com/ubuntu/ xenial-updates main restricted universe multiverse
    deb http://us.archive.ubuntu.com/ubuntu/ xenial-proposed main restricted universe multiverse
    deb http://us.archive.ubuntu.com/ubuntu/ xenial-backports main restricted universe multiverse


  4. IPv6 has been disabled on this server as per a suggestion.


  5. I have tried rebooting the server multiple times.


  6. apt-get clean does not solve the problem.


  7. Tried switching to ca.archive.ubuntu.com, no luck.


  8. I have requested a different public IP address from a different subnet to assign to the server. No luck.


  9. Other Ubuntu servers in this data center update without a problem.



So at this point the only solution I can come up with is to reinstall the operating system. This is a production web server with a small mysql database. Everything is backed up so it wouldn't be a problem to rebuild it. Just time consuming and quite disappointing.










share|improve this question





























    1















    I'm going nuts here. Perhaps I'm just an idiot. I have a remote server colocated in a data center. I initially built the server on a local network and then dispatched it to the facility. I currently have remote access via SSH. This server has been running for over 6 months without any problems that I know of. I feel that I have exhausted my results on Google and SE so now I turn to you for help.



    Here is some troubleshooting information I have gathered:





    1. Last few lines of strace. I can provide more if needed:



      0% [Waiting for headers]) = 25aders]", 25
      select(6, [5], , NULL, {0, 500000}) = 0 (Timeout)
      rt_sigprocmask(SIG_BLOCK, [WINCH], , 8) = 0
      rt_sigprocmask(SIG_SETMASK, , NULL, 8) = 0
      0% [Waiting for headers]) = 25aders]", 25
      select(6, [5], , NULL, {0, 500000}) = 0 (Timeout)
      rt_sigprocmask(SIG_BLOCK, [WINCH], , 8) = 0
      rt_sigprocmask(SIG_SETMASK, , NULL, 8) = 0
      0% [Waiting for headers]) = 25aders]", 25
      select(6, [5], , NULL, {0, 500000}) = 0 (Timeout)
      rt_sigprocmask(SIG_BLOCK, [WINCH], , 8) = 0
      rt_sigprocmask(SIG_SETMASK, , NULL, 8) = 0
      0% [Waiting for headers]) = 25aders]", 25



    2. A thread suggested that MTU or network may be the problem:



      root@ubuntu:~# ping -M do -s 1472 us.archive.ubuntu.com
      PING us.archive.ubuntu.com (91.189.91.26) 1472(1500) bytes of data.
      1480 bytes from hanger.canonical.com (91.189.91.26): icmp_seq=1 ttl=55 time=63.2 ms
      1480 bytes from hanger.canonical.com (91.189.91.26): icmp_seq=2 ttl=55 time=62.1 ms
      1480 bytes from hanger.canonical.com (91.189.91.26): icmp_seq=3 ttl=55 time=61.8 ms
      1480 bytes from hanger.canonical.com (91.189.91.26): icmp_seq=4 ttl=55 time=59.5 ms
      ^C
      --- us.archive.ubuntu.com ping statistics ---
      4 packets transmitted, 4 received, 0% packet loss, time 3004ms
      rtt min/avg/max/mdev = 59.590/61.701/63.218/1.318 ms



    3. Perhaps its my sources.list? Well I thought that too... :



      ###### Ubuntu Main Repos
      deb http://us.archive.ubuntu.com/ubuntu/ xenial main restricted universe multiverse
      deb-src http://us.archive.ubuntu.com/ubuntu/ xenial main

      ###### Ubuntu Update Repos
      deb http://us.archive.ubuntu.com/ubuntu/ xenial-security main restricted universe multiverse
      deb http://us.archive.ubuntu.com/ubuntu/ xenial-updates main restricted universe multiverse
      deb http://us.archive.ubuntu.com/ubuntu/ xenial-proposed main restricted universe multiverse
      deb http://us.archive.ubuntu.com/ubuntu/ xenial-backports main restricted universe multiverse


    4. IPv6 has been disabled on this server as per a suggestion.


    5. I have tried rebooting the server multiple times.


    6. apt-get clean does not solve the problem.


    7. Tried switching to ca.archive.ubuntu.com, no luck.


    8. I have requested a different public IP address from a different subnet to assign to the server. No luck.


    9. Other Ubuntu servers in this data center update without a problem.



    So at this point the only solution I can come up with is to reinstall the operating system. This is a production web server with a small mysql database. Everything is backed up so it wouldn't be a problem to rebuild it. Just time consuming and quite disappointing.










    share|improve this question



























      1












      1








      1








      I'm going nuts here. Perhaps I'm just an idiot. I have a remote server colocated in a data center. I initially built the server on a local network and then dispatched it to the facility. I currently have remote access via SSH. This server has been running for over 6 months without any problems that I know of. I feel that I have exhausted my results on Google and SE so now I turn to you for help.



      Here is some troubleshooting information I have gathered:





      1. Last few lines of strace. I can provide more if needed:



        0% [Waiting for headers]) = 25aders]", 25
        select(6, [5], , NULL, {0, 500000}) = 0 (Timeout)
        rt_sigprocmask(SIG_BLOCK, [WINCH], , 8) = 0
        rt_sigprocmask(SIG_SETMASK, , NULL, 8) = 0
        0% [Waiting for headers]) = 25aders]", 25
        select(6, [5], , NULL, {0, 500000}) = 0 (Timeout)
        rt_sigprocmask(SIG_BLOCK, [WINCH], , 8) = 0
        rt_sigprocmask(SIG_SETMASK, , NULL, 8) = 0
        0% [Waiting for headers]) = 25aders]", 25
        select(6, [5], , NULL, {0, 500000}) = 0 (Timeout)
        rt_sigprocmask(SIG_BLOCK, [WINCH], , 8) = 0
        rt_sigprocmask(SIG_SETMASK, , NULL, 8) = 0
        0% [Waiting for headers]) = 25aders]", 25



      2. A thread suggested that MTU or network may be the problem:



        root@ubuntu:~# ping -M do -s 1472 us.archive.ubuntu.com
        PING us.archive.ubuntu.com (91.189.91.26) 1472(1500) bytes of data.
        1480 bytes from hanger.canonical.com (91.189.91.26): icmp_seq=1 ttl=55 time=63.2 ms
        1480 bytes from hanger.canonical.com (91.189.91.26): icmp_seq=2 ttl=55 time=62.1 ms
        1480 bytes from hanger.canonical.com (91.189.91.26): icmp_seq=3 ttl=55 time=61.8 ms
        1480 bytes from hanger.canonical.com (91.189.91.26): icmp_seq=4 ttl=55 time=59.5 ms
        ^C
        --- us.archive.ubuntu.com ping statistics ---
        4 packets transmitted, 4 received, 0% packet loss, time 3004ms
        rtt min/avg/max/mdev = 59.590/61.701/63.218/1.318 ms



      3. Perhaps its my sources.list? Well I thought that too... :



        ###### Ubuntu Main Repos
        deb http://us.archive.ubuntu.com/ubuntu/ xenial main restricted universe multiverse
        deb-src http://us.archive.ubuntu.com/ubuntu/ xenial main

        ###### Ubuntu Update Repos
        deb http://us.archive.ubuntu.com/ubuntu/ xenial-security main restricted universe multiverse
        deb http://us.archive.ubuntu.com/ubuntu/ xenial-updates main restricted universe multiverse
        deb http://us.archive.ubuntu.com/ubuntu/ xenial-proposed main restricted universe multiverse
        deb http://us.archive.ubuntu.com/ubuntu/ xenial-backports main restricted universe multiverse


      4. IPv6 has been disabled on this server as per a suggestion.


      5. I have tried rebooting the server multiple times.


      6. apt-get clean does not solve the problem.


      7. Tried switching to ca.archive.ubuntu.com, no luck.


      8. I have requested a different public IP address from a different subnet to assign to the server. No luck.


      9. Other Ubuntu servers in this data center update without a problem.



      So at this point the only solution I can come up with is to reinstall the operating system. This is a production web server with a small mysql database. Everything is backed up so it wouldn't be a problem to rebuild it. Just time consuming and quite disappointing.










      share|improve this question
















      I'm going nuts here. Perhaps I'm just an idiot. I have a remote server colocated in a data center. I initially built the server on a local network and then dispatched it to the facility. I currently have remote access via SSH. This server has been running for over 6 months without any problems that I know of. I feel that I have exhausted my results on Google and SE so now I turn to you for help.



      Here is some troubleshooting information I have gathered:





      1. Last few lines of strace. I can provide more if needed:



        0% [Waiting for headers]) = 25aders]", 25
        select(6, [5], , NULL, {0, 500000}) = 0 (Timeout)
        rt_sigprocmask(SIG_BLOCK, [WINCH], , 8) = 0
        rt_sigprocmask(SIG_SETMASK, , NULL, 8) = 0
        0% [Waiting for headers]) = 25aders]", 25
        select(6, [5], , NULL, {0, 500000}) = 0 (Timeout)
        rt_sigprocmask(SIG_BLOCK, [WINCH], , 8) = 0
        rt_sigprocmask(SIG_SETMASK, , NULL, 8) = 0
        0% [Waiting for headers]) = 25aders]", 25
        select(6, [5], , NULL, {0, 500000}) = 0 (Timeout)
        rt_sigprocmask(SIG_BLOCK, [WINCH], , 8) = 0
        rt_sigprocmask(SIG_SETMASK, , NULL, 8) = 0
        0% [Waiting for headers]) = 25aders]", 25



      2. A thread suggested that MTU or network may be the problem:



        root@ubuntu:~# ping -M do -s 1472 us.archive.ubuntu.com
        PING us.archive.ubuntu.com (91.189.91.26) 1472(1500) bytes of data.
        1480 bytes from hanger.canonical.com (91.189.91.26): icmp_seq=1 ttl=55 time=63.2 ms
        1480 bytes from hanger.canonical.com (91.189.91.26): icmp_seq=2 ttl=55 time=62.1 ms
        1480 bytes from hanger.canonical.com (91.189.91.26): icmp_seq=3 ttl=55 time=61.8 ms
        1480 bytes from hanger.canonical.com (91.189.91.26): icmp_seq=4 ttl=55 time=59.5 ms
        ^C
        --- us.archive.ubuntu.com ping statistics ---
        4 packets transmitted, 4 received, 0% packet loss, time 3004ms
        rtt min/avg/max/mdev = 59.590/61.701/63.218/1.318 ms



      3. Perhaps its my sources.list? Well I thought that too... :



        ###### Ubuntu Main Repos
        deb http://us.archive.ubuntu.com/ubuntu/ xenial main restricted universe multiverse
        deb-src http://us.archive.ubuntu.com/ubuntu/ xenial main

        ###### Ubuntu Update Repos
        deb http://us.archive.ubuntu.com/ubuntu/ xenial-security main restricted universe multiverse
        deb http://us.archive.ubuntu.com/ubuntu/ xenial-updates main restricted universe multiverse
        deb http://us.archive.ubuntu.com/ubuntu/ xenial-proposed main restricted universe multiverse
        deb http://us.archive.ubuntu.com/ubuntu/ xenial-backports main restricted universe multiverse


      4. IPv6 has been disabled on this server as per a suggestion.


      5. I have tried rebooting the server multiple times.


      6. apt-get clean does not solve the problem.


      7. Tried switching to ca.archive.ubuntu.com, no luck.


      8. I have requested a different public IP address from a different subnet to assign to the server. No luck.


      9. Other Ubuntu servers in this data center update without a problem.



      So at this point the only solution I can come up with is to reinstall the operating system. This is a production web server with a small mysql database. Everything is backed up so it wouldn't be a problem to rebuild it. Just time consuming and quite disappointing.







      16.04 networking server apt updates






      share|improve this question















      share|improve this question













      share|improve this question




      share|improve this question








      edited Sep 14 '17 at 19:09







      Loop

















      asked Sep 14 '17 at 18:56









      LoopLoop

      62




      62






















          1 Answer
          1






          active

          oldest

          votes


















          0














          This may be old but i had a same issue and fixed it like this:



          $ sudo apt-get clean
          $ cd /var/lib/apt
          $ sudo mv lists lists.old
          $ sudo mkdir -p lists/partial
          $ sudo apt-get clean
          $ sudo apt-get update





          share|improve this answer
























            Your Answer








            StackExchange.ready(function() {
            var channelOptions = {
            tags: "".split(" "),
            id: "89"
            };
            initTagRenderer("".split(" "), "".split(" "), channelOptions);

            StackExchange.using("externalEditor", function() {
            // Have to fire editor after snippets, if snippets enabled
            if (StackExchange.settings.snippets.snippetsEnabled) {
            StackExchange.using("snippets", function() {
            createEditor();
            });
            }
            else {
            createEditor();
            }
            });

            function createEditor() {
            StackExchange.prepareEditor({
            heartbeatType: 'answer',
            autoActivateHeartbeat: false,
            convertImagesToLinks: true,
            noModals: true,
            showLowRepImageUploadWarning: true,
            reputationToPostImages: 10,
            bindNavPrevention: true,
            postfix: "",
            imageUploader: {
            brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
            contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
            allowUrls: true
            },
            onDemand: true,
            discardSelector: ".discard-answer"
            ,immediatelyShowMarkdownHelp:true
            });


            }
            });














            draft saved

            draft discarded


















            StackExchange.ready(
            function () {
            StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2faskubuntu.com%2fquestions%2f955881%2f16-04-apt-get-update-0-waiting-for-headers%23new-answer', 'question_page');
            }
            );

            Post as a guest















            Required, but never shown

























            1 Answer
            1






            active

            oldest

            votes








            1 Answer
            1






            active

            oldest

            votes









            active

            oldest

            votes






            active

            oldest

            votes









            0














            This may be old but i had a same issue and fixed it like this:



            $ sudo apt-get clean
            $ cd /var/lib/apt
            $ sudo mv lists lists.old
            $ sudo mkdir -p lists/partial
            $ sudo apt-get clean
            $ sudo apt-get update





            share|improve this answer




























              0














              This may be old but i had a same issue and fixed it like this:



              $ sudo apt-get clean
              $ cd /var/lib/apt
              $ sudo mv lists lists.old
              $ sudo mkdir -p lists/partial
              $ sudo apt-get clean
              $ sudo apt-get update





              share|improve this answer


























                0












                0








                0







                This may be old but i had a same issue and fixed it like this:



                $ sudo apt-get clean
                $ cd /var/lib/apt
                $ sudo mv lists lists.old
                $ sudo mkdir -p lists/partial
                $ sudo apt-get clean
                $ sudo apt-get update





                share|improve this answer













                This may be old but i had a same issue and fixed it like this:



                $ sudo apt-get clean
                $ cd /var/lib/apt
                $ sudo mv lists lists.old
                $ sudo mkdir -p lists/partial
                $ sudo apt-get clean
                $ sudo apt-get update






                share|improve this answer












                share|improve this answer



                share|improve this answer










                answered Feb 8 at 18:21









                ognjenognjen

                38416




                38416






























                    draft saved

                    draft discarded




















































                    Thanks for contributing an answer to Ask Ubuntu!


                    • Please be sure to answer the question. Provide details and share your research!

                    But avoid



                    • Asking for help, clarification, or responding to other answers.

                    • Making statements based on opinion; back them up with references or personal experience.


                    To learn more, see our tips on writing great answers.




                    draft saved


                    draft discarded














                    StackExchange.ready(
                    function () {
                    StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2faskubuntu.com%2fquestions%2f955881%2f16-04-apt-get-update-0-waiting-for-headers%23new-answer', 'question_page');
                    }
                    );

                    Post as a guest















                    Required, but never shown





















































                    Required, but never shown














                    Required, but never shown












                    Required, but never shown







                    Required, but never shown

































                    Required, but never shown














                    Required, but never shown












                    Required, but never shown







                    Required, but never shown







                    Popular posts from this blog

                    Human spaceflight

                    Can not write log (Is /dev/pts mounted?) - openpty in Ubuntu-on-Windows?

                    張江高科駅