
Acabo de actualizar mi dispositivo a Ubuntu 22.04 y quería instalar R siguiendo este archivo Léame:https://cran.r-project.org/bin/linux/ubuntu/fullREADME.html
Esto funcionó bien, sin embargo, ahora aparece un error cuando intento actualizar mis paquetes:
~$ 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.
Alguien sabe cómo resolver esto? Probé todos los repositorios en el archivo Léame y obtuve el mismo resultado.
Respuesta1
Me parece que te has saltado un paso de la guía que has vinculado. Necesitas firmar la clave. La línea relevante en ese enlace es
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