在Linux Mint 17.1(MATE)上安装最新版本的R 3.2.1(世界著名的宇航员) [英] install latest version of R 3.2.1 (World-Famous Astronaut) on Linux Mint 17.1 (MATE)

查看:129
本文介绍了在Linux Mint 17.1(MATE)上安装最新版本的R 3.2.1(世界著名的宇航员)的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我刚刚从Mac切换到Linux,因此虽然我对Linux结构有基本的了解,但是我仍然想清除一些问题.这就是其中之一.

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.

我尝试了多种方法(请参阅多个论坛帖子)在Linux Mint 17.1(MATE)上安装最新版本的R(3.2.1世界著名的宇航员").

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/

但是当我打电话时:

apt-cache showpkg r-base-dev

每尝试一次,我总会得到:

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

3.0.2-1ubuntu1

作为最新版本.

此外,我的sources.list仅包含deb上方的内容,因此我不认为这是/etc/apt/preferences/问题.

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

有人能在Linux Mint上安装3.2.1吗?

Has anyone been able to install 3.2.1 on Linux Mint?

提前谢谢!

  • 汤姆

推荐答案

好,我知道了.感谢您提供的所有帮助!我将在这里为其他试图找出答案的人发布答案:

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

首先我跑了

sudo gedit /etc/apt/sources.list

进入我的sources.list.我还添加了:

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

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

,然后添加密钥:(感谢Dirk的建议):

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

然后当我跑步时:

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)

所以,最后我跑了:

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

效果很好!

这篇关于在Linux Mint 17.1(MATE)上安装最新版本的R 3.2.1(世界著名的宇航员)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆