当我尝试在 Ubuntu 22.04 上安装 Monodevelop 时出现 GPG 错误。
我跟着https://www.monodevelop.com/download/#fndtn-download-lin-ubuntu, 和https://ubunlog.com/en/monodevelop-ide-installation-via-ppa/安装 Monodevelop。sudo apt-key ...
命令失败并报告已弃用。由于缺少密钥,sudo apt update
无法访问 mono 存储库,因此我无法安装 Monodevelop。
更新时我得到以下输出:
Err:1 https://download.mono-project.com/repo/ubuntu vs-bionic InRelease
The following signatures couldn't be verified because the public key is not available: NO_PUBKEY A6A19B38D3D831EF
Reading package lists... Done
W: GPG error: https://download.mono-project.com/repo/ubuntu vs-bionic InRelease: The following signatures couldn't be verified because the public key is not available: NO_PUBKEY A6A19B38D3D831EF
E: The repository 'https://download.mono-project.com/repo/ubuntu vs-bionic 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.
我也尝试过使用 gpg 添加密钥。我导入了一些密钥,但 apt 仍然报告缺少密钥。我尝试过:
curl -sSL "https://keyserver.ubuntu.com/pks/lookup?op=get&search=0x3FA7E0328081BFF6A14DA29AA6A19B38D3D831EF" | gpg --import
curl -sSL "https://keyserver.ubuntu.com/pks/lookup?op=get&search=0xA6A19B38D3D831EF" | gpg --import
curl -sSL https://download.mono-project.com/repo/xamarin.gpg | gpg --import
sudo gpg --keyserver download.mono-project.com --recv-key 3FA7E0328081BFF6A14DA29AA6A19B38D3D831EF
有人知道如何在 Ubuntu 22.04 上安装 Monodevelop 吗?Snap 也是一个选择,但我在 snap store 中找不到它。