You need to enable JavaScript to run this app.
优惠活动
大模型
产品
解决方案
定价
更多

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:

Fixing Slow apt-get Speed on Ubuntu 16.04

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.com and security.ubuntu.com with a mirror near you. For example:
    • If you're in North America: us.archive.ubuntu.com
    • If you're in Asia: mirrors.aliyun.com or mirrors.tuna.tsinghua.edu.cn
  • Save the file (press Ctrl+O, hit Enter) and exit nano (Ctrl+X).
  • Run sudo apt-get update again 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_proxy or https_proxy), unset them with:
    unset http_proxy
    unset https_proxy
    
  • Additionally, check the APT-specific proxy config file to ensure no settings are there:
    cat /etc/apt/apt.conf.d/01proxy
    
    If there are proxy lines present, comment them out by adding a # 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:
    nameserver 8.8.8.8  # Google DNS
    nameserver 8.8.4.4
    
    Or Cloudflare's DNS:
    nameserver 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

相关产品推荐
方舟 Agent Plan

超全模态模型 × Harness 升级,最新支持 Deepseek-V4.1-Flash、GLM-5.3 系列、Doubao-Seedream-5.0-pro、Kimi-K3 (部分), 限时 9.9 元起

最近更新时间:2026.05.19 08:55:18