【发布时间】:2014-02-07 15:10:45
【问题描述】:
我目前正在使用 Ubuntu 12.04 64 位。我正在尝试按照 link 上的指定安装 R。我能够成功安装 r-base 但在尝试安装 r-base-dev 时出错。这是错误
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-dev : Depends: gfortran but it is not installable
Depends: libblas-dev but it is not installable or
libatlas-base-dev but it is not going to be installed
Depends: liblapack-dev but it is not installable or
libatlas-base-dev but it is not going to be installed
Depends: libreadline-dev but it is not installable
Depends: libjpeg-dev but it is not installable
Depends: libpcre3-dev but it is not installable
Depends: libpng-dev but it is not installable
Depends: libbz2-dev but it is not installable
Depends: cdbs but it is not installable
E: Unable to correct problems, you have held broken packages.
我已添加该链接中所述的安全密钥以及以下行 deb http://cran.r-project.org/bin/linux/ubuntu precise/ 到 /etc/apt/sources.list
我还添加了以下 ppa:sudo add-apt-repository ppa:marutter/rrutter。
任何帮助都将不胜感激。
PS:我也对 /var/lib/apt/lists 中的列表感到怀疑,所以我删除并重新创建了它。仍然有同样的错误。
【问题讨论】:
-
你有所有它说是未满足的依赖项的包吗?您需要那些
-dev包才能编译R的-dev包中的fortran 和c 代码。 -
不,我没有那些包。我搜索了它们,但我无法安装那些软件包。它显示的错误是:
Package gfortran is not available, but is referred to by another package. This may mean that the package is missing, has been obsoleted, or is only available from another source -
我还通过突触包管理器搜索了我有哪些损坏的包,但其中也没有列出损坏的包。
-
尝试分别安装每一个。
sudo aptitude search首先。您可能必须相应地更新名称。gfortran例如应通过以下方式安装:sudo apt-get install gfortran-4.6。 -
感谢您的帮助,但我已经尝试过这样做,但仍然遇到同样的错误。我安装了 gfortran 4.8 等,但错误仍然相同。
标签: r dependencies ubuntu-12.04 apt