接收“未满足的依赖"在 Ubuntu 14.10 上安装 r-base 时 [英] Receiving "Unmet dependency" while installing r-base on Ubuntu 14.10

查看:30
本文介绍了接收“未满足的依赖"在 Ubuntu 14.10 上安装 r-base 时的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试在 Ubuntu 14.10 上安装 R

I am trying to install R on Ubuntu 14.10

当我发出下载 r-base 的命令时,出现以下错误

When I am giving the command to download r-base, I get the following error

roy@laptop:~$ sudo apt-get install r-base
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.1.2-1precise0) but it is not going to be installed
          Depends: r-recommended (= 3.1.2-1precise0) 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.

我能做什么?我发现添加稀有的 backports 会有所帮助.我尝试了几台服务器,但我收到了 404.

What can I do? I found adding backports of raring could help. I tried several servers, but I'm getting a 404.

这是我在/etc/apt/sources.list 中带来的以下更改

Here are the following changes I brought in /etc/apt/sources.list

## R
deb http://cran.cnr.Berkeley.edu/bin/linux/ubuntu precise/



## Raring backports
deb http://us.archive.ubuntu.com/ubuntu/ raring-backports main restricted universe multiverse
deb-src http://us.archive.ubuntu.com/ubuntu/ raring-backports main restricted universe multiverse

推荐答案

第一步:

您可以在/etc/apt/sources.list 文件中使用以下任何一项来获取 R 的最新副本,将 替换为实际您最喜欢的 CRAN 镜像的 URL.有关列表,请参阅 http://cran.r-project.org/mirrors.htmlCRAN 镜子.

You can use any of the below in your /etc/apt/sources.list file to get the latest copy of R, replace <my.favorite.cran.mirror> by the actual URL of your favorite CRAN mirror. See http://cran.r-project.org/mirrors.html for the list of CRAN mirrors.

deb http://<my.favorite.cran.mirror>/bin/linux/ubuntu utopic/
or
deb http://<my.favorite.cran.mirror>/bin/linux/ubuntu trusty/
or
deb http://<my.favorite.cran.mirror>/bin/linux/ubuntu precise/
or
deb http://<my.favorite.cran.mirror>/bin/linux/ubuntu lucid/

第 2 步:

要安装完整的 R 系统,请在命令行中使用以下命令:

To install the complete R system, use below on command line:

sudo apt-key adv --keyserver keyserver.ubuntu.com --recv-keys E084DAB9
sudo add-apt-repository ppa:marutter/rdev
sudo apt-get update
sudo apt-get upgrade
sudo apt-get install r-base

有关详细说明,请按照链接 here 中给出的步骤操作

For a detailed instruction, please follow the steps given in the link here!

这篇关于接收“未满足的依赖"在 Ubuntu 14.10 上安装 r-base 时的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆