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;
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
New contributor
add a comment |
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
New contributor
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 yourapt
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
add a comment |
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
New contributor
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
linux ubuntu apt
New contributor
New contributor
edited yesterday
placid chat
New contributor
asked 2 days ago
placid chatplacid chat
12
12
New contributor
New contributor
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 yourapt
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
add a comment |
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 yourapt
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
add a comment |
1 Answer
1
active
oldest
votes
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.
New contributor
add a comment |
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.
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
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
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.
New contributor
add a comment |
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.
New contributor
add a comment |
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.
New contributor
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.
New contributor
edited 2 days ago
Kusalananda♦
140k17261435
140k17261435
New contributor
answered 2 days ago
placid chatplacid chat
12
12
New contributor
New contributor
add a comment |
add a comment |
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.
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.
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
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
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
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
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