1、添加新的仓库,出现NO_PUBKEY
root@debian10-01:~# apt-get update
Hit:1 http://mirrors.163.com/debian buster InRelease
Hit:2 http://mirrors.163.com/debian buster-updates InRelease
Hit:3 http://mirrors.163.com/debian buster-backports InRelease
Get:4 http://mirrors.163.com/debian-security buster/updates InRelease [65.4 kB]
Get:5 http://mirrors.163.com/debian-security buster/updates/main Sources [178 kB]
Get:6 http://download.proxmox.com/debian/pve buster InRelease [3,051 B]
Err:6 http://download.proxmox.com/debian/pve buster InRelease
The following signatures couldn't be verified because the public key is not available: NO_PUBKEY 7BF2812E8A6E88E0
Reading package lists... Done
W: GPG error: http://download.proxmox.com/debian/pve buster InRelease: The following signatures couldn't be verified because the public key is not available: NO_PUBKEY 7BF2812E8A6E88E0
E: The repository 'http://download.proxmox.com/debian/pve buster 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.
2、导入PUBKey
root@debian10-01:~# sudo apt-key adv --keyserver keyserver.ubuntu.com --recv-keys 7BF2812E8A6E88E0
Executing: /tmp/apt-key-gpghome.SiBo77scWm/gpg.1.sh --keyserver keyserver.ubuntu.com --recv-keys 7BF2812E8A6E88E0
gpg: key 7BF2812E8A6E88E0: public key "Proxmox Virtual Environment 6.x Release Key <proxmox-release@proxmox.com>" imported
gpg: Total number processed: 1
gpg: imported: 1
root@debian10-01:~# apt update
Hit:1 http://mirrors.163.com/debian buster InRelease
Hit:2 http://mirrors.163.com/debian buster-updates InRelease
Hit:3 http://mirrors.163.com/debian buster-backports InRelease
Hit:4 http://mirrors.163.com/debian-security buster/updates InRelease
Get:5 http://download.proxmox.com/debian/pve buster InRelease [3,051 B]
Get:6 http://download.proxmox.com/debian/pve buster/pve-no-subscription amd64 Packages [364 kB]
Fetched 364 kB in 2min 32s (2,388 B/s)
Reading package lists... Done
Building dependency tree
Reading state information... Done
11 packages can be upgraded. Run 'apt list --upgradable' to see them.