我无法使用 sudo apt update 在 Debian 10 上进行更新

我无法使用 sudo apt update 在 Debian 10 上进行更新
Hit:1 http://download.opensuse.org/repositories/home:/strycore/Debian_10  InRelease
Ign:2 http://download.opensuse.org/repositories/home:/strycore/Debian Buster InRelease
Get:3 http://deb.debian.org/debian-security buster/updates InRelease [65.4 kB]
Get:4 http://ftp.de.debian.org/debian buster InRelease [121 kB]                  
Err:3 http://deb.debian.org/debian-security buster/updates InRelease                                               
  The following signatures couldn't be verified because the public key is not available: NO_PUBKEY AA8E81B4331F7F50 NO_PUBKEY 112695A0E562B32A
Err:5 http://download.opensuse.org/repositories/home:/strycore/Debian Buster Release                               
  404  Not Found [IP: 195.135.221.134 80]
Get:6 http://deb.debian.org/debian buster-updates InRelease [49.3 kB]                                              
Err:6 http://deb.debian.org/debian buster-updates InRelease                                    
  The following signatures couldn't be verified because the public key is not available: NO_PUBKEY 04EE7237B7D453EC NO_PUBKEY 648ACFD622F3D138
Err:4 http://ftp.de.debian.org/debian buster InRelease                                                                                                                                            
  The following signatures couldn't be verified because the public key is not available: NO_PUBKEY 04EE7237B7D453EC NO_PUBKEY 648ACFD622F3D138 NO_PUBKEY DCC9EFBF77E11517
Reading package lists... Done                                                                                                                                                                     
W: GPG error: http://deb.debian.org/debian-security buster/updates InRelease: The following signatures couldn't be verified because the public key is not available: NO_PUBKEY AA8E81B4331F7F50 NO_PUBKEY 112695A0E562B32A
E: The repository 'http://deb.debian.org/debian-security buster/updates 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.
E: The repository 'http://download.opensuse.org/repositories/home:/strycore/Debian Buster 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: http://deb.debian.org/debian buster-updates InRelease: The following signatures couldn't be verified because the public key is not available: NO_PUBKEY 04EE7237B7D453EC NO_PUBKEY 648ACFD622F3D138
E: The repository 'http://deb.debian.org/debian buster-updates 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.
W: GPG error: http://ftp.de.debian.org/debian buster InRelease: The following signatures couldn't be verified because the public key is not available: NO_PUBKEY 04EE7237B7D453EC NO_PUBKEY 648ACFD622F3D138 NO_PUBKEY DCC9EFBF77E11517
E: The repository 'http://ftp.de.debian.org/debian buster 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

我会做什么:

$ sudo -s
# junk=$(grep -l opensuse /etc/apt/source.list /etc/apt/source.list.d/*)
# mv "$junk" "${junk}.bak"
# apt update
# apt upgrade

答案2

正如其他人提到的,一个 openSUSE 存储库不存在。但这仅适用于http://download.opensuse.org/repositories/home:/strycore/Debian第二个存储库:http://download.opensuse.org/repositories/home:/strycore/

因此,您可能需要检查并修复列表文件/etc/apt/source.list,并/etc/apt/source.list.d/*.list更加小心,而不是遵循建议的锤击方法 ;)。此 repo 是否对您有用是另一个问题。

但还有另一个问题:

Err:3 http://deb.debian.org/debian-security buster/updates InRelease                                               
  The following signatures couldn't be verified because the public key is not available: NO_PUBKEY AA8E81B4331F7F50 NO_PUBKEY 112695A0E562B32A

这可能意味着您没有将公共 Debian 存储库密钥/密钥环添加到您信任的存储库密钥中。最简单的方法可能是手动安装/更新官方密钥环包:

cd /tmp
wget https://deb.debian.org/debian/pool/main/d/debian-archive-keyring/debian-archive-keyring_2019.1_all.deb
dpkg -i debian-archive-keyring_2019.1_all.deb
rm debian-archive-keyring_2019.1_all.deb

这是存储库本身的一部分,因此在应用时将保持最新apt-get upgrade对于未来的读者,如果上述软件包不再存在,或者您使用不同的 Debian 版本,请查看以下内容以了解适合您的 Debian 版本的当前密钥环包:https://packages.debian.org/debian-archive-keyring

相关内容