我最近開始使用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
答案1
首先,請注意,apt-get update
仍然會適當更新其索引,它只是抱怨無法下載某些儲存庫所需的資訊。
sarah
是 Mint 代號,而不是 Ubuntu 代號,因此嘗試使用sarah
Canonical 託管的儲存庫是沒有意義的;您可以安全地刪除附加儲存庫:
sudo rm /etc/apt/sources.list.d/additional-repositories.list
這將修復您看到的錯誤。
答案2
ubuntu 沒有 sarah 版本。僅在使用 linuxming 發行版時才使用 linuxmint 儲存庫。