我是 Linux 新手,尝试在我的 Raspberry 上安装最新的 R 版本。
我的 Raspberry 在 Wheezy 7.8 上运行。
我按照指示操作on CRAN http://cran.r-project.org/bin/linux/debian/, so I
- added
deb http://cran.rstudio.com/bin/linux/debian wheezy-cran3/
to /etc/apt/sources.list
- ran
apt-get update
这是成功的,并且只给了我一个公钥的“签名错误”,正如 CRAN 网站上指出的那样
- ran
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*。
我确实浏览了网络,但找不到针对我的具体问题的任何有用的提示,因此我感谢您为我提供的任何支持。
Thanks!
如果有任何用处:apt-cache policy r-base
gives
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
gives
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
gives
Linux raspberrypi 3.18.5+ #744 PREEMPT Fri Jan 30 18:19:07 GMT 2015 armv6l GNU/Linux