將 /etc/apt/sources.list 替換為搜狐、網易鏡像源後執行 sudo apt-get update 報錯,且原官方源也找不回。
Ubuntu 14.04 的版本代號為 Trusty Tahr(trusty)。網上常見的舊鏡像源(如 karmic、lucid)對應舊版本(9.04、10.04),倉庫結構不兼容導致 404 或簽名驗證失敗。
# /etc/apt/sources.list
deb https://mirrors.sohu.com/ubuntu/ trusty main restricted universe multiverse
deb https://mirrors.sohu.com/ubuntu/ trusty-security main restricted universe multiverse
deb https://mirrors.sohu.com/ubuntu/ trusty-updates main restricted universe multiverse
deb https://mirrors.sohu.com/ubuntu/ trusty-proposed main restricted universe multiverse
deb https://mirrors.sohu.com/ubuntu/ trusty-backports main restricted universe multiverse
deb-src https://mirrors.sohu.com/ubuntu/ trusty main restricted universe multiverse
deb-src https://mirrors.sohu.com/ubuntu/ trusty-security main restricted universe multiverse
deb-src https://mirrors.sohu.com/ubuntu/ trusty-updates main restricted universe multiverse
deb-src https://mirrors.sohu.com/ubuntu/ trusty-proposed main restricted universe multiverse
deb-src https://mirrors.sohu.com/ubuntu/ trusty-backports main restricted universe multiverse
sudo cp /etc/apt/sources.list /etc/apt/sources.list.baksudo apt-get update 驗證。lsb_release -c 輸出一致。