我错误地下载了Debian中的Ubuntu存储库。现在,当我试图更新系统sudo apt-get update时,我会发现:
W: The repository 'http://ppa.launchpad.net/webupd8team/y-ppa-manager/ubuntu cosmic 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.
W: GPG error: http://ppa.launchpad.net/gophers/archive/ubuntu bionic InRelease: Ondorengo sinadurak ezin dira egiaztatu gako publikoa ez bait dago eskuragarri: NO_PUBKEY 308C15A29AD198E9
W: The repository 'http://ppa.launchpad.net/gophers/archive/ubuntu bionic InRelease' is not signed.
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: Ezin da lortu http://ppa.launchpad.net/webupd8team/y-ppa-manager/ubuntu/dists/cosmic/main/binary-i386/Packages 404 Not Found
E: Some index files failed to download. They have been ignored, or old ones used instead.如何删除存储库以修复问题?
发布于 2018-05-16 16:03:16
如果使用apt-add-repository添加存储库,则再次使用-r选项运行相同的命令。
sudo add-apt-repository -r ppa:webupd8team/y-ppa-manager如果您不能或不愿意使用add-apt-repository,那么您可以手动删除存储库。它们要么记录在/etc/apt/sources.list中,要么记录在目录/etc/apt/sources.list.d/的文件中。要确定哪个文件是罪魁祸首,请运行
grep y-ppa-manager /etc/apt/sources.list /etc/apt/sources.list.d/*.list /etc/apt/sources.list.d/*.sources如果您向/etc/apt/sources.list添加了某些内容,请用
sudoedit /etc/apt/sources.list并移除冒犯的字句。如果要删除/etc/apt/sources.list.d下文件中的所有条目,可以使用
sudo rm /etc/apt/sources.list.d/y-ppa-manager.listgophers/archive协议也有一个无关的错误。如果你想要它,你需要完成建立它的工作。要使包存档可用,您需要做三件事:
/etc/apt/sources.list*)中。sudo apt-key add filename.key来指示您信任它的密钥。sudo apt-get update。当您使用ppa:语法时,apt-add-repository负责步骤1和步骤2。步骤2似乎没有在您的机器上执行。我认为您可以运行add-apt-repository (按照PPA页面上的说明)来处理它。或者,您可以手动添加关键
apt-key adv --keyserver keyserver.ubuntu.com --recv-key C73998DC9DFEA6DCF1241057308C15A29AD198E9keyserver.ubuntu.com是所有Ubuntu密钥的关键服务器,也是在PPA页面上签名键链接访问的站点。末尾的十六进制字符串是PPA页面上列出的指纹(您也可以使用错误消息中的较短形式)。
https://unix.stackexchange.com/questions/444186
复制相似问题