我无法更新库和依赖项
The repository is not updated and the previous index files will be used. GPG error: http://deb.anydesk.com all In Release: The following signatures were invalid: EXPKEYSIG 18DF3741CDFFDE29 philandro Software GmbH <[email protected]>
W: Failed to fetch http://deb.anydesk.com/dists/all/InRelease The following signatures were invalid: EXPKEYSIG 18DF3741CDFFDE29 philandro Software GmbH <[email protected]>
收到上述错误,需要帮助,提前致谢
答案1
你必须遵循他们的文档http://deb.anydesk.com/howto.html。
要(重新)添加 GPG 密钥,请打开终端并执行:
wget -qO - https://keys.anydesk.com/repos/DEB-GPG-KEY | sudo apt-key add -
然后通过以下方式更新软件包列表
sudo apt-get update
答案2
文档anydesk/howto.html是过时的如果你使用的是 Debian 12。正如你在man 8 apt-key
apt-key(8) 将最后在 Debian 11 和 Ubuntu 22.04 中可用
因此,我编写了一个简单的 bash 脚本,从存储库中在 Debian Bookworm 中安装 anydesk:
#!/bin/bash
wget -O- https://keys.anydesk.com/repos/DEB-GPG-KEY | gpg --dearmor | tee /etc/apt/keyrings/anydesk.gpg > /dev/null
echo deb [signed-by=/etc/apt/keyrings/anydesk.gpg] http://deb.anydesk.com/ all main | tee /etc/apt/sources.list.d/anydesk-stable.list
apt update && apt -y install anydesk