无法完成apt更新| Ubuntu 20.04 中的 GPG 错误

彼得·埃斯特凡

我决定做apt update一天并收到以下错误消息。我尝试使用谷歌搜索它并尝试了一些修复,但运气不佳。想知道是否有人以前处理过这个问题或知道修复方法吗?

这里apt update输出:

root@whmcs:/home/peter# apt update -y Hit:1
http://archive.ubuntu.com/ubuntu focal InRelease Hit:2
http://archive.ubuntu.com/ubuntu focal-updates InRelease Hit:3
http://archive.ubuntu.com/ubuntu focal-backports InRelease Get:4
http://security.archive.ubuntu.com/ubuntu precise-security InRelease
[55.7                                                                 
kB] Hit:5 http://archive.ubuntu.com/ubuntu focal-security InRelease
Err:4 http://security.archive.ubuntu.com/ubuntu precise-security
InRelease   The following signatures couldn't be verified because the
public key is not av                                                  
ailable: NO_PUBKEY 40976EAF437D05B5 Reading package lists... Done W:
GPG error: http://security.archive.ubuntu.com/ubuntu precise-security
InRelea                                                               
se: The following signatures couldn't be verified because the public
key is not                                                            
available: NO_PUBKEY 40976EAF437D05B5 E: The repository
'http://security.archive.ubuntu.com/ubuntu precise-security In        
Release' is not signed. N: Updating from such a repository can't be
done securely, and is therefore disa                                  
bled by default. N: See apt-secure(8) manpage for repository creation
and user configuration deta                                           
ils. root@whmcs:/home/peter# apt-key adv --keyserver
keyserver.ubuntu.com --recv-keys 40976EAF437D05B5 Executing:
/tmp/apt-key-gpghome.1URdR73Goe/gpg.1.sh --keyserver
keyserver.ubuntu.com --recv-keys 40976EAF437D05B5 gpg: key
40976EAF437D05B5: public key "Ubuntu Archive Automatic Signing Key
<[email protected]>" imported gpg: Total number processed: 1 gpg:  
imported: 1 root@whmcs:/home/peter# apt-key adv --keyserver
keyserver.ubuntu.com --recv-keys 3B4FE6ACC0B21F32 Executing:
/tmp/apt-key-gpghome.T4gCTfqOmG/gpg.1.sh --keyserver
keyserver.ubuntu.com --recv-keys 3B4FE6ACC0B21F32 gpg: key
3B4FE6ACC0B21F32: "Ubuntu Archive Automatic Signing Key (2012)
<[email protected]>" not changed gpg: Total number processed: 1
gpg:              unchanged: 1 root@whmcs:/home/peter# apt update -y
Hit:1 http://archive.ubuntu.com/ubuntu focal InRelease Get:2
http://security.archive.ubuntu.com/ubuntu precise-security InRelease
[55.7 kB] Hit:3 http://archive.ubuntu.com/ubuntu focal-updates
InRelease Hit:4 http://archive.ubuntu.com/ubuntu focal-backports
InRelease Hit:5 http://archive.ubuntu.com/ubuntu focal-security
InRelease Err:2 http://security.archive.ubuntu.com/ubuntu
precise-security InRelease   The following signatures were invalid:
630239CC130E1A7FD81A27B140976EAF437D05B5 Reading package lists... Done
W: GPG error: http://security.archive.ubuntu.com/ubuntu
precise-security InRelease: The following signatures were invalid:
630239CC130E1A7FD81A27B140976EAF437D05B5 E: The repository
'http://security.archive.ubuntu.com/ubuntu precise-security 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.
root@whmcs:/home/peter# apt-key adv --keyserver keyserver.ubuntu.com
--recv-keys 9578539176BAFBC6 Executing: /tmp/apt-key-gpghome.QLkAQKfS0L/gpg.1.sh --keyserver
keyserver.ubuntu.com --recv-keys 9578539176BAFBC6 gpg: key
9578539176BAFBC6: public key "Launchpad PPA for Peek Developers"
imported gpg: Total number processed: 1 gpg:               imported: 1
root@whmcs:/home/peter# apt update -y Hit:1
http://archive.ubuntu.com/ubuntu focal InRelease Hit:2
http://archive.ubuntu.com/ubuntu focal-updates InRelease Get:3
http://security.archive.ubuntu.com/ubuntu precise-security InRelease
[55.7 kB] Hit:4 http://archive.ubuntu.com/ubuntu focal-backports
InRelease Hit:5 http://archive.ubuntu.com/ubuntu focal-security
InRelease Err:3 http://security.archive.ubuntu.com/ubuntu
precise-security InRelease   The following signatures were invalid:
630239CC130E1A7FD81A27B140976EAF437D05B5 Reading package lists... Done
W: GPG error: http://security.archive.ubuntu.com/ubuntu
precise-security InRelease: The following signatures were invalid:
630239CC130E1A7FD81A27B140976EAF437D05B5 E: The repository
'http://security.archive.ubuntu.com/ubuntu precise-security 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.
root@whmcs:/home/peter# apt-key list /etc/apt/trusted.gpg
-------------------- pub   dsa1024 2004-09-12 [SC]
      6302 39CC 130E 1A7F D81A  27B1 4097 6EAF 437D 05B5 uid           [ unknown] Ubuntu Archive Automatic Signing Key <[email protected]>
sub   elg2048 2004-09-12 [E]

pub   rsa4096 2017-02-14 [SC]
      8C95 3129 9E7D F2DC F681  B499 9578 5391 76BA FBC6 uid           [ unknown] Launchpad PPA for Peek Developers

/etc/apt/trusted.gpg.d/ubuntu-keyring-2012-archive.gpg
------------------------------------------------------ pub   rsa4096 2012-05-11 [SC]
      790B C727 7767 219C 42C8  6F93 3B4F E6AC C0B2 1F32 uid           [ unknown] Ubuntu Archive Automatic Signing Key (2012)
<[email protected]>

/etc/apt/trusted.gpg.d/ubuntu-keyring-2012-cdimage.gpg
------------------------------------------------------ pub   rsa4096 2012-05-11 [SC]
      8439 38DF 228D 22F7 B374  2BC0 D94A A3F0 EFE2 1092 uid           [ unknown] Ubuntu CD Image Automatic Signing Key (2012)
<[email protected]>

/etc/apt/trusted.gpg.d/ubuntu-keyring-2018-archive.gpg
------------------------------------------------------ pub   rsa4096 2018-09-17 [SC]
      F6EC B376 2474 EDA9 D21B  7022 8719 20D1 991B C93C uid           [ unknown] Ubuntu Archive Automatic Signing Key (2018)
<[email protected]>

root@whmcs:/home/peter# apt-key adv --keyserver
hkp://keyserver.ubuntu.com:80 --recv-keys 6494C6D6997C215E Executing:
/tmp/apt-key-gpghome.3F0Y0BBMXD/gpg.1.sh --keyserver
hkp://keyserver.ubuntu.com:80 --recv-keys 6494C6D6997C215E gpg: key
7721F63BD38B4796: public key "Google Inc. (Linux Packages Signing
Authority) <[email protected]>" imported gpg: Total
number processed: 1 gpg:               imported: 1
root@whmcs:/home/peter# apt update -y Hit:1
http://archive.ubuntu.com/ubuntu focal InRelease Hit:2
http://archive.ubuntu.com/ubuntu focal-updates InRelease Hit:3
http://archive.ubuntu.com/ubuntu focal-backports InRelease Get:4
http://security.archive.ubuntu.com/ubuntu precise-security InRelease
[55.7 kB] Hit:5 http://archive.ubuntu.com/ubuntu focal-security
InRelease Err:4 http://security.archive.ubuntu.com/ubuntu
precise-security InRelease   The following signatures were invalid:
630239CC130E1A7FD81A27B140976EAF437D05B5 Reading package lists... Done
W: GPG error: http://security.archive.ubuntu.com/ubuntu
precise-security InRelease: The following signatures were invalid:
630239CC130E1A7FD81A27B140976EAF437D05B5 E: The repository
'http://security.archive.ubuntu.com/ubuntu precise-security 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.
root@whmcs:/home/peter# apt-key adv --keyserver
hkp://security.archive.ubuntu.com:80 --recv-keys
630239CC130E1A7FD81A27B140976EAF437D05B5 Executing:
/tmp/apt-key-gpghome.LGIp7XpAwt/gpg.1.sh --keyserver
hkp://security.archive.ubuntu.com:80 --recv-keys
630239CC130E1A7FD81A27B140976EAF437D05B5 gpg: keyserver receive
failed: No data root@whmcs:/home/peter# apt-key adv --keyserver
hkp://security.archive.ubuntu.com:80/ubuntu --recv-keys
630239CC130E1A7FD81A27B140976EAF437D05B5 Executing:
/tmp/apt-key-gpghome.7Wjf8X1sYL/gpg.1.sh --keyserver
hkp://security.archive.ubuntu.com:80/ubuntu --recv-keys
630239CC130E1A7FD81A27B140976EAF437D05B5 gpg: keyserver receive
failed: No data root@whmcs:/home/peter# apt-key adv --keyserver
security.archive.ubuntu.com --recv-keys
630239CC130E1A7FD81A27B140976EAF437D05B5 Executing:
/tmp/apt-key-gpghome.8rDoRoC9Pf/gpg.1.sh --keyserver
security.archive.ubuntu.com --recv-keys
630239CC130E1A7FD81A27B140976EAF437D05B5 gpg: keyserver receive
failed: Connection refused root@whmcs:/home/peter# apt-key adv
--keyserver http://security.archive.ubuntu.com/ubuntu --recv-keys 630239CC130E1A7FD81A27B140976EAF437D05B5 Executing:
/tmp/apt-key-gpghome.DZvJQ6GQHn/gpg.1.sh --keyserver
http://security.archive.ubuntu.com/ubuntu --recv-keys
630239CC130E1A7FD81A27B140976EAF437D05B5 gpg: no valid OpenPGP data
found. gpg: Total number processed: 0 root@whmcs:/home/peter# lsdb_a
lsdb_a: command not found root@whmcs:/home/peter# lsb_release -s No
LSB modules are available. root@whmcs:/home/peter# lsb_release -a No
LSB modules are available. Distributor ID: Ubuntu Description:   
Ubuntu 20.04.2 LTS Release:        20.04 Codename:       focal
root@whmcs:/home/peter#
GAD3R

不建议混合使用 Ubuntu 版本存储库。

sources.list 中的以下行是问题的根本原因:

http://security.archive.ubuntu.com/ubuntu precise-security main

precise从您的/etc/apt/sources.list或 中删除存储库/etc/apt/sources.list.d/

要获取名称文件并显示其内容,请使用:

grep -Rn --include=\*.list ^[^\#] /etc/apt/

本文收集自互联网,转载请注明来源。

如有侵权,请联系[email protected] 删除。

编辑于
0

我来说两句

0条评论
登录后参与评论

相关文章

来自分类Dev

无法摆脱apt中的GPG错误

来自分类Dev

apt-get update获取在VMWare中运行Ubuntu 14.04的GPG错误

来自分类Dev

在Docker构建过程中进行第二次apt-get更新后,Ubuntu 21.04中出现GPG错误

来自分类Dev

在Docker构建过程中进行第二次apt-get更新后,Ubuntu 21.04中出现GPG错误

来自分类Dev

Ubuntu 16.04.3更新GPG错误(公共密钥不可用)

来自分类Dev

由于 Ubuntu 20.04 上的 GPG 错误,无法正确安装 mongod

来自分类Dev

无法解决GPG错误

来自分类Dev

apt-get 在 Ubuntu 14 中与私有存储库一起使用,但在 Ubuntu 18 中因 GPG 错误“签名无效”而失败

来自分类Dev

apt-get更新报告GPG错误

来自分类Dev

apt-get更新GPG错误

来自分类Dev

更新时发生GPG错误

来自分类Dev

更新时发生GPG错误

来自分类Dev

为什么 Déjà Dup 使用 gpg 失败:解密失败:Ubuntu 20.04.1 中的会话密钥错误?

来自分类Dev

ubuntu utopic 14.10中的apt-get更新错误

来自分类Dev

在ubuntu中安装python3.7后apt更新错误

来自分类Dev

由于安装后脚本中的“权限被拒绝”错误,Update Manager和apt-get无法完成更新

来自分类Dev

运行“ sudo apt-fast更新”时出现“ GPG错误”

来自分类Dev

运行“ sudo apt-fast更新”时出现“ GPG错误”

来自分类Dev

Ubuntu 14.04中的更新错误

来自分类Dev

完成在GPG中的输入文字

来自分类Dev

由于出现apt / dpkg错误,无法升级/更新ubuntu 18.04

来自分类Dev

ubuntu apt-get存储库给出错误gpg:找不到有效的OpenPGP数据

来自分类Dev

Kubuntu 14.10,更新给出了GPG错误

来自分类Dev

我想更新时的GPG错误

来自分类Dev

无法修复GPG错误NO_PUB_KEY

来自分类Dev

Ansible在Ubuntu上的apt更新中无法实现

来自分类Dev

无法在Ubuntu 16.04中安装VLC [错误]

来自分类Dev

如果过了日期(即20/04/2020),为什么程序会引发错误?

来自分类Dev

Xubuntu 20:04(焦点):IPKernelApp|错误|没有注册这样的通信目标|jupyter.widget.version

Related 相关文章

  1. 1

    无法摆脱apt中的GPG错误

  2. 2

    apt-get update获取在VMWare中运行Ubuntu 14.04的GPG错误

  3. 3

    在Docker构建过程中进行第二次apt-get更新后,Ubuntu 21.04中出现GPG错误

  4. 4

    在Docker构建过程中进行第二次apt-get更新后,Ubuntu 21.04中出现GPG错误

  5. 5

    Ubuntu 16.04.3更新GPG错误(公共密钥不可用)

  6. 6

    由于 Ubuntu 20.04 上的 GPG 错误,无法正确安装 mongod

  7. 7

    无法解决GPG错误

  8. 8

    apt-get 在 Ubuntu 14 中与私有存储库一起使用,但在 Ubuntu 18 中因 GPG 错误“签名无效”而失败

  9. 9

    apt-get更新报告GPG错误

  10. 10

    apt-get更新GPG错误

  11. 11

    更新时发生GPG错误

  12. 12

    更新时发生GPG错误

  13. 13

    为什么 Déjà Dup 使用 gpg 失败:解密失败:Ubuntu 20.04.1 中的会话密钥错误?

  14. 14

    ubuntu utopic 14.10中的apt-get更新错误

  15. 15

    在ubuntu中安装python3.7后apt更新错误

  16. 16

    由于安装后脚本中的“权限被拒绝”错误,Update Manager和apt-get无法完成更新

  17. 17

    运行“ sudo apt-fast更新”时出现“ GPG错误”

  18. 18

    运行“ sudo apt-fast更新”时出现“ GPG错误”

  19. 19

    Ubuntu 14.04中的更新错误

  20. 20

    完成在GPG中的输入文字

  21. 21

    由于出现apt / dpkg错误,无法升级/更新ubuntu 18.04

  22. 22

    ubuntu apt-get存储库给出错误gpg:找不到有效的OpenPGP数据

  23. 23

    Kubuntu 14.10,更新给出了GPG错误

  24. 24

    我想更新时的GPG错误

  25. 25

    无法修复GPG错误NO_PUB_KEY

  26. 26

    Ansible在Ubuntu上的apt更新中无法实现

  27. 27

    无法在Ubuntu 16.04中安装VLC [错误]

  28. 28

    如果过了日期(即20/04/2020),为什么程序会引发错误?

  29. 29

    Xubuntu 20:04(焦点):IPKernelApp|错误|没有注册这样的通信目标|jupyter.widget.version

热门标签

归档