【问题标题】:How to install R package in Ubuntu 12.04如何在 Ubuntu 12.04 中安装 R 包
【发布时间】:2013-05-05 22:44:00
【问题描述】:

在 ubuntu 12.04 中安装 R 时出现以下错误。

sudo apt-get install r-base-core

The following packages have unmet dependencies:
 r-base-core : Depends: libblas3 but it is not installable or

               Depends: liblapack3 but it is not installable or

               Depends: liblzma5 (>= 5.1.1alpha+20120614) but 5.1.1alpha+20110809-3 is to be installed
               Depends: libtiff5 (> 4.0.0-1~) but it is not installable

E: Unable to correct problems, you have held broken packages.

【问题讨论】:

标签: r


【解决方案1】:

尝试通过 Ubuntu 软件中心安装它。搜索 R 软件。

或者尝试使用以下命令修复它:

sudo apt-get -f install

该命令将尝试查找并安装任何缺少的依赖项。

对于其他解决方案,您可以查看此链接:

https://askubuntu.com/questions/140246/how-do-i-resolve-unmet-dependencies

【讨论】:

  • +1 用于指向 askubuntu。但是,这确实是一个 library 问题。看来 Precise 的 ubuntu R 包不完整(也许对于 OP 正在使用的未指定操作系统)。
  • 谢谢我使用 Synaptic Packet Manage 安装。它现在工作正常。
猜你喜欢
  • 2013-01-28
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 2013-01-17
  • 1970-01-01
  • 2017-12-29
  • 1970-01-01
  • 1970-01-01
相关资源
最近更新 更多