问题:我正在尝试安装新版本的 R,但无论我找到什么解决方案仍然会出现以下错误:
The following packages have unmet dependencies:
r-base : Depends: r-base-core (>= 3.2.3-1vivid0) but it is not going to be installed
Depends: r-recommended (= 3.2.3-1vivid0) but it is not going to be installed
Recommends: r-base-html but it is not going to be installed
r-base-dev : Depends: r-base-core (>= 3.2.3-1vivid0) but it is not going to be installed
E: Unable to correct problems, you have held broken packages.
我尝试过但没有帮助的方法:
使用
aptitute
而不是apt-get
;更改存储库
sudo add-apt-repository ppa:marutter/rrutter
有人能帮帮我吗?我在网上搜索了好久,还是没找到任何东西。
先感谢您!
答案1
您有较旧版本的R
或其依赖项。因此较新版本存在冲突。请删除它们并重试。
这应该可以解决你的问题。