【问题标题】:How to install R on ubuntu 16.10 via the terminal?如何通过终端在 ubuntu 16.10 上安装 R?
【发布时间】:2016-11-14 19:36:47
【问题描述】:

我正在尝试从该站点之后的终端安装 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.

【问题讨论】:

标签: r linux ubuntu terminal


【解决方案1】:

将另外两个添加到命令中,看看它产生的错误,即做

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

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

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

【讨论】:

  • 我刚刚尝试了上面的命令,这是我得到的错误:以下包具有未满足的依赖关系:r-base-core:依赖:libpng12-0 (>= 1.2.13-4 ) 但它无法安装 E: 无法纠正问题,您持有损坏的软件包。
  • 16.10 是 yakkety,您似乎指向 xenial aka 16.04 并获得一个未解决的依赖项。我会尝试 yakkety。 README.md at CRAN 有说明 - 只需适应 yakkety。
  • 感谢链接完美!
  • 很高兴知道它有效,并感谢您接受答案。您也可以投票(点击朝上的三角形)。
猜你喜欢
  • 1970-01-01
  • 2017-07-28
  • 2017-03-19
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 2017-03-17
  • 1970-01-01
  • 2017-08-28
相关资源
最近更新 更多