Ubuntu更换阿里源后,提示GPG error缺少公钥

修改命令:sudo gedit /etc/apt/sources.list

阿里源

deb http://mirrors.aliyun.com/ubuntu/ bionic main restricted universe multiverse
deb http://mirrors.aliyun.com/ubuntu/ bionic-security main restricted universe multiverse
deb http://mirrors.aliyun.com/ubuntu/ bionic-updates main restricted universe multiverse
deb http://mirrors.aliyun.com/ubuntu/ bionic-proposed main restricted universe multiverse
deb http://mirrors.aliyun.com/ubuntu/ bionic-backports main restricted universe multiverse
deb-src http://mirrors.aliyun.com/ubuntu/ bionic main restricted universe multiverse
deb-src http://mirrors.aliyun.com/ubuntu/ bionic-security main restricted universe multiverse
deb-src http://mirrors.aliyun.com/ubuntu/ bionic-updates main restricted universe multiverse
deb-src http://mirrors.aliyun.com/ubuntu/ bionic-proposed main restricted universe multiverse
deb-src http://mirrors.aliyun.com/ubuntu/ bionic-backports main restricted universe multiverse

错误信息:

W: GPG error: http://mirrors.aliyun.com/ubuntu bionic InRelease: The following signatures couldn’t be verified because the public key is not available: NO_PUBKEY 3B4FE6ACC0B21F32
E: The repository ‘http://mirrors.aliyun.com/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.
W: GPG error: http://mirrors.aliyun.com/ubuntu bionic-security InRelease: The following signatures couldn’t be verified because the public key is not available: NO_PUBKEY 3B4FE6ACC0B21F32
E: The repository ‘http://mirrors.aliyun.com/ubuntu bionic-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://mirrors.aliyun.com/ubuntu bionic-updates InRelease: The following signatures couldn’t be verified because the public key is not available: NO_PUBKEY 3B4FE6ACC0B21F32
E: The repository ‘http://mirrors.aliyun.com/ubuntu bionic-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://mirrors.aliyun.com/ubuntu bionic-proposed InRelease: The following signatures couldn’t be verified because the public key is not available: NO_PUBKEY 3B4FE6ACC0B21F32

解决

sudo apt-key adv –keyserver keyserver.ubuntu.com –recv-keys 3B4FE6ACC0B21F32

如若转载,请注明出处:https://www.ouq.net/1807.html

(0)
打赏 微信打赏,为服务器增加50M流量 微信打赏,为服务器增加50M流量 支付宝打赏,为服务器增加50M流量 支付宝打赏,为服务器增加50M流量
上一篇 05/16/2022
下一篇 05/17/2022

相关推荐

  • Homebrew最新安装命令

    终端安装命令 /bin/bash -c “$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)” Homebrew安装苹果MAC(或…

    系统资源 06/25/2021
    119
  • 重庆大学自然科学类期刊分级目录

    重庆大学自然科学类权威、重要期刊目录 序号 学科代码及名称 权威期刊(一级学科) 二级学科代码及名称 重要期刊(二级学科) 期刊名称 ISSN 期刊名称 ISSN 1 0701 数学无本一级学科未 分设二级学科《数学学报(中文版)》1000…

    网络资源 02/07/2022
    478
  • 从Chrome商店下载crx文件的方法

    Chrome上的插件都有一个ID,是该插件网址上最后一串字符串,将这个ID拷贝下来,如下加粗部分。 https://chrome.google.com/webstore/detail/easypubmed/nkpdpmomjhifdobio…

    Chrome精选插件 10/28/2022
    209
  • Shell脚本处理mysql数据库

    1.向数据库中插入数据 #!/bin/bash # send data to the the table in the MYSQL database MYSQL=`which mysql` if [ $# -ne 2 ] then echo…

    IOS系统资源 09/02/2021
    96
  • 复旦大学学位与研究生教育国内期刊指导目录

    国内期刊指导目录 社会科学 学科 刊物名称 主办单位 级别 综合类 K1000001 中国社会科学 中国社会科学院 A类 K1000002 战略与管理 中国战略与管理研究会 A类 K1000003 中华文史论丛 上海古籍出版社 A类 K10…

    网络资源 02/26/2022
    191