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

标签 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.

最佳答案

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

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

您可能安装了一些有冲突的东西。我们中的许多人(我的意思是数千)都很好地运行这些软件包。

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

关于r - 如何通过终端在 ubuntu 16.10 上安装 R?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/40596494/

相关文章:

使用dimple.js 的rCharts 图不会出现在 Shiny 的应用程序中

r - 无法使用 rvest 抓取带有表单的网站

c - 输入两个字符串后列出目录的路径名

linux - 从设备驱动程序的下半部分发出磁盘读取

linux - 从命令行 rtspclientsink 测试管道

mysql - 错误 2002 (HY000) : Can't connect to local MySQL server through socket '/var/run/mysqld/mysqld.sock' (111)

r - 是否可以像 dcast 一样在 tidyr 中的多列上使用扩展?

r - 如何使用scale_fill_gradient指定 "low"和 "high"并在两端获得两个音阶

python-2.7 - 缺少libAnalyzer

linux - 在 ubuntu 18.04 上更新后无法打开 libmpfr.so.4