兵團基地

一起學習、共同進步。
兵團基地

Debian 系统更新报错 NO_PUBKEY

新装了个云服务器,系统更新时遇到了这么个问题:

W: GPG error: http://mirrors.cloud.aliyuncs.com/debian stretch-proposed-updates InRelease: The following signatures couldn't be verified because the public key is not available: NO_PUBKEY 648ACFD622F3D138 NO_PUBKEY 0E98404D386FA1D9
 W: The repository 'http://mirrors.cloud.aliyuncs.com/debian stretch-proposed-updates InRelease' is not signed.
 N: Data from such a repository can't be authenticated and is therefore potentially dangerous to use.
 N: See apt-secure(8) manpage for repository creation and user configuration details.
 W: GPG error: http://mirrors.cloud.aliyuncs.com/debian stretch-backports InRelease: The following signatures couldn't be verified because the public key is not available: NO_PUBKEY 648ACFD622F3D138 NO_PUBKEY 0E98404D386FA1D9
 W: The repository 'http://mirrors.cloud.aliyuncs.com/debian stretch-backports InRelease' is not signed.
 N: Data from such a repository can't be authenticated and is therefore potentially dangerous to use.
 N: See apt-secure(8) manpage for repository creation and user configuration details.
 

The following signatures couldn’t be verified because the public key is not available.

提示仓库没有签名,缺PUBKEY。

解决办法:

sudo apt-key adv --keyserver keyserver.ubuntu.com --recv-keys <PUB_KEY>
 

把报错中提示的KEY 的值替换填进去即可,如遇到多个则重复多次。

如果运行上面的命令报以下错误:

gpg: failed to start the dirmngr '/usr/bin/dirmngr': No such file or directory
 gpg: connecting dirmngr at '/run/user/0/gnupg/d.55u7f7akgdikezu64enn1c1n/S.dirmngr' failed: No such file or directory
 gpg: keyserver receive failed: No dirmngr
 

则需要先安装dirmngr:

sudo apt-get install software-properties-common dirmngr
 

安装后则可正常更新。

完。

Debian 系统更新报错 NO_PUBKEY

新装了个云服务器,系统更新时遇到了这么个问题:

W: GPG error: http://mirrors.cloud.aliyuncs.com/debian stretch-proposed-updates InRelease: The following signatures couldn't be verified because the public key is not available: NO_PUBKEY 648ACFD622F3D138 NO_PUBKEY 0E98404D386FA1D9
 W: The repository 'http://mirrors.cloud.aliyuncs.com/debian stretch-proposed-updates InRelease' is not signed.
 N: Data from such a repository can't be authenticated and is therefore potentially dangerous to use.
 N: See apt-secure(8) manpage for repository creation and user configuration details.
 W: GPG error: http://mirrors.cloud.aliyuncs.com/debian stretch-backports InRelease: The following signatures couldn't be verified because the public key is not available: NO_PUBKEY 648ACFD622F3D138 NO_PUBKEY 0E98404D386FA1D9
 W: The repository 'http://mirrors.cloud.aliyuncs.com/debian stretch-backports InRelease' is not signed.
 N: Data from such a repository can't be authenticated and is therefore potentially dangerous to use.
 N: See apt-secure(8) manpage for repository creation and user configuration details.
 

The following signatures couldn’t be verified because the public key is not available.

提示仓库没有签名,缺PUBKEY。

解决办法:

sudo apt-key adv --keyserver keyserver.ubuntu.com --recv-keys <PUB_KEY>
 

把报错中提示的KEY 的值替换填进去即可,如遇到多个则重复多次。

如果运行上面的命令报以下错误:

gpg: failed to start the dirmngr '/usr/bin/dirmngr': No such file or directory
 gpg: connecting dirmngr at '/run/user/0/gnupg/d.55u7f7akgdikezu64enn1c1n/S.dirmngr' failed: No such file or directory
 gpg: keyserver receive failed: No dirmngr
 

则需要先安装dirmngr:

sudo apt-get install software-properties-common dirmngr
 

安装后则可正常更新。

完。

兵团基地
Power by React, GraphQL | Design by Puls Garney | Version: 3.1.6
Copyright © 2017-2022 Puls Garney - All Rights Reserved.
Power by React, GraphQL
Design by Puls Garney
Version: 3.1.6

Copyright © 2017-2022 Puls Garney
All Rights Reserved.