
Ich habe mein Gerät gerade auf Ubuntu 22.04 aktualisiert und wollte R gemäß dieser Readme-Datei installieren:https://cran.r-project.org/bin/linux/ubuntu/fullREADME.html
Dies hat problemlos funktioniert. Allerdings erhalte ich jetzt eine Fehlermeldung, wenn ich versuche, meine Pakete zu aktualisieren:
~$ 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.
Weiß jemand, wie man das löst? Ich habe alle Repositories in der Readme-Datei ausprobiert, gleiches Ergebnis.
Antwort1
Es sieht für mich so aus, als ob Sie in der Anleitung, die Sie verlinkt haben, einen Schritt übersehen haben. Sie müssen den Schlüssel signieren. Die relevante Zeile in diesem Link lautet
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