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.