如何通过终端在ubuntu 16.10上安装R?

时间:2016-11-14 19:36:48

标签: r linux ubuntu terminal

我正在尝试从此站点后的终端安装R: https://www.r-bloggers.com/how-to-install-r-on-linux-ubuntu-16-04-xenial-xerus/

当我执行sudo apt-get install r-base时,我收到以下错误:

Reading package lists... Done
Building dependency tree       
Reading state information... Done
Some packages could not be installed. This may mean that you have
requested an impossible situation or if you are using the unstable
distribution that some required packages have not yet been created
or been moved out of Incoming.
The following information may help to resolve the situation:

The following packages have unmet dependencies:
 r-base : Depends: r-base-core (>= 3.3.2-1xenial0) but it is not going to be installed
          Depends: r-recommended (= 3.3.2-1xenial0) but it is not going to be installed
          Recommends: r-base-html but it is not going to be installed
E: Unable to correct problems, you have held broken packages.

1 个答案:

答案 0 :(得分:4)

将另外两个添加到命令中,并查看它生成的错误,即执行

sudo apt-get install r-base r-base-core r-recommended

您可能安装了哪些内容存在冲突。很多(我的意思是数千)我们运行这些包就好了。

您还可以考虑使用r-sig-debian邮件列表。