如何修复 apt 错误:NO_PUBKEY C5E224500C1289C0
问题:
运行 apt update 时,你看到以下错误消息:
apt_error_no_pubkey_teamviewer.txt
Err:2 https://linux.teamviewer.com/deb stable InRelease
The following signatures couldn't be verified because the public key is not available: NO_PUBKEY C5E224500C1289C0解决方案
此错误是由于 teamviewer 仓库使用过时的(截至 2022 年 4 月)apt-key 导入密钥方法而发生的。
你可以使用以下命令导入密钥:
apt_no_pubkey_fix.sh
wget -q https://download.teamviewer.com/download/linux/signature/TeamViewer2017.asc -O- | gpg --dearmor | sudo tee /usr/share/keyrings/teamviewer-archive-keyring.gpg
echo "deb [signed-by=/usr/share/keyrings/teamviewer-archive-keyring.gpg] https://linux.teamviewer.com/deb stable main" > /etc/apt/sources.list.d/teamviewer.list然后运行
apt_update.sh
apt update再次。
Check out similar posts by category:
Linux
If this post helped you, please consider buying me a coffee or donating via PayPal to support research & publishing of new posts on TechOverflow