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)
上一篇 05/16/2022 21:32
下一篇 05/17/2022 13:54

相关推荐

  • Macos: 修复API4GPTStudio损坏脚本

    #!/bin/bash # 脚本文件路径 APP_PATH=”/Applications/API4GPT Studio.app” # 移除隔离属性 sudo xattr -r -d com.apple.quarantine “$APP_PA…

    IOS系统资源 03/04/2025
    176
  • 神经系统题库

    冬眠低温疗法护理:“先用后停”的原则:先用冬眠药物降温,病人进入冬眠状态后,再用物理降温,体温降至肛温32 ℃~ 34℃,复温时先停物理降温,再逐渐停冬眠药物。 脑疝患者床头抬高15°~30°斜坡位,利于颅内静脉回流,减轻脑水肿;昏迷病人应…

    医学题库 03/03/2025
    145
  • 以下梅毒的治疗原则有:

    梅毒的治疗原则有: A.诊断必须明确,治疗越早,效果越好B.治疗首选长效青霉素C.定期复查,早期梅毒应在治疗后的第一年每隔3个月复查一次,以后每半年复查一次,直至2~3年D.病人的配偶应同时到医院检查和治疗E.病人的性伴侣不一定要检查

    医学题库 03/03/2025
    140
  • 空气微生物采样标准是:

    空气微生物采样标准是: A.Ⅰ类环境空气中细菌总数≤5cfu/m3B.Ⅰ类环境空气中细菌总数≤10cfu/m3C.Ⅱ类环境空气中细菌总数≤100cfu/m3D.Ⅱ类环境空气中细菌总数≤200cfu/m3E.Ⅲ类环境空气中细菌总数≤500cf…

    医学题库 03/03/2025
    154
  • 胃酸的作用包括:

    胃酸的作用包括: A.激活胃蛋白酶原转变为有活性的胃蛋白酶B.提供胃蛋白酶分解蛋白质所需的酸性环境C.促使食物中的蛋白质变性D.与十二指肠黏膜接触后可引起某些激素的释放E.进入十二指肠后有利于小肠对Fe2+和Ca2+的吸收

    医学题库 03/03/2025
    128