apt update出现 W: GPG error: http://old-releases.ubuntu.com/ubuntu cosmic InRelease: Could not execute

root@jiao-virtual-machine:/# apt update
Get:1 http://old-releases.ubuntu.com/ubuntu cosmic InRelease [242 kB]
0% [1 InRelease gpgv 242 kB] [Waiting for headers]Couldn't create tempfiles for splitting up /var/lib/apErr:1 http://old-releases.ubuntu.com/ubuntu cosmic InReleaseInRelease
  Could not execute 'apt-key' to verify signature (is gnupg installed?)
Get:2 http://old-releases.ubuntu.com/ubuntu cosmic-security InRelease [88.7 kB]
0% [2 InRelease gpgv 88.7 kB] [Waiting for headers]                                   354 B/s 11min 23sCouldn't create tempfiles for splitting up /var/lib/apt/lists/partial/old-releases.ubuntu.com_ubuntu_distErr:2 http://old-releases.ubuntu.com/ubuntu cosmic-security InRelease                                  
  Could not execute 'apt-key' to verify signature (is gnupg installed?)
Get:3 http://old-releases.ubuntu.com/ubuntu cosmic-updates InRelease [88.7 kB]                         
0% [3 InRelease gpgv 88.7 kB] [Waiting for headers]                                   354 B/s 15min 34sCouldn't create tempfiles for splitting up /var/lib/apt/lists/partial/old-releases.ubuntu.com_ubuntu_distErr:3 http://old-releases.ubuntu.com/ubuntu cosmic-updates InRelease                                   
  Could not execute 'apt-key' to verify signature (is gnupg installed?)
Get:4 http://old-releases.ubuntu.com/ubuntu cosmic-proposed InRelease [92.5 kB]                        
0% [4 InRelease gpgv 92.5 kB] [Waiting for headers]                                   354 B/s 19min 45sCouldn't create tempfiles for splitting up /var/lib/apt/lists/partial/old-releases.ubuntu.com_ubuntu_distErr:4 http://old-releases.ubuntu.com/ubuntu cosmic-proposed InRelease                                  
  Could not execute 'apt-key' to verify signature (is gnupg installed?)
Get:5 http://old-releases.ubuntu.com/ubuntu cosmic-backports InRelease [74.6 kB]                       
0% [5 InRelease gpgv 74.6 kB]                                                          354 B/s 24min 6sCouldn't create tempfiles for splitting up /var/lib/apt/lists/partial/old-releases.ubuntu.com_ubuntu_distErr:5 http://old-releases.ubuntu.com/ubuntu cosmic-backports InRelease                                 
  Could not execute 'apt-key' to verify signature (is gnupg installed?)
Reading package lists... Done                                                                          
W: GPG error: http://old-releases.ubuntu.com/ubuntu cosmic InRelease: Could not execute 'apt-key' to verify signature (is gnupg installed?)
E: The repository 'http://old-releases.ubuntu.com/ubuntu cosmic 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://old-releases.ubuntu.com/ubuntu cosmic-security InRelease: Could not execute 'apt-key' to verify signature (is gnupg installed?)
E: The repository 'http://old-releases.ubuntu.com/ubuntu cosmic-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.
W: GPG error: http://old-releases.ubuntu.com/ubuntu cosmic-updates InRelease: Could not execute 'apt-key' to verify signature (is gnupg installed?)
E: The repository 'http://old-releases.ubuntu.com/ubuntu cosmic-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://old-releases.ubuntu.com/ubuntu cosmic-proposed InRelease: Could not execute 'apt-key' to verify signature (is gnupg installed?)
E: The repository 'http://old-releases.ubuntu.com/ubuntu cosmic-proposed 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://old-releases.ubuntu.com/ubuntu cosmic-backports InRelease: Could not execute 'apt-key' to verify signature (is gnupg installed?)
E: The repository 'http://old-releases.ubuntu.com/ubuntu cosmic-backports 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@jiao-virtual-machine:/# chmod 777 /tmp

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 1
    评论
W: http://archive.ubuntu.com/ubuntu/dists/jammy/InRelease: The key(s) in the keyring /etc/apt/trusted.gpg.d/ubuntu-keyring-2012-cdimage.gpg are ignored as the file is not readable by user '_apt' executing apt-key. W: http://archive.ubuntu.com/ubuntu/dists/jammy/InRelease: The key(s) in the keyring /etc/apt/trusted.gpg.d/ubuntu-keyring-2018-archive.gpg are ignored as the file is not readable by user '_apt' executing apt-key. W: GPG error: http://archive.ubuntu.com/ubuntu jammy InRelease: The following signatures couldn't be verified because the public key is not available: NO_PUBKEY 871920D1991BC93C E: The repository 'http://archive.ubuntu.com/ubuntu jammy InRelease' is not signed. W: http://security.ubuntu.com/ubuntu/dists/jammy-security/InRelease: The key(s) in the keyring /etc/apt/trusted.gpg.d/ubuntu-keyring-2012-cdimage.gpg are ignored as the file is not readable by user '_apt' executing apt-key. W: http://security.ubuntu.com/ubuntu/dists/jammy-security/InRelease: The key(s) in the keyring /etc/apt/trusted.gpg.d/ubuntu-keyring-2018-archive.gpg are ignored as the file is not readable by user '_apt' executing apt-key. W: GPG error: http://security.ubuntu.com/ubuntu jammy-security InRelease: The following signatures couldn't be verified because the public key is not available: NO_PUBKEY 871920D1991BC93C E: The repository 'http://security.ubuntu.com/ubuntu jammy-security InRelease' is not signed. W: http://archive.ubuntu.com/ubuntu/dists/jammy-updates/InRelease: The key(s) in the keyring /etc/apt/trusted.gpg.d/ubuntu-keyring-2012-cdimage.gpg are ignored as the file is not readable by user '_apt' executing apt-key. W: http://archive.ubuntu.com/ubuntu/dists/jammy-updates/InRelease: The key(s) in the keyring /etc/apt/trusted.gpg.d/ubuntu-keyring-2018-archive.gpg are ignored as the file is not readable by user '_apt' executing apt-key. W: GPG error: http://archive.ubuntu.com/ubuntu jammy-updates InRelease: The following signatures couldn't be verified because the public key is not available: NO_PUBKEY 871920D1991BC93C E: The repository 'http://archive.ubuntu.com/ubuntu jammy-updates InRelease' is not signed. W: http://archive.ubuntu.com/ubuntu/dists/jammy-backports/InRelease: The key(s) in the keyring /etc/apt/trusted.gpg.d/ubuntu-keyring-2012-cdimage.gpg are ignored as the file is not readable by user '_apt' executing apt-key. W: http://archive.ubuntu.com/ubuntu/dists/jammy-backports/InRelease: The key(s) in the keyring /etc/apt/trusted.gpg.d/ubuntu-keyring-2018-archive.gpg are ignored as the file is not readable by user '_apt' executing apt-key. W: GPG error: http://archive.ubuntu.com/ubuntu jammy-backports InRelease: The following signatures couldn't be verified because the public key is not available: NO_PUBKEY 871920D1991BC93C E: The repository 'http://archive.ubuntu.com/ubuntu jammy-backports InRelease' is not signed. E: Problem executing scripts APT::Update::Post-Invoke 'rm -f /var/cache/apt/archives/*.deb /var/cache/apt/archives/partial/*.deb /var/cache/apt/*.bin || true' E: Sub-process returned an error code
06-07

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论 1
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值