我正在尝试从以下站点的终端安装 R: https://www.r-bloggers.com/how-to-install-r-on-linux-ubuntu-16-04-xenial-xerus/
当我执行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.3.2-1xenial0) but it is not going to be installed
Depends: r-recommended (= 3.3.2-1xenial0) 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.
最佳答案
将另外两个添加到命令中,并查看它生成的错误,即 do
sudo apt-get install r-base r-base-core r-recommended
您可能安装了一些有冲突的东西。我们中的许多人(我的意思是数千)都很好地运行这些软件包。
您还可以考虑 r-sig-debian 邮件列表。
关于r - 如何通过终端在 ubuntu 16.10 上安装 R?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/40596494/