我对堆叠溢出很陌生,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应用程序时,我得到以下错误:
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.
我尝试过安装构建必需的程序,但是我收到了这样的警告/错误消息:
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,并且它是依赖的,直到我到达一个带有以下警告的死胡同:
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脚本中安装或包含任何标准库。
发布于 2016-11-06 19:33:21
最后,问题是我下载的Ubuntu映像被破坏了。我重新下载了它,问题就解决了。
发布于 2015-09-26 07:16:39
下面是我昨天在新鲜Ubuntu 15.04(Vivid)安装上安装R的步骤:
您可能需要用您的ubuntu替换生动的。
https://stackoverflow.com/questions/32798472
复制相似问题