1、添加新的仓库,出现NO_PUBKEY
root@debian10-01:~# apt-get updateHit:1 http://mirrors.163.com/debian buster InReleaseHit:2 http://mirrors.163.com/debian buster-updates InReleaseHit:3 http://mirrors.163.com/debian buster-backports InReleaseGet: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 InReleaseThe following signatures couldn't be verified because the public key is not available: NO_PUBKEY 7BF2812E8A6E88E0Reading package lists... DoneW: 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 7BF2812E8A6E88E0E: 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 7BF2812E8A6E88E0Executing: /tmp/apt-key-gpghome.SiBo77scWm/gpg.1.sh --keyserver keyserver.ubuntu.com --recv-keys 7BF2812E8A6E88E0gpg: key 7BF2812E8A6E88E0: public key "Proxmox Virtual Environment 6.x Release Key <proxmox-release@proxmox.com>" importedgpg: Total number processed: 1gpg: imported: 1root@debian10-01:~# apt updateHit:1 http://mirrors.163.com/debian buster InReleaseHit:2 http://mirrors.163.com/debian buster-updates InReleaseHit:3 http://mirrors.163.com/debian buster-backports InReleaseHit:4 http://mirrors.163.com/debian-security buster/updates InReleaseGet: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... DoneBuilding dependency treeReading state information... Done11 packages can be upgraded. Run 'apt list --upgradable' to see them.
