Ubuntu – Installing R on Ubuntu – getting updates to work

r

I have installed R. However, when I update my system it complains that the R updates aren't authenticated.

What do I have to do to authenticate them?

Best Answer

From http://cran.r-project.org/bin/linux/ubuntu/README:

To obtain the latest R packages, add an entry like

deb http://<my.favorite.cran.mirror>/bin/linux/ubuntu precise/
deb http://<my.favorite.cran.mirror>/bin/linux/ubuntu oneiric/
deb http://<my.favorite.cran.mirror>/bin/linux/ubuntu natty/
deb http://<my.favorite.cran.mirror>/bin/linux/ubuntu lucid/
deb http://<my.favorite.cran.mirror>/bin/linux/ubuntu hardy/

in your /etc/apt/sources.list file, replacing <my.favorite.cran.mirror> by the actual URL of your favorite CRAN mirror. See http://cran.r-project.org/mirrors.html for the list of CRAN mirrors.

Then later in the README

The Ubuntu archives on CRAN are signed with the key of Michael Rutter <marutter@gmail.com> with key ID E084DAB9. You can fetch this key with

gpg --keyserver keyserver.ubuntu.com --recv-key E084DAB9

and then feed it to apt-key with

gpg -a --export E084DAB9 | sudo apt-key add -

To install the complete R system, use

sudo apt-get update
sudo apt-get install r-base

For additional details see

https://help.ubuntu.com/community/Repositories/Ubuntu#Authentication_Tab

https://help.ubuntu.com/community/SecureApt

Related Question