安装 PPA 后 sudo apt-get update 不起作用

安装 PPA 后 sudo apt-get update 不起作用

安装一些 PPA 后,每次我执行sudo apt-get update此操作时,输出都是

Hit:1 http://au.archive.ubuntu.com/ubuntu bionic InRelease
Hit:2 http://repo.steampowered.com/steam precise InRelease                                                                                                                  
Hit:3 http://au.archive.ubuntu.com/ubuntu bionic-updates InRelease                                                                                                          
Hit:4 http://au.archive.ubuntu.com/ubuntu bionic-backports InRelease                                                                                             
Hit:5 http://security.ubuntu.com/ubuntu bionic-security InRelease                                                                                                
Ign:6 http://ppa.launchpad.net/grumbel/ppa/ubuntu bionic InRelease       
Hit:7 http://ppa.launchpad.net/kelleyk/emacs/ubuntu bionic InRelease        
Err:8 http://ppa.launchpad.net/grumbel/ppa/ubuntu bionic Release                                                       
  404  Not Found [IP: 91.189.95.83 80]
Get:9 https://qgis.org/ubuntu bionic InRelease [3,693 B]
Err:9 https://qgis.org/ubuntu bionic InRelease
  The following signatures couldn't be verified because the public key is not available: NO_PUBKEY 51F523511C7028C3
Reading package lists... Done
E: The repository 'http://ppa.launchpad.net/grumbel/ppa/ubuntu bionic Release' does not have a Release file.
N: Updating from such a repository can't be done securely, and is therefore disabled by default.
N: See apt-secure(8) manpage for repository creation and user configuration details.
W: GPG error: https://qgis.org/ubuntu bionic InRelease: The following signatures couldn't be verified because the public key is not available: NO_PUBKEY 51F523511C7028C3
E: The repository 'https://qgis.org/ubuntu bionic InRelease' is not signed.
N: Updating from such a repository can't be done securely, and is therefore disabled by default.
N: See apt-secure(8) manpage for repository creation and user configuration details.

答案1

格伦贝尔 PPA没有显示任何 bionic 软件包。当您查看此 ppa 的启动板页面时,在“已发布软件包概述”下有一个过滤器,您可以在其中选择 Ubuntu 版本,但 bionic 并未列出。

您可以通过运行以下命令来删除此 ppa:

sudo rm /etc/apt/sources.list.d/grumbel*

另外,我不知道您如何安装 qgis.org 存储库,因此您必须执行以下操作之一。

首先,如果您有此存储库的文件/etc/apt/sources.list.d,请编辑该文件并将“ubuntu”更改为“debian”,保存该文件然后运行:sudo apt update

但是,如果您编辑了/etc/apt/sources.list文件以添加此存储库,请编辑此文件并在 qgis.org 存储库行上,将“ubuntu”更改为“debian”。然后运行:sudo apt update

单击此处获取有关安装 qgis.org 存储库的更多信息。

或者,您可以删除软件和更新中的有问题的 ppa。

相关内容