尝试升级 R,错误消息指“未满足的依赖关系”

尝试升级 R,错误消息指“未满足的依赖关系”

我尝试按照这篇文章中的说明进行操作安装最新版本的 R-base在几个简单的技术都无法升级我的 R(停留在 3.0.2)之后。一切似乎都正常,直到最后一条指令:sudo apt-get install r-base,它导致了以下消息:

ubuntu@ip-10-0-1-108:/srv/shiny-server/atomic_junctions$ 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.2-1precise0) but it is not going to be installed
          Depends: r-recommended (= 3.2.2-1precise0) 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.

我以为这意味着我需要安装上述依赖项。我不断收到与一个包需要另一个包相关的错误,直到我尝试这样做时放弃了:

sudo apt-get install r-base r-base-core r-recommended r-base-html r-base-dev

仍然会导致错误:

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-core : Depends: libtiff4 but it is not installable
E: Unable to correct problems, you have held broken packages.

所以现在我根本没有安装 R。我需要升级,因为我正在使用的某些软件包不适用于这个旧版本的 R。任何帮助/建议都将不胜感激。谢谢。

答案1

对我来说,答案是尝试另一个 R 镜像站点。出于某种原因,原始站点从未工作过,错误消息也没有表明这是问题所在。

相关内容