Ubuntu 16.04终端仅网速过慢求助(浏览器网速正常)
Hey there, let's tackle this frustrating slow apt speed issue on your Ubuntu 16.04 system—getting only ~20 kB/s when you have a 10 Mbps connection is definitely not ideal, especially with your multi-boot setup on the ASUS FX-553VD-DM483. Even though you've shared screenshots showing this speed mismatch, here are some tried-and-true fixes I've helped other users resolve similar problems with:
1. Switch to a Geographically Close APT Mirror
The default Ubuntu mirrors might be located far from your region, leading to high latency and slow download speeds. Here's how to swap to a local mirror:
- Open the APT sources list with elevated permissions:
sudo nano /etc/apt/sources.list - Replace all occurrences of
archive.ubuntu.comandsecurity.ubuntu.comwith a mirror near you. For example:- If you're in North America:
us.archive.ubuntu.com - If you're in Asia:
mirrors.aliyun.comormirrors.tuna.tsinghua.edu.cn
- If you're in North America:
- Save the file (press
Ctrl+O, hit Enter) and exit nano (Ctrl+X). - Run
sudo apt-get updateagain to test the improved speed.
2. Verify and Disable Unintended Proxies
Sometimes hidden proxy settings can throttle APT traffic without you noticing:
- Check if any proxy variables are set in your environment:
env | grep -i proxy - If you see proxy entries (like
http_proxyorhttps_proxy), unset them with:unset http_proxy unset https_proxy - Additionally, check the APT-specific proxy config file to ensure no settings are there:
If there are proxy lines present, comment them out by adding acat /etc/apt/apt.conf.d/01proxy#at the start of each line.
3. Optimize DNS Resolution
Slow DNS lookups can make APT appear slow even if your raw internet speed is fine:
- Edit the DNS configuration file:
sudo nano /etc/resolv.conf - Replace existing nameservers with fast public options like:
Or Cloudflare's DNS:nameserver 8.8.8.8 # Google DNS nameserver 8.8.4.4nameserver 1.1.1.1 nameserver 1.0.0.1 - Save and exit, then restart the DNS service (Ubuntu 16.04 uses dnsmasq):
sudo systemctl restart dnsmasq
4. Disable Windows Fast Startup (for Multi-Boot Setups)
Windows 10's fast startup feature can lock network hardware, causing Ubuntu to have limited network performance:
- Boot into Windows 10, navigate to Control Panel > Power Options > Choose what the power buttons do.
- Click Change settings that are currently unavailable, then uncheck the box for Turn on fast startup (recommended).
- Shut down Windows completely (don't hibernate or sleep) and boot back into Ubuntu to test the speed.
5. Clear and Refresh the APT Cache
A corrupted or outdated cache can sometimes cause slowdowns:
- Clear the existing APT cache:
sudo apt-get clean - Then update the cache with the new mirror settings (if you changed them):
sudo apt-get update
In most cases, switching to a local mirror fixes this issue immediately—it's the most common culprit for slow APT speeds. If you've already tried some of these steps, let me know which ones and we can troubleshoot further!
内容的提问来源于stack exchange,提问作者Inv3nt0r

