
Acabei de atualizar meu dispositivo para Ubuntu 22.04 e queria instalar o R seguindo este leia-me:https://cran.r-project.org/bin/linux/ubuntu/fullREADME.html
Isso funcionou bem, no entanto, agora recebo um erro quando tento atualizar meus pacotes:
~$ sudo apt update
Err:1 https://cloud.r-project.org/bin/linux/ubuntu jammy-cran40/ InRelease
The following signatures couldn't be verified because the public key is not available: NO_PUBKEY 51716619E084DAB9
Get:7 http://apt.insync.io/ubuntu jammy InRelease [5.531 B]
Reading package lists... Done
W: GPG error: https://cloud.r-project.org/bin/linux/ubuntu jammy-cran40/ InRelease: The following signatures couldn't be verified because the public key is not available: NO_PUBKEY 51716619E084DAB9
E: The repository 'https://cloud.r-project.org/bin/linux/ubuntu jammy-cran40/ 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.
Alguém sabe como resolver isso? Eu tentei todos os repositórios no leia-me, mesmo resultado.
Responder1
Parece-me que você perdeu uma etapa do guia que vinculou. Você precisa assinar a chave. A linha relevante nesse link é
wget -qO- https://cloud.r-project.org/bin/linux/ubuntu/marutter_pubkey.asc | sudo tee -a /etc/apt/trusted.gpg.d/cran_ubuntu_key.asc