首页
学习
活动
专区
圈层
工具
发布
首页
学习
活动
专区
圈层
工具
社区首页 >问答首页 >由于依赖关系,r-base-dev不会安装。

由于依赖关系,r-base-dev不会安装。
EN

Stack Overflow用户
提问于 2015-09-26 06:53:16
回答 2查看 1K关注 0票数 0

我对堆叠溢出很陌生,R和Ubuntu...here去了。我有一个windows机器运行一个带有Oracle VM虚拟盒的虚拟Ubuntu机器。我的Ubuntu是32位的,是作为一个关于数据挖掘课程的一部分安装的。

我正在尝试通过使用system命令来使word2vec.c和word2presase.c编译并在R中使用。我做了很多研究,发现windows机器上不支持p线程.h,所以我想我应该在Ubuntu虚拟机上安装R来解决这个问题。我遵循了在这里找到的Ubuntu上安装R的说明:http://sites.psu.edu/theubunturblog/installing-r-in-ubuntu/ --当我用sudo apt-get install r-base安装基本R包时,它工作得很好,但是当我尝试用sudo apt-get install r-base-dev安装r- base -dev应用程序时,我得到以下错误:

代码语言:javascript
运行
AI代码解释
复制
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-dev : Depends: build-essential but it is not going to be installed
              Depends: cdbs but it is not going to be installed
E: Unable to correct problems, you have held broken packages.

我尝试过安装构建必需的程序,但是我收到了这样的警告/错误消息:

代码语言:javascript
运行
AI代码解释
复制
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:
 build-essential : Depends: dpkg-dev (>= 1.13.5) but it is not going to be installed
E: Unable to correct problems, you have held broken packages.

我试着安装dpkg-dev,并且它是依赖的,直到我到达一个带有以下警告的死胡同:

代码语言:javascript
运行
AI代码解释
复制
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:
 dpkg-dev : Depends: libdpkg-perl (= 1.17.5ubuntu5) but 1.17.5ubuntu5.3 is to be installed
            Recommends: build-essential but it is not going to be installed
            Recommends: fakeroot but it is not going to be installed
            Recommends: libalgorithm-merge-perl but it is not going to be installed

这里似乎有一个循环逻辑,它推荐构建的本质,但是我试图安装libdpkg-perl,这样我就可以安装构建必需的.我一定在这里遗漏了什么,请帮助!

我已经读够了,知道我需要R开发工具包在R中使用install.packages,所以如果我不能解决这个问题,我将无法在我的R脚本中安装或包含任何标准库。

EN

回答 2

Stack Overflow用户

回答已采纳

发布于 2016-11-06 19:33:21

最后,问题是我下载的Ubuntu映像被破坏了。我重新下载了它,问题就解决了。

票数 2
EN

Stack Overflow用户

发布于 2015-09-26 07:16:39

下面是我昨天在新鲜Ubuntu 15.04(Vivid)安装上安装R的步骤:

  1. sudo sh -c 'echo "deb http://cran.rstudio.com/bin/linux/ubuntu 生动的/“>> /etc/apt/sudo.sudo‘
  2. sudo apt-key adv --keyserver keyserver.ubuntu.com -recv-key E084DAB9
  3. sudo apt-get update
  4. sudo apt-获取安装r-base
  5. sudo apt-get install r-base-dev

您可能需要用您的ubuntu替换生动的

票数 0
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/32798472

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档