【发布时间】:2019-10-06 20:09:57
【问题描述】:
我是 Linux 新手,并尝试在我的 Raspberry 上安装最新的 R 版本。 我的 Raspberry 在 Wheezy 7.8 上运行。
我按照指示on CRAN,所以我
- 已添加
deb http://cran.rstudio.com/bin/linux/debian wheezy-cran3/给/etc/apt/sources.list - 运行
apt-get update,它成功了,只给了我一个公钥的“签名错误”,正如 CRAN 网站上指出的那样 - 跑
apt-get install r-base
但是最后一条命令的结果是
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-1~wheezycran3.0) but it is not going to be installed
Depends: r-recommended (= 3.1.2-1~wheezycran3.0) but it is not going to be installed
Recommends: r-base-html but it is not going to be installed
Recommends: r-doc-html but it is not going to be installed
E: Unable to correct problems, you have held broken packages.
我之前尝试安装 R-2.15,然后运行上述命令。 R-2.15 可以安装成功,但我真的需要 R-3*。
我确实浏览了网络,但找不到任何有用的提示来解决我的具体问题,所以我很感激你能给我的任何支持。
谢谢!
如果有任何用处:
apt-cache policy r-base给了
r-base:
Installed: (none)
Candidate: 3.1.2-1~wheezycran3.0
Version table:
3.1.2-1~wheezycran3.0 0
500 http://cran.rstudio.com/bin/linux/debian/ wheezy-cran3/ Packages
3.1.0-1~wheezycran3.0 0
500 http://cran.rstudio.com/bin/linux/debian/ wheezy-cran3/ Packages
2.15.1-4 0
500 http://mirrordirector.raspbian.org/raspbian/ wheezy/main armhf Packages
apt-cache policy r-base-core 给了
r-base-core:
Installed: (none)
Candidate: 2.15.1-4
Version table:
2.15.1-4 0
500 http://mirrordirector.raspbian.org/raspbian/ wheezy/main armhf Packages
uname -a给了
Linux raspberrypi 3.18.5+ #744 PREEMPT Fri Jan 30 18:19:07 GMT 2015 armv6l GNU/Linux
【问题讨论】:
-
@Jealie 错误消息现在略有不同。它提到了 R-2.15 和其他未满足的依赖项。以下软件包具有未满足的依赖关系: r-base : Depends: r-base-core (>= 3.1.2-1~wheezycran3.0) 但要安装 2.15.1-4 r-recommended : Depends: r-base -core (>= 3.1.2-1~wheezycran3.0) 但要安装 2.15.1-4 取决于:r-cran-boot (>= 1.2.19) 但不会安装 取决于:r -cran-codetools 但它不会被安装 E: 无法纠正问题,你持有损坏的包。
-
@Jealie:首先感谢。
apt-key命令似乎运行了,但apt-get update; apt-get install r-base r-base-core r-recommended r-base-html r-doc-html仍然导致上述错误。 CRAN 页面也提到了一个被阻塞的端口,所以我会尝试... -
我还尝试解除对端口的阻塞(正如 CRAN 网站建议的那样),并在 this blog 之后添加密钥。还是没有成功……你还有什么想法吗?
标签: r raspberry-pi raspbian apt