Warning: file_get_contents(/data/phpspider/zhask/data//catemap/4/r/70.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
在ubuntu中安装R_R_Ubuntu_Apt Get - Fatal编程技术网

在ubuntu中安装R

在ubuntu中安装R,r,ubuntu,apt-get,R,Ubuntu,Apt Get,我试图在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 unstab

我试图在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

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

我也做了有关安全APT的说明,但仍然得到以下依赖项错误:

以下包具有未满足的依赖项: r-base-dev:dependens:r-base-core(>=3.0.1-3lucid),但它不会被安装 E:无法纠正问题,您持有的是破损的包裹

但后来我使用了一个不同的镜像(通过更改/etc/apt/sources.list),它可以工作:

deb http://cran.mtu.edu/bin/linux/ubuntu precise/

您是否遵循了中的说明?底部的“警告”也与上面的“错误”有关。你的软件包有问题,简单明了。谢谢,现在我做了安全的APT:sudo APT key adv--keyserver keyserver.ubuntu.com--recv keys E084DAB9,但是当我尝试安装r-base时,我仍然面临着完全相同的问题。我如何才能找到有关此问题的更多信息?您是否执行了$sudo apt get update以刷新新存储库的包索引?是的,我执行了,但安装r-base仍然没有成功!当我在/etc/apt/source.list的末尾附加deb“precise”时,我得到以下错误:“E:source list/etc/apt/sources.list(dist parse)中格式错误的第59行E:sources列表无法读取。”。与trusty(我在14.04)一样,您在精确后缺少“/”