在通过删除以前版本的 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
过..我怎么能解决这个问题??
由于您有可信赖的(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
.