我最近开始使用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 存储库。