软件更新程序显示“无法下载存储库信息 - 公钥不可用”Ubuntu 17.10

软件更新程序显示“无法下载存储库信息 - 公钥不可用”Ubuntu 17.10

当我运行软件更新程序时出现错误。

因此尝试转到“其他软件”并仅检查 Canonical Partners,然后我收到此错误:

无法下载存储库信息

W:GPG 错误:http://archive.canonical.com精确发布:由于公钥不可用,无法验证以下签名:NO_PUBKEY 40976EAF437D05B5,E:存储库'http://archive.canonical.com'精确发布' 尚未签署。

我努力了:

sudo apt-key adv --keyserver keyserver.ubuntu.com --recv-keys 40976EAF437D05B5
[sudo] password for sindre: 
Executing: /tmp/apt-key-gpghome.gl6NzrufIJ/gpg.1.sh --keyserver keyserver.ubuntu.com --recv-keys 40976EAF437D05B5

但它没有帮助。看起来它永远不会被执行,因为它超时了。(gpg:密钥服务器接收失败:连接超时)。

打印 sources.list

# newer versions of the distribution.
deb http://archive.ubuntu.com/ubuntu artful main restricted
# deb-src http://no.archive.ubuntu.com/ubuntu/ artful main restricted

## Major bug fix updates produced after the final release of the
## distribution.
deb http://archive.ubuntu.com/ubuntu artful-updates main restricted
# deb-src http://no.archive.ubuntu.com/ubuntu/ artful-updates main restricted

## N.B. software from this repository is ENTIRELY UNSUPPORTED by the Ubuntu
## team. Also, please note that software in universe WILL NOT receive any
## review or updates from the Ubuntu security team.
deb http://archive.ubuntu.com/ubuntu artful universe
# deb-src http://no.archive.ubuntu.com/ubuntu/ artful universe
deb http://archive.ubuntu.com/ubuntu artful-updates universe
# deb-src http://no.archive.ubuntu.com/ubuntu/ artful-updates universe

## N.B. software from this repository is ENTIRELY UNSUPPORTED by the Ubuntu 
## team, and may not be under a free licence. Please satisfy yourself as to 
## your rights to use the software. Also, please note that software in 
## multiverse WILL NOT receive any review or updates from the Ubuntu
## security team.
deb http://archive.ubuntu.com/ubuntu artful multiverse
# deb-src http://no.archive.ubuntu.com/ubuntu/ artful multiverse
deb http://archive.ubuntu.com/ubuntu artful-updates multiverse
# deb-src http://no.archive.ubuntu.com/ubuntu/ artful-updates multiverse

## N.B. software from this repository may not have been tested as
## extensively as that contained in the main release, although it includes
## newer versions of some applications which may provide useful features.
## Also, please note that software in backports WILL NOT receive any review
## or updates from the Ubuntu security team.
deb http://archive.ubuntu.com/ubuntu artful-backports main restricted universe multiverse
# deb-src http://no.archive.ubuntu.com/ubuntu/ artful-backports main restricted universe multiverse

## Uncomment the following two lines to add software from Canonical's
## 'partner' repository.
## This software is not part of Ubuntu, but is offered by Canonical and the
## respective vendors as a service to Ubuntu users.
# deb http://archive.canonical.com/ubuntu artful partner
# deb-src http://archive.canonical.com/ubuntu artful partner

deb http://archive.ubuntu.com/ubuntu artful-security main restricted
# deb-src http://security.ubuntu.com/ubuntu artful-security main restricted
deb http://archive.ubuntu.com/ubuntu artful-security universe
# deb-src http://security.ubuntu.com/ubuntu artful-security universe
deb http://archive.ubuntu.com/ubuntu artful-security multiverse
# deb-src http://security.ubuntu.com/ubuntu artful-security multiverse
deb http://archive.canonical.com/ precise partner
# deb-src http://archive.canonical.com/ precise partner

答案1

我编辑了 /etc/apt/sources.list

然后在 sources.list 倒数第二行前面添加 #

德布http://archive.canonical.com/精准合作伙伴

现在我可以获取更新了。

相关内容