Command-Line
為什麼我無法執行“sudo apt-get update”?
我最近開始使用 linux mint。我正在嘗試在我的終端中執行以下命令
sudo apt-get update
。但我總是得到這個輸出:我該如何解決這個問題?
... Ign:10 http://archive.canonical.com sarah/partner all Packages Ign:11 http://archive.canonical.com sarah/partner Translation-en_GB Ign:12 http://archive.canonical.com sarah/partner Translation-en Reading package lists... Done W: Target Packages (partner/binary-i386/Packages) is configured multiple times in /etc/apt/sources.list.d/additional-repositories.list:1 and /etc/apt/sources.list.d/additional-repositories.list:2 W: Target Packages (partner/binary-all/Packages) is configured multiple times in /etc/apt/sources.list.d/additional-repositories.list:1 and /etc/apt/sources.list.d/additional-repositories.list:2 W: Target Translations (partner/i18n/Translation-en_GB) is configured multiple times in /etc/apt/sources.list.d/additional-repositories.list:1 and /etc/apt/sources.list.d/additional-repositories.list:2 W: Target Translations (partner/i18n/Translation-en) is configured multiple times in /etc/apt/sources.list.d/additional-repositories.list:1 and /etc/apt/sources.list.d/additional-repositories.list:2 W: The repository 'http://archive.canonical.com sarah Release' does not have a Release file. N: Data from such a repository can't be authenticated and is therefore potentially dangerous to use. N: See apt-secure(8) manpage for repository creation and user configuration details. E: Failed to fetch http://archive.canonical.com/dists/sarah/partner/binary-i386/Packages 404 Not Found [IP: 91.189.92.191 80] E: Some index files failed to download. They have been ignored, or old ones used instead. W: Target Packages (partner/binary-i386/Packages) is configured multiple times in /etc/apt/sources.list.d/additional-repositories.list:1 and /etc/apt/sources.list.d/additional-repositories.list:2 W: Target Packages (partner/binary-all/Packages) is configured multiple times in /etc/apt/sources.list.d/additional-repositories.list:1 and /etc/apt/sources.list.d/additional-repositories.list:2 W: Target Translations (partner/i18n/Translation-en_GB) is configured multiple times in /etc/apt/sources.list.d/additional-repositories.list:1 and /etc/apt/sources.list.d/additional-repositories.list:2 W: Target Translations (partner/i18n/Translation-en) is configured multiple times in /etc/apt/sources.list.d/additional-repositories.list:1 and /etc/apt/sources.list.d/additional-repositories.list:2
提前致謝
編輯
cat /etc/apt/sources.list.d/additional-repositories.list
::deb http://archive.canonical.com/ sarah partner deb http://archive.canonical.com/ sarah partner
首先,請注意,它
apt-get update
仍然會酌情更新其索引,它只是抱怨它無法下載其某些儲存庫所需的資訊。
sarah
是 Mint 代號,而不是 Ubuntu 代號,因此嘗試使用sarah
Canonical 託管的儲存庫是沒有意義的;您可以安全地刪除其他儲存庫:sudo rm /etc/apt/sources.list.d/additional-repositories.list
這將修復您看到的錯誤。
沒有莎拉版本的 ubuntu。僅在使用 linuxming 發行版時才使用 linuxmint 儲存庫。