无法使用 sudo apt-get install r-base 安装 R

无法使用 sudo apt-get install r-base 安装 R

当我尝试使用安装 R 时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.2.1-4vivid0) but it is not going        
to be installed
      Depends: r-recommended (= 3.2.1-4vivid0) 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.

答案1

我有同样的问题,要修复它使用

http://<my.favorite.cran.mirror>/bin/linux/Ubuntu 值得信赖/

在源列表中。

答案2

您似乎有一些软件包处于搁置状态。此命令应升级您的软件包R并带来新的依赖项:

sudo apt-get upgrade --with-new-pkgs

相关内容