I decided to install Ubuntu on my home laptop, and the second package I installed (after Chrome) was of course R I followed this guideline
which has the added bonus of showing how to link R vs the OpenBLAS! (this accelerates linear algebra operations). However, when I arrived at the package installation part, it didn't work. I went to CRAN:
https://cran.r-project.org/bin/linux/ubuntu/
According to the CRAN guideline, since apt-get
gets me R 3.4.4 under Ubuntu 18.04 (LTS), I figured that I should comment the last line of my /etc/apt/sources.list
file
deb https://cloud.r-project.org/bin/linux/ubuntu bionic-cran35/
(since it was trying to get me the 3.5 package sources) and I added line
deb https://cloud.r-project.org/bin/linux/ubuntu xenial/
Now, I can install R packages! However, it looks like I broke
apt-get update
andrea@...~$ sudo apt-get update
[sudo] password for andrea:
Ign:1 http://dl.google.com/linux/chrome/deb stable InRelease
Get:2 http://security.ubuntu.com/ubuntu bionic-security InRelease [83,2 kB]
Hit:3 http://it.archive.ubuntu.com/ubuntu bionic InRelease
Hit:4 http://dl.google.com/linux/chrome/deb stable Release
Hit:5 http://it.archive.ubuntu.com/ubuntu bionic-updates InRelease
Hit:6 https://download.docker.com/linux/ubuntu bionic InRelease
Hit:7 http://it.archive.ubuntu.com/ubuntu bionic-backports InRelease
Get:8 https://cloud.r-project.org/bin/linux/ubuntu xenial/ InRelease [3.590 B]
Get:10 http://security.ubuntu.com/ubuntu bionic-security/main i386 Packages [165 kB]
Err:8 https://cloud.r-project.org/bin/linux/ubuntu xenial/ InRelease
The following signatures couldn't be verified because the public key is not available: NO_PUBKEY 51716619E084DAB9
Get:11 http://security.ubuntu.com/ubuntu bionic-security/main amd64 Packages [208 kB]
Get:12 http://security.ubuntu.com/ubuntu bionic-security/main Translation-en [81,8 kB]
Reading package lists... Done
W: GPG error: https://cloud.r-project.org/bin/linux/ubuntu xenial/ 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 xenial/ 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
What's happening? How do I fix that?
.