apt suddenly stops working. http is at 100% cputop output: cpu usage > 100%nscd uses 100% cpuHow can I forcibly remove a package from Ubuntu by hand?sslserver using 100% cpuDefault lxc networking suddenly stops to workWhy does apt-get NOT use 100% (cpu OR disk OR net)?WiFi suddenly stopped workingCron stops working after a specific timeApplication networking stops working after some timeProcess accounts-daemon taking 100% of CPU

Is it possible to do 50 km distance without any previous training?

Why did the Germans forbid the possession of pet pigeons in Rostov-on-Don in 1941?

What is the white spray-pattern residue inside these Falcon Heavy nozzles?

Is Social Media Science Fiction?

What is the command to reset a PC without deleting any files

Calculus Optimization - Point on graph closest to given point

Do airline pilots ever risk not hearing communication directed to them specifically, from traffic controllers?

How old can references or sources in a thesis be?

Patience, young "Padovan"

DOS, create pipe for stdin/stdout of command.com(or 4dos.com) in C or Batch?

Infinite past with a beginning?

How does one intimidate enemies without having the capacity for violence?

What does "enim et" mean?

Are tax years 2016 & 2017 back taxes deductible for tax year 2018?

Why is an old chain unsafe?

Is it possible to make sharp wind that can cut stuff from afar?

Is there a familial term for apples and pears?

Why do we use polarized capacitor?

How is it possible for user's password to be changed after storage was encrypted? (on OS X, Android)

Email Account under attack (really) - anything I can do?

I’m planning on buying a laser printer but concerned about the life cycle of toner in the machine

What would happen to a modern skyscraper if it rains micro blackholes?

When blogging recipes, how can I support both readers who want the narrative/journey and ones who want the printer-friendly recipe?

A Journey Through Space and Time



apt suddenly stops working. http is at 100% cpu


top output: cpu usage > 100%nscd uses 100% cpuHow can I forcibly remove a package from Ubuntu by hand?sslserver using 100% cpuDefault lxc networking suddenly stops to workWhy does apt-get NOT use 100% (cpu OR disk OR net)?WiFi suddenly stopped workingCron stops working after a specific timeApplication networking stops working after some timeProcess accounts-daemon taking 100% of CPU






.everyoneloves__top-leaderboard:empty,.everyoneloves__mid-leaderboard:empty,.everyoneloves__bot-mid-leaderboard:empty margin-bottom:0;








-1















Tried to apt update one day. The apt update outputs:



0% [Working]


apt runs its HTTP methods /usr/lib/apt/methods/http, but this never completes. Doing a tcpdump on the network shows HTTP never sending a request on the network at all and seems to stall. strace into the process as it is starting up with:



while true; do ps -ef | grep http | grep apt | awk 'print$2' | while read a ; do strace -p "$a" ; done ; done


shows a large amount of reads. Some of those reads have contents like a p5.js code fragment and here is a sysdig output:



http (31675) > read fd=4(<f>/swapfile) size=4096 
http (31675) < read res=4096 data=is[prop] = value;nn if (this._isGlobal) {n window[prop] =


After which, /usr/lib/apt/methods/http goes into a constantly context switching mode and starts taking up 100% of CPU. The apt version is apt 1.7.2. But updated a few months back.



Why is it exhibiting these behaviours?










share|improve this question









New contributor




placid chat is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.




















  • apt uses a http client aptly named http. it is at /usr/lib/apt/methods/http

    – placid chat
    2 days ago






  • 1





    And what is your question here? Do you want to know the reason apt is hanging it's connection? Or why cpu is at 100%?

    – nwildner
    2 days ago











  • Can you tell us about anything non-standard in your apt setup, such as a proxy? Does the problem persist if you switch to a different mirror?

    – JigglyNaga
    2 days ago











  • I'll run the old binary to try figure out exactly why it does that when i have the time, and yes i do want to know why it isn't connecting. There are no packets on the network, so the http binary isn't doing a socket connection. It reads up everything in the swapfile and hangs after that, which isn't normal.

    – placid chat
    2 days ago











  • What is the significance of the word “Mirror” in the title? The question in generally unclear, please proof-read and edit.

    – ctrl-alt-delor
    yesterday


















-1















Tried to apt update one day. The apt update outputs:



0% [Working]


apt runs its HTTP methods /usr/lib/apt/methods/http, but this never completes. Doing a tcpdump on the network shows HTTP never sending a request on the network at all and seems to stall. strace into the process as it is starting up with:



while true; do ps -ef | grep http | grep apt | awk 'print$2' | while read a ; do strace -p "$a" ; done ; done


shows a large amount of reads. Some of those reads have contents like a p5.js code fragment and here is a sysdig output:



http (31675) > read fd=4(<f>/swapfile) size=4096 
http (31675) < read res=4096 data=is[prop] = value;nn if (this._isGlobal) {n window[prop] =


After which, /usr/lib/apt/methods/http goes into a constantly context switching mode and starts taking up 100% of CPU. The apt version is apt 1.7.2. But updated a few months back.



Why is it exhibiting these behaviours?










share|improve this question









New contributor




placid chat is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.




















  • apt uses a http client aptly named http. it is at /usr/lib/apt/methods/http

    – placid chat
    2 days ago






  • 1





    And what is your question here? Do you want to know the reason apt is hanging it's connection? Or why cpu is at 100%?

    – nwildner
    2 days ago











  • Can you tell us about anything non-standard in your apt setup, such as a proxy? Does the problem persist if you switch to a different mirror?

    – JigglyNaga
    2 days ago











  • I'll run the old binary to try figure out exactly why it does that when i have the time, and yes i do want to know why it isn't connecting. There are no packets on the network, so the http binary isn't doing a socket connection. It reads up everything in the swapfile and hangs after that, which isn't normal.

    – placid chat
    2 days ago











  • What is the significance of the word “Mirror” in the title? The question in generally unclear, please proof-read and edit.

    – ctrl-alt-delor
    yesterday














-1












-1








-1








Tried to apt update one day. The apt update outputs:



0% [Working]


apt runs its HTTP methods /usr/lib/apt/methods/http, but this never completes. Doing a tcpdump on the network shows HTTP never sending a request on the network at all and seems to stall. strace into the process as it is starting up with:



while true; do ps -ef | grep http | grep apt | awk 'print$2' | while read a ; do strace -p "$a" ; done ; done


shows a large amount of reads. Some of those reads have contents like a p5.js code fragment and here is a sysdig output:



http (31675) > read fd=4(<f>/swapfile) size=4096 
http (31675) < read res=4096 data=is[prop] = value;nn if (this._isGlobal) {n window[prop] =


After which, /usr/lib/apt/methods/http goes into a constantly context switching mode and starts taking up 100% of CPU. The apt version is apt 1.7.2. But updated a few months back.



Why is it exhibiting these behaviours?










share|improve this question









New contributor




placid chat is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.












Tried to apt update one day. The apt update outputs:



0% [Working]


apt runs its HTTP methods /usr/lib/apt/methods/http, but this never completes. Doing a tcpdump on the network shows HTTP never sending a request on the network at all and seems to stall. strace into the process as it is starting up with:



while true; do ps -ef | grep http | grep apt | awk 'print$2' | while read a ; do strace -p "$a" ; done ; done


shows a large amount of reads. Some of those reads have contents like a p5.js code fragment and here is a sysdig output:



http (31675) > read fd=4(<f>/swapfile) size=4096 
http (31675) < read res=4096 data=is[prop] = value;nn if (this._isGlobal) {n window[prop] =


After which, /usr/lib/apt/methods/http goes into a constantly context switching mode and starts taking up 100% of CPU. The apt version is apt 1.7.2. But updated a few months back.



Why is it exhibiting these behaviours?







linux ubuntu apt






share|improve this question









New contributor




placid chat is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.











share|improve this question









New contributor




placid chat is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.









share|improve this question




share|improve this question








edited yesterday







placid chat













New contributor




placid chat is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.









asked 2 days ago









placid chatplacid chat

12




12




New contributor




placid chat is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.





New contributor





placid chat is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.






placid chat is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.












  • apt uses a http client aptly named http. it is at /usr/lib/apt/methods/http

    – placid chat
    2 days ago






  • 1





    And what is your question here? Do you want to know the reason apt is hanging it's connection? Or why cpu is at 100%?

    – nwildner
    2 days ago











  • Can you tell us about anything non-standard in your apt setup, such as a proxy? Does the problem persist if you switch to a different mirror?

    – JigglyNaga
    2 days ago











  • I'll run the old binary to try figure out exactly why it does that when i have the time, and yes i do want to know why it isn't connecting. There are no packets on the network, so the http binary isn't doing a socket connection. It reads up everything in the swapfile and hangs after that, which isn't normal.

    – placid chat
    2 days ago











  • What is the significance of the word “Mirror” in the title? The question in generally unclear, please proof-read and edit.

    – ctrl-alt-delor
    yesterday


















  • apt uses a http client aptly named http. it is at /usr/lib/apt/methods/http

    – placid chat
    2 days ago






  • 1





    And what is your question here? Do you want to know the reason apt is hanging it's connection? Or why cpu is at 100%?

    – nwildner
    2 days ago











  • Can you tell us about anything non-standard in your apt setup, such as a proxy? Does the problem persist if you switch to a different mirror?

    – JigglyNaga
    2 days ago











  • I'll run the old binary to try figure out exactly why it does that when i have the time, and yes i do want to know why it isn't connecting. There are no packets on the network, so the http binary isn't doing a socket connection. It reads up everything in the swapfile and hangs after that, which isn't normal.

    – placid chat
    2 days ago











  • What is the significance of the word “Mirror” in the title? The question in generally unclear, please proof-read and edit.

    – ctrl-alt-delor
    yesterday

















apt uses a http client aptly named http. it is at /usr/lib/apt/methods/http

– placid chat
2 days ago





apt uses a http client aptly named http. it is at /usr/lib/apt/methods/http

– placid chat
2 days ago




1




1





And what is your question here? Do you want to know the reason apt is hanging it's connection? Or why cpu is at 100%?

– nwildner
2 days ago





And what is your question here? Do you want to know the reason apt is hanging it's connection? Or why cpu is at 100%?

– nwildner
2 days ago













Can you tell us about anything non-standard in your apt setup, such as a proxy? Does the problem persist if you switch to a different mirror?

– JigglyNaga
2 days ago





Can you tell us about anything non-standard in your apt setup, such as a proxy? Does the problem persist if you switch to a different mirror?

– JigglyNaga
2 days ago













I'll run the old binary to try figure out exactly why it does that when i have the time, and yes i do want to know why it isn't connecting. There are no packets on the network, so the http binary isn't doing a socket connection. It reads up everything in the swapfile and hangs after that, which isn't normal.

– placid chat
2 days ago





I'll run the old binary to try figure out exactly why it does that when i have the time, and yes i do want to know why it isn't connecting. There are no packets on the network, so the http binary isn't doing a socket connection. It reads up everything in the swapfile and hangs after that, which isn't normal.

– placid chat
2 days ago













What is the significance of the word “Mirror” in the title? The question in generally unclear, please proof-read and edit.

– ctrl-alt-delor
yesterday






What is the significance of the word “Mirror” in the title? The question in generally unclear, please proof-read and edit.

– ctrl-alt-delor
yesterday











1 Answer
1






active

oldest

votes


















0














Well, this won't answer the question of why and how, but here's how you can rectify this.



The original apt cannot be used, so there needs to be a way to download a deb file that rectifies the symptom. In this case, the way to do this is to have another system apt download the deb by doing:



apt-get install --download-only <file>


After that dpkg -i <file> to reinstall the package or upgrade that package. The only other question is whether apt verifies the package contents or not.






share|improve this answer










New contributor




placid chat is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.




















    Your Answer








    StackExchange.ready(function()
    var channelOptions =
    tags: "".split(" "),
    id: "106"
    ;
    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: false,
    noModals: true,
    showLowRepImageUploadWarning: true,
    reputationToPostImages: null,
    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
    );



    );






    placid chat is a new contributor. Be nice, and check out our Code of Conduct.









    draft saved

    draft discarded


















    StackExchange.ready(
    function ()
    StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2funix.stackexchange.com%2fquestions%2f510633%2fapt-suddenly-stops-working-http-is-at-100-cpu%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














    Well, this won't answer the question of why and how, but here's how you can rectify this.



    The original apt cannot be used, so there needs to be a way to download a deb file that rectifies the symptom. In this case, the way to do this is to have another system apt download the deb by doing:



    apt-get install --download-only <file>


    After that dpkg -i <file> to reinstall the package or upgrade that package. The only other question is whether apt verifies the package contents or not.






    share|improve this answer










    New contributor




    placid chat is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
    Check out our Code of Conduct.
























      0














      Well, this won't answer the question of why and how, but here's how you can rectify this.



      The original apt cannot be used, so there needs to be a way to download a deb file that rectifies the symptom. In this case, the way to do this is to have another system apt download the deb by doing:



      apt-get install --download-only <file>


      After that dpkg -i <file> to reinstall the package or upgrade that package. The only other question is whether apt verifies the package contents or not.






      share|improve this answer










      New contributor




      placid chat is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
      Check out our Code of Conduct.






















        0












        0








        0







        Well, this won't answer the question of why and how, but here's how you can rectify this.



        The original apt cannot be used, so there needs to be a way to download a deb file that rectifies the symptom. In this case, the way to do this is to have another system apt download the deb by doing:



        apt-get install --download-only <file>


        After that dpkg -i <file> to reinstall the package or upgrade that package. The only other question is whether apt verifies the package contents or not.






        share|improve this answer










        New contributor




        placid chat is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
        Check out our Code of Conduct.










        Well, this won't answer the question of why and how, but here's how you can rectify this.



        The original apt cannot be used, so there needs to be a way to download a deb file that rectifies the symptom. In this case, the way to do this is to have another system apt download the deb by doing:



        apt-get install --download-only <file>


        After that dpkg -i <file> to reinstall the package or upgrade that package. The only other question is whether apt verifies the package contents or not.







        share|improve this answer










        New contributor




        placid chat is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
        Check out our Code of Conduct.









        share|improve this answer



        share|improve this answer








        edited 2 days ago









        Kusalananda

        140k17261435




        140k17261435






        New contributor




        placid chat is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
        Check out our Code of Conduct.









        answered 2 days ago









        placid chatplacid chat

        12




        12




        New contributor




        placid chat is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
        Check out our Code of Conduct.





        New contributor





        placid chat is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
        Check out our Code of Conduct.






        placid chat is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
        Check out our Code of Conduct.




















            placid chat is a new contributor. Be nice, and check out our Code of Conduct.









            draft saved

            draft discarded


















            placid chat is a new contributor. Be nice, and check out our Code of Conduct.












            placid chat is a new contributor. Be nice, and check out our Code of Conduct.











            placid chat is a new contributor. Be nice, and check out our Code of Conduct.














            Thanks for contributing an answer to Unix & Linux Stack Exchange!


            • 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%2funix.stackexchange.com%2fquestions%2f510633%2fapt-suddenly-stops-working-http-is-at-100-cpu%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

            getting Checkpoint VPN SSL Network Extender working in the command lineHow to connect to CheckPoint VPN on Ubuntu 18.04LTS?Will the Linux ( red-hat ) Open VPNC Client connect to checkpoint or nortel VPN gateways?VPN client for linux machine + support checkpoint gatewayVPN SSL Network Extender in FirefoxLinux Checkpoint SNX tool configuration issuesCheck Point - Connect under Linux - snx + OTPSNX VPN Ububuntu 18.XXUsing Checkpoint VPN SSL Network Extender CLI with certificateVPN with network manager (nm-applet) is not workingWill the Linux ( red-hat ) Open VPNC Client connect to checkpoint or nortel VPN gateways?VPN client for linux machine + support checkpoint gatewayImport VPN config files to NetworkManager from command lineTrouble connecting to VPN using network-manager, while command line worksStart a VPN connection with PPTP protocol on command linestarting a docker service daemon breaks the vpn networkCan't connect to vpn with Network-managerVPN SSL Network Extender in FirefoxUsing Checkpoint VPN SSL Network Extender CLI with certificate

            Cannot Extend partition with GParted The 2019 Stack Overflow Developer Survey Results Are In Announcing the arrival of Valued Associate #679: Cesar Manara Planned maintenance scheduled April 17/18, 2019 at 00:00UTC (8:00pm US/Eastern) 2019 Community Moderator Election ResultsCan't increase partition size with GParted?GParted doesn't recognize the unallocated space after my current partitionWhat is the best way to add unallocated space located before to Ubuntu 12.04 partition with GParted live?I can't figure out how to extend my Arch home partition into free spaceGparted Linux Mint 18.1 issueTrying to extend but swap partition is showing as Unknown in Gparted, shows proper from fdiskRearrange partitions in gparted to extend a partitionUnable to extend partition even though unallocated space is next to it using GPartedAllocate free space to root partitiongparted: how to merge unallocated space with a partition

            Marilyn Monroe Ny fiainany manokana | Jereo koa | Meny fitetezanafanitarana azy.