![我如何找到需要从更新中删除哪个 PPA?](https://linux22.com/image/1100053/%E6%88%91%E5%A6%82%E4%BD%95%E6%89%BE%E5%88%B0%E9%9C%80%E8%A6%81%E4%BB%8E%E6%9B%B4%E6%96%B0%E4%B8%AD%E5%88%A0%E9%99%A4%E5%93%AA%E4%B8%AA%20PPA%EF%BC%9F.png)
当我运行 apt-get update 时,最后出现了一些错误,我想删除它们,但我不知道它们来自哪个 PPA。我安装了 Y-PPA 管理器,但仍然找不到它来自哪里。
Ign http://packages.medibuntu.org raring/non-free Translation-en
Err http://packages.medibuntu.org raring/free amd64 Packages
404 Not Found
Err http://packages.medibuntu.org raring/non-free amd64 Packages
404 Not Found
Err http://packages.medibuntu.org raring/free i386 Packages
404 Not Found
Err http://packages.medibuntu.org raring/non-free i386 Packages
404 Not Found
Ign http://us.archive.ubuntu.com raring/main Translation-en_US
Ign http://us.archive.ubuntu.com raring/multiverse Translation-en_US
Ign http://us.archive.ubuntu.com raring/restricted Translation-en_US
Ign http://us.archive.ubuntu.com raring/universe Translation-en_US
Ign http://us.archive.ubuntu.com raring-updates/main Translation-en_US
Ign http://us.archive.ubuntu.com raring-updates/multiverse Translation-en_US
Ign http://us.archive.ubuntu.com raring-updates/restricted Translation-en_US
Ign http://us.archive.ubuntu.com raring-updates/universe Translation-en_US
Ign http://us.archive.ubuntu.com raring-backports/main Translation-en_US
Ign http://us.archive.ubuntu.com raring-backports/multiverse Translation-en_US
Ign http://us.archive.ubuntu.com raring-backports/restricted Translation-en_US
Ign http://us.archive.ubuntu.com raring-backports/universe Translation-en_US
Ign http://ppa.launchpad.net raring/main Translation-en_US
Ign http://ppa.launchpad.net raring/main Translation-en
Ign http://ppa.launchpad.net raring/main Translation-en_US
Ign http://ppa.launchpad.net raring/main Translation-en
Ign http://ppa.launchpad.net raring/main Translation-en_US
Ign http://ppa.launchpad.net raring/main Translation-en
Ign http://ppa.launchpad.net raring/main Translation-en_US
Ign http://ppa.launchpad.net raring/main Translation-en
Ign http://ppa.launchpad.net raring/main Translation-en_US
Ign http://ppa.launchpad.net raring/main Translation-en
Ign http://ppa.launchpad.net raring/main Translation-en_US
Ign http://ppa.launchpad.net raring/main Translation-en
Ign http://ppa.launchpad.net raring/main Translation-en_US
Ign http://ppa.launchpad.net raring/main Translation-en
Ign http://ppa.launchpad.net raring/main Translation-en_US
Ign http://ppa.launchpad.net raring/main Translation-en
Ign http://ppa.launchpad.net raring/main Translation-en_US
Ign http://ppa.launchpad.net raring/main Translation-en
Fetched 1,302 kB in 17s (73.2 kB/s)
W: Failed to fetch http://packages.medibuntu.org/dists/raring/free/binary-amd64/Packages 404 Not Found
W: Failed to fetch http://packages.medibuntu.org/dists/raring/non-free/binary-amd64/Packages 404 Not Found
W: Failed to fetch http://packages.medibuntu.org/dists/raring/free/binary-i386/Packages 404 Not Found
W: Failed to fetch http://packages.medibuntu.org/dists/raring/non-free/binary-i386/Packages 404 Not Found
E: Some index files failed to download. They have been ignored, or old ones used instead.
$
答案1
并非所有的 medibuntu 存储库都有效,因此这将找到它们的位置
grep -RE '^\s*[^#].*medibuntu.*' /etc/apt/sources.list{,.d/*.list}
这可能只会显示几个文件。编辑这些文件(删除行或用 注释它们#
),您的下一次更新应该可以正常工作。
答案2
我认为你应该能够使用 GUI“软件和更新”程序来实现这一点。它是默认安装的。使用这些说明
- 从 Dash 中搜索并打开“软件和更新”。
- 打开“其他软件”选项卡。
- 找到与给您带来问题的存储库相关的任何行(在本例中为 Medibuntu),然后取消选中它前面的框。请注意,它们可能以完整的 URL 或更友好的名称命名。
- 关闭窗口
重新运行并检查是否仍然错误,如果仍然错误,请尝试禁用更多相关的存储库。
sudo apt-get update