我想从Debian 10上的R项目存储库中安装R。
sudo apt install dirmngr -- install-recommends
sudo apt install software-properties-common apt-transport-https ca-certificates gnupg2然后,如果我跟随https://www.digitalocean.com/community/tutorials/how-to-install-r-on-debian-10和做
sudo apt-key adv --keyserver keys.gnupg.net --recv-key 'E19F5F87128899B192B1A2C2AD5F960A256A04AF'最后会出现以下错误:
Executing: /tmp/apt-key-gpghome.WVA4wGygKd/gpg.1.sh --keyserver keys.gnupg.net --recv-key E19F5F87128899B192B1A2C2AD5F960A256A04AF
gpg: keyserver receive failed: No name发布于 2021-12-04 20:22:59
解决这一问题的一个方法是使用另一个密钥服务器,例如keyserver.ubuntu.com:
sudo apt-key adv --keyserver keyserver.ubuntu.com --recv-key 'E19F5F87128899B192B1A2C2AD5F960A256A04AF'然后将相关存储库添加到
sudo add-apt-repository 'deb https://cloud.r-project.org/bin/linux/debian buster-cran35/'但是,sudo apt update会导致以下错误:
Err:4 https://cloud.r-project.org/bin/linux/debian buster-cran35/ InRelease
The following signatures couldn't be verified because the public key is not available: NO_PUBKEY B8F25A8A73EACF41
Reading package lists... Done
W: GPG error: https://cloud.r-project.org/bin/linux/debian buster-cran35/ InRelease: The following signatures couldn't be verified because the public key is not available: NO_PUBKEY B8F25A8A73EACF41
E: The repository 'https://cloud.r-project.org/bin/linux/debian buster-cran35/ InRelease' is not signed.
N: Updating from such a repository can't be done securely, and is therefore disabled by default.这意味着添加此键时:
sudo apt-key adv --keyserver keyserver.ubuntu.com --recv-keys B8F25A8A73EACF41然后,安装可以简单地进行使用。
sudo apt install r-base-core r-base-dev我希望这将有助于遇到类似问题的用户。
https://unix.stackexchange.com/questions/680144
复制相似问题