我正在尝试在ubuntu中安装R,但遇到了以下错误:
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.0.0-2lucid) but it is not going to be installed
Depends: r-recommended (= 3.0.0-2lucid) 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.
在执行此操作之前,我还将此行添加到/etc/apt/Soures.list
# added from cran.cnr.berkley.edu for R
deb http://cran.cnr.berkeley.edu/bin/linux/ubuntu lucid/
但是当我尝试更新时,我收到了一个身份验证错误:
...
Reading package lists... Done
W: GPG error: http://cran.cnr.berkeley.edu lucid/ Release: The following signatures couldn't be verified because the public key is not available: NO_PUBKEY 51716619E084DAB9
你知道怎么解决这个问题吗?
发布于 2013-06-04 14:19:50
我也执行了SECURE APT的说明,但仍然得到以下依赖错误:
以下软件包具有未满足的依赖项: r-base-dev : Depends: r-base-core (>= 3.0.1-3lucid),但它不会被安装E:无法更正问题,您持有损坏的软件包。
但后来我使用了不同的镜像(通过更改/etc/apt/Soures.list),它起作用了:
deb http://cran.mtu.edu/bin/linux/ubuntu precise/
https://stackoverflow.com/questions/16600593
复制