无法在 ubuntu 14.04 LTS 上安装 r-base

无法在 ubuntu 14.04 LTS 上安装 r-base

通过删除以前版本的 r(3.0.2)来安装较新的最新版本的 r 时,我遇到了以下问题。

anupam :~$ 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.3.20150410-1trusty) but it is not going to be installed
          Depends: r-recommended (= 3.1.3.20150410-1trusty) 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.

我已经看过得票最多的答案在 ubuntu 上安装最新版本的 R,,

我也尝试过安装它aptitude...但没有成功,我sudo apt-get autoclean也尝试过...我该如何解决这个问题?

答案1

由于您有信任(14.04)而不是精确(12.04),所以

deb http://cran.rstudio.com/bin/linux/ubuntu precise/需要是
deb http://cran.rstudio.com/bin/linux/ubuntu trusty/

更改该行,然后运行
sudo apt-get update
sudo apt-get install r-base

相关内容