我剛剛將作業系統更改為 Linux Mint 17,但是當我嘗試運行時遇到了一些問題
sudo apt-get update
[編輯] 現在我有以下錯誤:
Err http://extra.linuxmint.com qiana InRelease
Err http://extra.linuxmint.com qiana Release.gpg
Unable to resolve 'extra.linuxmint.com'
Err http://archive.canonical.com trusty InRelease
Err http://archive.canonical.com trusty Release.gpg
Unable to resolve 'archive.canonical.com'
W: Failed to fetch http://packages.linuxmint.com/dists/qiana/InRelease
W: Failed to fetch http://archive.canonical.com/ubuntu/dists/trusty/InRelease
W: Failed to fetch http://archive.canonical.com/ubuntu/dists/trusty/Release.gpg Unable to resolve 'archive.canonical.com'
W: Failed to fetch http://packages.linuxmint.com/dists/qiana/Release.gpg Unable to resolve 'packages.linuxmint.com'
W: Failed to download some index files. Been ignored, or old ones used instead.
在 /etc/apt/source.list.d/ 下的文件上,我有:ficial-package-repositories.list: # 不要手動編輯此文件,而是使用軟體來源。
deb http://packages.linuxmint.com qiana main upstream import #id:linuxmint_main
deb http://extra.linuxmint.com qiana main #id:linuxmint_extra
deb http://archive.ubuntu.com/ubuntu trusty main restricted universe multiverse
deb http://archive.ubuntu.com/ubuntu trusty-updates main restricted universe multiverse
deb http://security.ubuntu.com/ubuntu/ trusty-security main restricted universe multiverse
deb http://archive.canonical.com/ubuntu/ trusty partner
取得deb.列表:
# 德布http://archive.getdeb.net/ubuntu可信賴的 getdeb 應用程序
答案1
答案就在錯誤訊息中,但可能很模糊。您無法解析列出的各種 URL。可能是因為您根本沒有網路連線。從 ping 開始,看看這是否屬實:
ping kernel.org 或任何其他知名主機,例如 8.8.8.8
如果沒有 ping 通,請嘗試 dhclient eth0 (假設您已連接到 eth0)以取得新的 IP 位址。
如果收到 ping 訊號,請 ping URL 並嘗試查看問題所在。 wget 也是一個不錯的工具,但 ping 比較簡單。