RプロジェクトリポジトリからR(Debian 10)をインストールする:主な問題

RプロジェクトリポジトリからR(Debian 10)をインストールする:主な問題

RプロジェクトリポジトリからDebian 10に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

ベストアンサー1

解決策は、次の代替キーサーバーを使用することです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

同様の問題を抱えているユーザーに役立つことを願っています。

おすすめ記事