apt-get update is slow after 19.04How can I pause/resume an apt-get update process in a terminal?apt-get update constantly gives out errorapt-get update never finishes downloadingapt & aptitude segfault every timeSystem freezes when apt-get tries to unpack a particular packageFailed to fetch, no release file, connection failed errors when running `sudo apt-get update`
Trade a bishop in the opening
How are Aircraft Noses Designed?
Idiom for a situation or event that makes one poor or even poorer?
Does Darwin owe a debt to Hegel?
Which CentOS 7 package provides the "boot" manpage?
Why do military jets sometimes have elevators in a depressed position when parked?
Did I Traumatize My Puppy?
BV-217 Antler bottom bracket service or replacement
Can you use a virtual credit card to withdraw money from an ATM in the UK?
Why are second inversion triads considered less consonant than first inversion triads?
Easy way of generating a 50-150W load @12V
How will the crew exit Starship when it lands on Mars?
How to figure out key from key signature?
Does cover affect melee attacks?
90's/00's anime about 3 girls who travel between the real world and a fantasy world
If I did not sign promotion bonus document, my career would be over. Is this duress?
Where is the circle of fifths mentioned for the first time?
How do I copy an installed steam game on my PC to an external hard drive?
Car as a good investment
Advisor asked for my entire slide presentation so she could give the presentation at an international conference
Why is Trump releasing or not of his taxes such a big deal?
How does a ball bearing door hinge work?
Uniform Roe algebra of virtually abelian group is type I C*-algebra?
Are there 99 percentiles, or 100 percentiles? And are they groups of numbers, or dividers or pointers to individual numbers?
apt-get update is slow after 19.04
How can I pause/resume an apt-get update process in a terminal?apt-get update constantly gives out errorapt-get update never finishes downloadingapt & aptitude segfault every timeSystem freezes when apt-get tries to unpack a particular packageFailed to fetch, no release file, connection failed errors when running `sudo apt-get update`
.everyoneloves__top-leaderboard:empty,.everyoneloves__mid-leaderboard:empty,.everyoneloves__bot-mid-leaderboard:empty
margin-bottom:0;
apt-get update
(and apt update
) command on my computer got very slow after upgrading to Ubuntu 19.04. There seems nothing wrong with the network since the downloads complete almost immediately. But the step after that (which does not print anything) takes incredibly long time (10 minutes or more). My hard drive seems working during that time.
I have cleared apt-get cache by both removing /var/apt/cache
and using apt-get clear
command but the problem persisted.
When I press Ctrl+C to end the process, the following message is printed out:
After seeing that message, I tried to execute apt-get update
again and searched cnf-update-db
in running processes.
There isn't a performance issue on my computer other than this one.
If I let the process complete once, it becomes faster in subsequent tries. But after some time, it becomes slow again.
apt
|
show 5 more comments
apt-get update
(and apt update
) command on my computer got very slow after upgrading to Ubuntu 19.04. There seems nothing wrong with the network since the downloads complete almost immediately. But the step after that (which does not print anything) takes incredibly long time (10 minutes or more). My hard drive seems working during that time.
I have cleared apt-get cache by both removing /var/apt/cache
and using apt-get clear
command but the problem persisted.
When I press Ctrl+C to end the process, the following message is printed out:
After seeing that message, I tried to execute apt-get update
again and searched cnf-update-db
in running processes.
There isn't a performance issue on my computer other than this one.
If I let the process complete once, it becomes faster in subsequent tries. But after some time, it becomes slow again.
apt
1
Have you tried another server?
– GabrielaGarcia
May 13 at 17:01
1
Is there a particular line that is extremely slower than the rest?
– WinEunuuchs2Unix
May 13 at 17:32
@GabrielaGarcia No, but as I said, the files are downloaded immediately. If I executeapt update
, it even says "Fetched 470 kB in 2s (271 kB/s)". Would it still be helpful if I tried other servers?
– farukdgn
May 13 at 19:34
1
@WinEunuuchs2Unix No, they are all downloaded so quickly that I can't measure.
– farukdgn
May 13 at 19:36
1
Try runningtop
while an update is in progress, to see what processes are hogging the CPU.
– user535733
May 29 at 1:53
|
show 5 more comments
apt-get update
(and apt update
) command on my computer got very slow after upgrading to Ubuntu 19.04. There seems nothing wrong with the network since the downloads complete almost immediately. But the step after that (which does not print anything) takes incredibly long time (10 minutes or more). My hard drive seems working during that time.
I have cleared apt-get cache by both removing /var/apt/cache
and using apt-get clear
command but the problem persisted.
When I press Ctrl+C to end the process, the following message is printed out:
After seeing that message, I tried to execute apt-get update
again and searched cnf-update-db
in running processes.
There isn't a performance issue on my computer other than this one.
If I let the process complete once, it becomes faster in subsequent tries. But after some time, it becomes slow again.
apt
apt-get update
(and apt update
) command on my computer got very slow after upgrading to Ubuntu 19.04. There seems nothing wrong with the network since the downloads complete almost immediately. But the step after that (which does not print anything) takes incredibly long time (10 minutes or more). My hard drive seems working during that time.
I have cleared apt-get cache by both removing /var/apt/cache
and using apt-get clear
command but the problem persisted.
When I press Ctrl+C to end the process, the following message is printed out:
After seeing that message, I tried to execute apt-get update
again and searched cnf-update-db
in running processes.
There isn't a performance issue on my computer other than this one.
If I let the process complete once, it becomes faster in subsequent tries. But after some time, it becomes slow again.
apt
apt
edited May 13 at 16:58
farukdgn
asked May 13 at 16:49
farukdgnfarukdgn
2292 gold badges4 silver badges15 bronze badges
2292 gold badges4 silver badges15 bronze badges
1
Have you tried another server?
– GabrielaGarcia
May 13 at 17:01
1
Is there a particular line that is extremely slower than the rest?
– WinEunuuchs2Unix
May 13 at 17:32
@GabrielaGarcia No, but as I said, the files are downloaded immediately. If I executeapt update
, it even says "Fetched 470 kB in 2s (271 kB/s)". Would it still be helpful if I tried other servers?
– farukdgn
May 13 at 19:34
1
@WinEunuuchs2Unix No, they are all downloaded so quickly that I can't measure.
– farukdgn
May 13 at 19:36
1
Try runningtop
while an update is in progress, to see what processes are hogging the CPU.
– user535733
May 29 at 1:53
|
show 5 more comments
1
Have you tried another server?
– GabrielaGarcia
May 13 at 17:01
1
Is there a particular line that is extremely slower than the rest?
– WinEunuuchs2Unix
May 13 at 17:32
@GabrielaGarcia No, but as I said, the files are downloaded immediately. If I executeapt update
, it even says "Fetched 470 kB in 2s (271 kB/s)". Would it still be helpful if I tried other servers?
– farukdgn
May 13 at 19:34
1
@WinEunuuchs2Unix No, they are all downloaded so quickly that I can't measure.
– farukdgn
May 13 at 19:36
1
Try runningtop
while an update is in progress, to see what processes are hogging the CPU.
– user535733
May 29 at 1:53
1
1
Have you tried another server?
– GabrielaGarcia
May 13 at 17:01
Have you tried another server?
– GabrielaGarcia
May 13 at 17:01
1
1
Is there a particular line that is extremely slower than the rest?
– WinEunuuchs2Unix
May 13 at 17:32
Is there a particular line that is extremely slower than the rest?
– WinEunuuchs2Unix
May 13 at 17:32
@GabrielaGarcia No, but as I said, the files are downloaded immediately. If I execute
apt update
, it even says "Fetched 470 kB in 2s (271 kB/s)". Would it still be helpful if I tried other servers?– farukdgn
May 13 at 19:34
@GabrielaGarcia No, but as I said, the files are downloaded immediately. If I execute
apt update
, it even says "Fetched 470 kB in 2s (271 kB/s)". Would it still be helpful if I tried other servers?– farukdgn
May 13 at 19:34
1
1
@WinEunuuchs2Unix No, they are all downloaded so quickly that I can't measure.
– farukdgn
May 13 at 19:36
@WinEunuuchs2Unix No, they are all downloaded so quickly that I can't measure.
– farukdgn
May 13 at 19:36
1
1
Try running
top
while an update is in progress, to see what processes are hogging the CPU.– user535733
May 29 at 1:53
Try running
top
while an update is in progress, to see what processes are hogging the CPU.– user535733
May 29 at 1:53
|
show 5 more comments
4 Answers
4
active
oldest
votes
It seems that your command-not-found
package is corrupted somehow. You could purge it, remove its configuration, reinstall it and then reconfigure it as well as finally update it with:
sudo aptitude purge command-not-found
sudo aptitude purge ~c command-not-found
sudo aptitude install command-not-found
sudo dpkg-reconfigure command-not-found
sudo update-command-not-found
These are the files the command-not-found package contains: https://packages.ubuntu.com/en/disco/all/command-not-found/filelist
Good luck.
while some config file of thecommand-not-found
package is trying to read the content of/var/lib/apt/lists/
it seems to be also possible that this directory is containing some error...
– starkus
May 30 at 10:13
...so maybe it's not line 7 in your sources.list which is faulty, it could be the not shown line 8 which causes the trouble. You could regenerate your sources.list using a generator. Also you could move /var/lib/apt/lists/ to /var/lib/apt/lists.backup/ and run an apt update.
– starkus
May 31 at 4:59
add a comment
|
try running the following:
sudo apt update && sudo apt upgrade
This might update any outdated versions that may be breaking apt update.
Also, try reinstalling python3:
sudo apt purge python3 && sudo apt autoremove && sudo apt install python3
Hopefully this works.
1
apt upgrade
doesn't solve it. I can't try your second suggestion because it tries to remove many of system packages (kde-runtime
,kubuntu-desktop
etc)
– farukdgn
May 29 at 19:14
1
Do not ever remove the preinstalledpython
orpython3
! (unless you really know what you're doing.) Many important packages depend on it and will stop working. Fixing this can be troublesome.
– Byte Commander♦
May 31 at 14:58
add a comment
|
You should remove any old repositories from your computer.
Then run
sudo apt update && sudo apt autoremove
and then
sudo apt update && sudo apt upgrade
add a comment
|
It might work give a try.
sudo rm /var/lib/apt/lists/lock
sudo rm /var/cache/apt/archives/lock
sudo rm /var/lib/dpkg/lock
I not at tried ubuntu 19.04 versions so i'm not sure but the above commands may help you.
add a comment
|
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/4.0/"u003ecc by-sa 4.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
);
);
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%2faskubuntu.com%2fquestions%2f1142923%2fapt-get-update-is-slow-after-19-04%23new-answer', 'question_page');
);
Post as a guest
Required, but never shown
4 Answers
4
active
oldest
votes
4 Answers
4
active
oldest
votes
active
oldest
votes
active
oldest
votes
It seems that your command-not-found
package is corrupted somehow. You could purge it, remove its configuration, reinstall it and then reconfigure it as well as finally update it with:
sudo aptitude purge command-not-found
sudo aptitude purge ~c command-not-found
sudo aptitude install command-not-found
sudo dpkg-reconfigure command-not-found
sudo update-command-not-found
These are the files the command-not-found package contains: https://packages.ubuntu.com/en/disco/all/command-not-found/filelist
Good luck.
while some config file of thecommand-not-found
package is trying to read the content of/var/lib/apt/lists/
it seems to be also possible that this directory is containing some error...
– starkus
May 30 at 10:13
...so maybe it's not line 7 in your sources.list which is faulty, it could be the not shown line 8 which causes the trouble. You could regenerate your sources.list using a generator. Also you could move /var/lib/apt/lists/ to /var/lib/apt/lists.backup/ and run an apt update.
– starkus
May 31 at 4:59
add a comment
|
It seems that your command-not-found
package is corrupted somehow. You could purge it, remove its configuration, reinstall it and then reconfigure it as well as finally update it with:
sudo aptitude purge command-not-found
sudo aptitude purge ~c command-not-found
sudo aptitude install command-not-found
sudo dpkg-reconfigure command-not-found
sudo update-command-not-found
These are the files the command-not-found package contains: https://packages.ubuntu.com/en/disco/all/command-not-found/filelist
Good luck.
while some config file of thecommand-not-found
package is trying to read the content of/var/lib/apt/lists/
it seems to be also possible that this directory is containing some error...
– starkus
May 30 at 10:13
...so maybe it's not line 7 in your sources.list which is faulty, it could be the not shown line 8 which causes the trouble. You could regenerate your sources.list using a generator. Also you could move /var/lib/apt/lists/ to /var/lib/apt/lists.backup/ and run an apt update.
– starkus
May 31 at 4:59
add a comment
|
It seems that your command-not-found
package is corrupted somehow. You could purge it, remove its configuration, reinstall it and then reconfigure it as well as finally update it with:
sudo aptitude purge command-not-found
sudo aptitude purge ~c command-not-found
sudo aptitude install command-not-found
sudo dpkg-reconfigure command-not-found
sudo update-command-not-found
These are the files the command-not-found package contains: https://packages.ubuntu.com/en/disco/all/command-not-found/filelist
Good luck.
It seems that your command-not-found
package is corrupted somehow. You could purge it, remove its configuration, reinstall it and then reconfigure it as well as finally update it with:
sudo aptitude purge command-not-found
sudo aptitude purge ~c command-not-found
sudo aptitude install command-not-found
sudo dpkg-reconfigure command-not-found
sudo update-command-not-found
These are the files the command-not-found package contains: https://packages.ubuntu.com/en/disco/all/command-not-found/filelist
Good luck.
edited May 31 at 14:59
Byte Commander♦
72.7k29 gold badges196 silver badges331 bronze badges
72.7k29 gold badges196 silver badges331 bronze badges
answered May 30 at 10:07
starkusstarkus
4986 silver badges15 bronze badges
4986 silver badges15 bronze badges
while some config file of thecommand-not-found
package is trying to read the content of/var/lib/apt/lists/
it seems to be also possible that this directory is containing some error...
– starkus
May 30 at 10:13
...so maybe it's not line 7 in your sources.list which is faulty, it could be the not shown line 8 which causes the trouble. You could regenerate your sources.list using a generator. Also you could move /var/lib/apt/lists/ to /var/lib/apt/lists.backup/ and run an apt update.
– starkus
May 31 at 4:59
add a comment
|
while some config file of thecommand-not-found
package is trying to read the content of/var/lib/apt/lists/
it seems to be also possible that this directory is containing some error...
– starkus
May 30 at 10:13
...so maybe it's not line 7 in your sources.list which is faulty, it could be the not shown line 8 which causes the trouble. You could regenerate your sources.list using a generator. Also you could move /var/lib/apt/lists/ to /var/lib/apt/lists.backup/ and run an apt update.
– starkus
May 31 at 4:59
while some config file of the
command-not-found
package is trying to read the content of /var/lib/apt/lists/
it seems to be also possible that this directory is containing some error...– starkus
May 30 at 10:13
while some config file of the
command-not-found
package is trying to read the content of /var/lib/apt/lists/
it seems to be also possible that this directory is containing some error...– starkus
May 30 at 10:13
...so maybe it's not line 7 in your sources.list which is faulty, it could be the not shown line 8 which causes the trouble. You could regenerate your sources.list using a generator. Also you could move /var/lib/apt/lists/ to /var/lib/apt/lists.backup/ and run an apt update.
– starkus
May 31 at 4:59
...so maybe it's not line 7 in your sources.list which is faulty, it could be the not shown line 8 which causes the trouble. You could regenerate your sources.list using a generator. Also you could move /var/lib/apt/lists/ to /var/lib/apt/lists.backup/ and run an apt update.
– starkus
May 31 at 4:59
add a comment
|
try running the following:
sudo apt update && sudo apt upgrade
This might update any outdated versions that may be breaking apt update.
Also, try reinstalling python3:
sudo apt purge python3 && sudo apt autoremove && sudo apt install python3
Hopefully this works.
1
apt upgrade
doesn't solve it. I can't try your second suggestion because it tries to remove many of system packages (kde-runtime
,kubuntu-desktop
etc)
– farukdgn
May 29 at 19:14
1
Do not ever remove the preinstalledpython
orpython3
! (unless you really know what you're doing.) Many important packages depend on it and will stop working. Fixing this can be troublesome.
– Byte Commander♦
May 31 at 14:58
add a comment
|
try running the following:
sudo apt update && sudo apt upgrade
This might update any outdated versions that may be breaking apt update.
Also, try reinstalling python3:
sudo apt purge python3 && sudo apt autoremove && sudo apt install python3
Hopefully this works.
1
apt upgrade
doesn't solve it. I can't try your second suggestion because it tries to remove many of system packages (kde-runtime
,kubuntu-desktop
etc)
– farukdgn
May 29 at 19:14
1
Do not ever remove the preinstalledpython
orpython3
! (unless you really know what you're doing.) Many important packages depend on it and will stop working. Fixing this can be troublesome.
– Byte Commander♦
May 31 at 14:58
add a comment
|
try running the following:
sudo apt update && sudo apt upgrade
This might update any outdated versions that may be breaking apt update.
Also, try reinstalling python3:
sudo apt purge python3 && sudo apt autoremove && sudo apt install python3
Hopefully this works.
try running the following:
sudo apt update && sudo apt upgrade
This might update any outdated versions that may be breaking apt update.
Also, try reinstalling python3:
sudo apt purge python3 && sudo apt autoremove && sudo apt install python3
Hopefully this works.
answered May 27 at 3:06
JosephWorksJosephWorks
1303 bronze badges
1303 bronze badges
1
apt upgrade
doesn't solve it. I can't try your second suggestion because it tries to remove many of system packages (kde-runtime
,kubuntu-desktop
etc)
– farukdgn
May 29 at 19:14
1
Do not ever remove the preinstalledpython
orpython3
! (unless you really know what you're doing.) Many important packages depend on it and will stop working. Fixing this can be troublesome.
– Byte Commander♦
May 31 at 14:58
add a comment
|
1
apt upgrade
doesn't solve it. I can't try your second suggestion because it tries to remove many of system packages (kde-runtime
,kubuntu-desktop
etc)
– farukdgn
May 29 at 19:14
1
Do not ever remove the preinstalledpython
orpython3
! (unless you really know what you're doing.) Many important packages depend on it and will stop working. Fixing this can be troublesome.
– Byte Commander♦
May 31 at 14:58
1
1
apt upgrade
doesn't solve it. I can't try your second suggestion because it tries to remove many of system packages (kde-runtime
, kubuntu-desktop
etc)– farukdgn
May 29 at 19:14
apt upgrade
doesn't solve it. I can't try your second suggestion because it tries to remove many of system packages (kde-runtime
, kubuntu-desktop
etc)– farukdgn
May 29 at 19:14
1
1
Do not ever remove the preinstalled
python
or python3
! (unless you really know what you're doing.) Many important packages depend on it and will stop working. Fixing this can be troublesome.– Byte Commander♦
May 31 at 14:58
Do not ever remove the preinstalled
python
or python3
! (unless you really know what you're doing.) Many important packages depend on it and will stop working. Fixing this can be troublesome.– Byte Commander♦
May 31 at 14:58
add a comment
|
You should remove any old repositories from your computer.
Then run
sudo apt update && sudo apt autoremove
and then
sudo apt update && sudo apt upgrade
add a comment
|
You should remove any old repositories from your computer.
Then run
sudo apt update && sudo apt autoremove
and then
sudo apt update && sudo apt upgrade
add a comment
|
You should remove any old repositories from your computer.
Then run
sudo apt update && sudo apt autoremove
and then
sudo apt update && sudo apt upgrade
You should remove any old repositories from your computer.
Then run
sudo apt update && sudo apt autoremove
and then
sudo apt update && sudo apt upgrade
answered May 29 at 0:52
Budget TechBudget Tech
1541 gold badge2 silver badges13 bronze badges
1541 gold badge2 silver badges13 bronze badges
add a comment
|
add a comment
|
It might work give a try.
sudo rm /var/lib/apt/lists/lock
sudo rm /var/cache/apt/archives/lock
sudo rm /var/lib/dpkg/lock
I not at tried ubuntu 19.04 versions so i'm not sure but the above commands may help you.
add a comment
|
It might work give a try.
sudo rm /var/lib/apt/lists/lock
sudo rm /var/cache/apt/archives/lock
sudo rm /var/lib/dpkg/lock
I not at tried ubuntu 19.04 versions so i'm not sure but the above commands may help you.
add a comment
|
It might work give a try.
sudo rm /var/lib/apt/lists/lock
sudo rm /var/cache/apt/archives/lock
sudo rm /var/lib/dpkg/lock
I not at tried ubuntu 19.04 versions so i'm not sure but the above commands may help you.
It might work give a try.
sudo rm /var/lib/apt/lists/lock
sudo rm /var/cache/apt/archives/lock
sudo rm /var/lib/dpkg/lock
I not at tried ubuntu 19.04 versions so i'm not sure but the above commands may help you.
answered May 30 at 4:30
kaushikkaushik
2811 bronze badges
2811 bronze badges
add a comment
|
add a comment
|
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.
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%2faskubuntu.com%2fquestions%2f1142923%2fapt-get-update-is-slow-after-19-04%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
1
Have you tried another server?
– GabrielaGarcia
May 13 at 17:01
1
Is there a particular line that is extremely slower than the rest?
– WinEunuuchs2Unix
May 13 at 17:32
@GabrielaGarcia No, but as I said, the files are downloaded immediately. If I execute
apt update
, it even says "Fetched 470 kB in 2s (271 kB/s)". Would it still be helpful if I tried other servers?– farukdgn
May 13 at 19:34
1
@WinEunuuchs2Unix No, they are all downloaded so quickly that I can't measure.
– farukdgn
May 13 at 19:36
1
Try running
top
while an update is in progress, to see what processes are hogging the CPU.– user535733
May 29 at 1:53