如何修复 apt 错误:NO_PUBKEY A2F683C52980AECF

问题:

运行 apt update 时,你看到以下错误消息:

apt_no_pubkey_a2f683c5_fix.sh
Err:13 https://download.virtualbox.org/virtualbox/debian jammy InRelease
  The following signatures couldn't be verified because the public key is not available: NO_PUBKEY A2F683C52980AECF

解决方案

此错误是由于 VirtualBox 仓库使用过时的(截至 2022 年 4 月)apt-key 导入密钥方法而发生的。

你可以通过再次安装 tailscale 仓库来导入密钥(这些命令基于 VirtualBox Linux 下载页面 中的命令):

add_virtualbox_repo.sh
wget -qO- https://www.virtualbox.org/download/oracle_vbox_2016.asc | sudo gpg --dearmor --yes --output /usr/share/keyrings/oracle-virtualbox-2016.gpg
echo "deb [arch=amd64 signed-by=/usr/share/keyrings/oracle-virtualbox-2016.gpg] https://download.virtualbox.org/virtualbox/debian $(lsb_release -cs) contrib" | sudo tee /etc/apt/sources.list.d/virtualbox.list

然后运行

apt_update.sh
apt update

再次。


Check out similar posts by category: Linux