Fixing Slow 'Apt-Get Update' (Wait For Headers Issue)
Fixing Slow 'Apt-Get Update' (Wait For Headers Issue)
BY JACOB HICKS — JULY 20, 2023 Jacob has been writing for DeviceTests
since 2021. He enjoys testing new
hardware and software, and sharing his
findings with the world.
Related Posts
Why Can't I
Uncompress a .bz2
File Using Tar?
JULY 20, 2023
Fixing Amazon
Workspaces Client
Crashes on Ubuntu
22.04 Due to
OpenSSL Error
JULY 23, 2023
In this article, we will delve into the issue of slow updates when using the
apt-get update command on Ubuntu systems. This problem can be quite
frustrating, especially when you are trying to keep your system up-to-date
with the latest software packages. We will explore various solutions to this
problem, from regenerating the list cache to checking DNS settings. Let’s
dive in.
Quick Answer
To fix the slow apt-get update issue on Ubuntu systems, you can try
regenerating the list cache, checking third-party repositories, adjusting
MTU size, verifying proxy settings, adjusting APT settings, checking DNS
settings, disabling problematic repositories, using netselect, switching to
the main server, trying a different internet source, or checking for VPN
interference.
Table of Contents
�� Understanding the Issue
�� Potential Solutions
Regenerate Lists Cache
Check Third-Party Repositories
Check MTU Size
Check Proxy Settings
Adjust APT Settings
Check DNS Settings
Disable Problematic Repositories
Use netselect
Switch to the Main Server
Try a Different Internet Source
Check for VPN Interference
�� Conclusion
Potential Solutions
Now, let’s look at some potential solutions to this problem.
The first solution involves regenerating the list cache. This can be done by
running the following commands in the terminal:
Here, sudo apt-get clean clears out the local repository of retrieved package
files. The mv command renames the ‘lists’ directory to ‘lists.old’, and mkdir
Incorrect Maximum Transmission Unit �MTU� size can cause slow updates.
You can check your MTU size by running ifconfig and look for the MTU
value. If it’s not set correctly, you can adjust it using the ifconfig command
followed by the network interface name, mtu , and the correct value.
Incorrect proxy settings can also cause slow updates. Inspect the
/etc/environment file for any proxy settings. You can do this by running cat
You can also try adjusting APT settings. Create a new file in /etc/apt
Incorrect DNS settings can cause slow updates. Verify that the DNS servers
are configured correctly in /etc/resolv.conf . You can do this by running cat
Use netselect
You can install and run netselect to generate a new sources.list file. Replace
the existing /etc/apt/sources.list with the generated one. This can help if
the issue is caused by a slow or unresponsive mirror.
Open Software and Updates, go to the “Download From” option, and select
“Main Server”. This can help if the relay servers are not responding quickly.
If possible, switch to a different internet source or ISP. Some ISPs may block
certain network ranges, causing slow updates.
Conclusion
Slow apt-get update speeds can be a nuisance, but with the right
troubleshooting steps, you can identify and fix the issue. Remember to try
these solutions one at a time and test the update speed after each step to
identify the specific cause of the issue. With a little patience and
perseverance, you can get your updates running smoothly again.
Related Posts
How To Identify the How To Uninstall IntelliJ How To Fix Ubuntu Not
Ubuntu Partition for Ultimate Edition on Starting After Updating
Uninstallation Ubuntu Nvidia Drivers from
JULY 22, 2023 JULY 19, 2023 X-Swat PPA
JULY 19, 2023
Leave a Comment
Your email address will not be published. Required fields are marked *