gpt4 book ai didi

r - 安装 r-base-dev 的问题

转载 作者:行者123 更新时间:2023-12-04 11:31:55 25 4
gpt4 key购买 nike

我目前正在使用 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.

我已经添加了该链接中所述的安全 key 以及以下行 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 中的列表表示怀疑,所以我删除并重新创建了它。仍然有同样的错误。

最佳答案

我确保启用了受限制的和 Universe 存储库(在我的情况下被禁用)。为此,按 Alt + F2 键入 software-properties-gtk 并按 Enter。

Ubuntu Software选项卡启用所有存储库。
enter image description here
之后运行

sudo apt-get update

再次运行
sudo apt-get install r-base-dev

并成功完成。

我从这个 link 得到了上述解决方案

关于r - 安装 r-base-dev 的问题,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/21631191/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com