Question: How To Update R In Ubuntu ?
3
gravatar for Arpitha Hebbar
4.0 years ago by
India
Arpitha Hebbar160 wrote:

i wanted to update my R version currently using 2.10. used the command sudo apt-get update R also tried with sudo apt-get upgrade R. both didnt work. please can you help to solve this....

R ubuntu • 68k views
ADD COMMENTlink modified 4.0 years ago by Hamish3.0k • written 4.0 years ago by Arpitha Hebbar160
17
gravatar for HG
4.0 years ago by
HG1000
Germany
HG1000 wrote:

Here is the answer:

sudo su
echo "deb http://www.stats.bris.ac.uk/R/bin/linux/ubuntu precise/" >> /etc/apt/sources.list
apt-key adv --keyserver keyserver.ubuntu.com --recv-keys E084DAB9
apt-get update
apt-get upgrade
ADD COMMENTlink written 4.0 years ago by HG1000
1

This advice still worked 2016 April 17th.

ADD REPLYlink written 19 months ago by briancady10110

A little more of detail that can be useful

echo "deb http://www.stats.bris.ac.uk/R/bin/linux/ubuntu precise/" >> /etc/apt/sources.list

This lane add as superuser the address of the repository of R into the end of the list of repositories that are used for Ubuntu's updates and upgrades. This address will work if you have the "precise" version of Ubuntu (that is version 12.04). It will not work, however, if you have a different Ubuntu version, as this name changes

For example, Ubuntu 15.04's name is "Vivid". Ubuntu 15.10's name is "Wily", and so on. You can know the name of your version by accessing to THIS WEB PAGE

For updates, most of the times this lane don't need to be added to the sources.list, but an editing of the sources.list is required instead. You can find that in a previous update, the lane defining a previous cran R repository has been deactivated by using a "#" . Use vi, pico, emacs, gedit or whatever your favorite editor is to change the name of the Ubuntu version, and erase the comment tag

Use the keyserver code only if it is needed or requested.

ADD REPLYlink written 18 months ago by Antonio R. Franco3.4k

Still worked October 25 2016

ADD REPLYlink written 13 months ago by dcolinmorgan100

Thank you! Still worked 2017 March 29th (changing the version of Ubuntu & adding this cmd line) :

sudo apt-key adv --keyserver keyserver.ubuntu.com --recv-keys 1397BC53640DB551 echo "deb http://www.stats.bris.ac.uk/R/bin/linux/ubuntu trusty/" >> /etc/apt/sources.list

-->To determine the code name of the system you are running, open a terminal and use the command lsb_release -a

ADD REPLYlink written 7 months ago by rian.kinza0

Still worked in September 14 2017. The solution proposed in the CRAN website https://cran.r-project.org/bin/linux/ubuntu/README.html did not help me.

ADD REPLYlink written 9 weeks ago by servillo0

Still work till Oct 2017

ADD REPLYlink written 4 weeks ago by lnly03110

Still work till Oct 2017

ADD REPLYlink written 4 weeks ago by lnly03110
3
gravatar for ancient_learner
4.0 years ago by
India
ancient_learner600 wrote:

check this link http://stackoverflow.com/questions/10476713/how-to-upgrade-r-in-ubuntu

ADD COMMENTlink written 4.0 years ago by ancient_learner600
1
gravatar for Hamish
4.0 years ago by
Hamish3.0k
UK
Hamish3.0k wrote:

First check which version of R is supported for your Ubuntu: http://packages.ubuntu.com/search?keywords=r-recommended

From the package list it looks like you are using Ubuntu 10.04 LTS (Lucid Lynx), so you may want to upgrade to:

Or wait for the next LTS to become available, Ubuntu 14.04 (Trusty Tahr), in April 2014. The Ubuntu LTS releases are supported for five years (https://wiki.ubuntu.com/LTS), so you will want to upgrade soon in any case so you might want to get that out of the way.

If you want to try and upgrade your R packages then see 2.6 Are there Unix-like binaries for R? in the R FAQ for options.

ADD COMMENTlink modified 4.0 years ago • written 4.0 years ago by Hamish3.0k
Please log in to add an answer.

Help
Access

Use of this site constitutes acceptance of our User Agreement and Privacy Policy.
Powered by Biostar version 2.3.0
Traffic: 926 users visited in the last hour