2

我正在尝试在 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/sources.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

知道如何解决这个问题吗?

4

1 回答 1

3

我也做了 SECURE APT 的说明,但我仍然收到以下依赖错误:

以下软件包具有未满足的依赖关系: r-base-dev :依赖:r-base-core (>= 3.0.1-3lucid) 但不会安装 E:无法纠正问题,您持有损坏的软件包。

但后来我使用了不同的镜像(通过更改 /etc/apt/sources.list)它起作用了:

deb http://cran.mtu.edu/bin/linux/ubuntu precise/
于 2013-06-04T14:19:50.367 回答