
我安裝了最新的 Ubuntu 伺服器(14.04 LTS)並嘗試使用建立桌面環境
sudo apt-get install ubuntu-desktop
但它表明
W: Failed to fetch http://us.archive.ubuntu.com/dists/trusty/InRelease
W: Failed to fetch http://us.archive.ubuntu.com/dists/trusty-updtes/InRelease
.
.
W: Some index files failed to download. They have been ignored, or old ones used instead.
我看到有人問了幾個問題,我嘗試了其中一些但沒有成功。
我嘗試的最後一個如下
sudo rm -rf /var/lib/apt/lists/*
上面的命令刪除了一些軟體包,但在 apt-get update 上再次失敗。
誰能指導我如何克服這個問題,以成功地為我的伺服器啟用桌面環境?
螢幕截圖對於 grep -r 'us.archive.ubuntu.com' /etc/apt
編輯
須藤 sed命令結果
答案1
您有網路問題。事情InRelease
就是結果。您的系統無法取得 GPG 金鑰,因此它嘗試使用該InRelease
文件而不是該Release
文件,當然也會失敗。
InRelease 檔案是內嵌簽署的,而 Release 檔案應該有一個附帶的 Release.gpg 檔案。