我做了:
sudo ppa-purge ppa:cybermax-dexter/sdl2-backport并得到:
Updating packages lists
W: The repository 'http://ppa.launchpad.net/cybermax-dexter/sdl2-backport/ubuntu xenial Release' does not have a Release file.
E: Failed to fetch http://ppa.launchpad.net/cybermax-dexter/sdl2-backport/ubuntu/dists/xenial/main/binary-amd64/Packages 404 Not Found [IP: 91.....]
E: Some index files failed to download. They have been ignored, or old ones used instead.
Warning: apt-get update failed for some reason当我查看软件和更新->其他软件时,PPA仍然存在,也在sources.list.d文件夹中,但不在sources.list文件中。
我意识到W:部分是因为PPA与xenial不兼容。但我仍然不知道这两个E: parts的含义,以及如何清除PPA。
我可以手动删除,但我想确保我已经清除了所有相关文件等,因为它是第三方,我不想让任何不可靠的留在我的电脑.?我是个菜鸟,所以对这件事也许有点无知.
耽误您时间,实在对不起!
发布于 2020-11-26 16:29:26
让我们从两个项目开始:
从这两个事实中,我们可以得出结论: 18.04 PPA不太可能为您的16.04系统提供任何可用的软件包。
这个结论的必然结果是,PPA可能从未为您工作过,并且每次尝试时都只返回错误消息。
上的PPA文件
apt-cache policy <package_name>检查列出的每个包的源代码和版本号。如果包版本和源代码与PPA匹配,请卸载该软件包。下面是一个例子:
$ apt-cache policy hello <--- The example page name is "hello"
hello:
Installed: 2.10-2ubuntu2 <--- Version number. Should EXACTLY match the version number provided by the PPA
Candidate: 2.10-2ubuntu2 +-- Sources. The PPA should be listed as a source.
Version table: V
*** 2.10-2ubuntu2 500
500 http://us.archive.ubuntu.com/ubuntu focal/main amd64 Packages
100 /var/lib/dpkg/status删除PPA有两个步骤:
您已经找到了apt源代码:/etc/apt/source es.list.d/目录中的一个文件。删除该文件:sudo rm /etc/apt/sources.list.d/<filename>。您还可以使用软件和源代码控制面板删除PPA源代码。
好的做法是在对apt源代码进行任何更改后运行apt更新:sudo apt-get update。更新应该没有错误或警告。
https://askubuntu.com/questions/1295471
复制相似问题