install latest version of R 3.2.1 (World-Famous Astronaut) on Linux Mint 17.1 (MATE)

☆樱花仙子☆ 提交于 2019-12-24 14:28:44

问题


I just switched from Mac to Linux, so while I have a basic understanding of Linux structure, there are still some things Im trying to clear up. This is one of them.

I have tried multiple ways (referencing multiple forum posts) to install the latest version of R (3.2.1 "World-Famous Astronaut") on Linux Mint 17.1 (MATE).

I tried different sources lists, the most recent being:

deb http://cran.rstudio.com/bin/linux/debian wheezy-cran3/

but when I call:

apt-cache showpkg r-base-dev

with each of the ones I try, I always get:

3.0.2-1ubuntu1

as the most recent one available.

Also, my sources.list only contains that above deb, so I do not think its a /etc/apt/preferences/ issue.

Has anyone been able to install 3.2.1 on Linux Mint?

Thanks in advance!

  • Tom

回答1:


Briefly:

  • Did you also run sudo apt-get update ?

  • Look at apt-cache policy r-base-dev which will shows which versions apt "knowns"

  • Mint ain't Debian so hell may still break loose ...




回答2:


Ok, I figured it out. Thanks for all the help! I will post an answer here for anyone else trying to figure this out:

First I ran:

sudo gedit /etc/apt/sources.list

to get into my sources.list. To that I added:

deb http://cran.rstudio.com/bin/linux/debian wheezy-cran3/

and then added the key: (thanks Dirk for the suggestion):

sudo apt-key adv --keyserver keys.gnupg.net --recv-key 381BA480

sudo apt-get update

then when I ran:

apt-cache showpkg r-base-dev

to see the available packages. The top one was:

Package: r-base-dev
Versions: 
3.2.1-1~wheezycran3.0(/var/lib/apt/lists/cran.rstudio.com_bin_linux_debian_wheezy-cran3_Packages)

so, finally I ran:

sudo apt-get install -f r-base=3.2.1-1~wheezycran3.0

which worked great!



来源:https://stackoverflow.com/questions/31295828/install-latest-version-of-r-3-2-1-world-famous-astronaut-on-linux-mint-17-1-m

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!