gpt4 book ai didi

在 Ubuntu 14.10 上安装 r-base 时收到 "Unmet dependency"

转载 作者:行者123 更新时间:2023-12-04 18:57:59 25 4
gpt4 key购买 nike

我正在尝试在 Ubuntu 14.10 上安装 R

当我给出下载 r-base 的命令时,出现以下错误

roy@laptop:~$ 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.1.2-1precise0) but it is not going to be installed
Depends: r-recommended (= 3.1.2-1precise0) 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.

我能做些什么?我发现添加稀有的反向移植可能会有所帮助。我尝试了几台服务器,但我得到了 404。

以下是我在/etc/apt/sources.list 中带来的以下更改
## R
deb http://cran.cnr.Berkeley.edu/bin/linux/ubuntu precise/



## Raring backports
deb http://us.archive.ubuntu.com/ubuntu/ raring-backports main restricted universe multiverse
deb-src http://us.archive.ubuntu.com/ubuntu/ raring-backports main restricted universe multiverse

最佳答案

第一步:

您可以在/etc/apt/sources.list 文件中使用以下任何内容来获取 R 的最新副本,替换 <my.favorite.cran.mirror>通过您最喜欢的 CRAN 镜像的实际 URL。见 http://cran.r-project.org/mirrors.html对于 CRAN 镜像列表。

deb http://<my.favorite.cran.mirror>/bin/linux/ubuntu utopic/
or
deb http://<my.favorite.cran.mirror>/bin/linux/ubuntu trusty/
or
deb http://<my.favorite.cran.mirror>/bin/linux/ubuntu precise/
or
deb http://<my.favorite.cran.mirror>/bin/linux/ubuntu lucid/

第二步:

要安装完整的 R 系统,请在命令行上使用以下命令:
sudo apt-key adv --keyserver keyserver.ubuntu.com --recv-keys E084DAB9
sudo add-apt-repository ppa:marutter/rdev
sudo apt-get update
sudo apt-get upgrade
sudo apt-get install r-base

如需详细说明,请按照链接 here 中给出的步骤进行操作。 !

关于在 Ubuntu 14.10 上安装 r-base 时收到 "Unmet dependency",我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/28273441/

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