我正在尝试升级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-recommended (= 3.0.2-1ubuntu1) but 3.3.3-1trusty0 is to be installed
E: Unable to correct problems, you have held broken packages.
正如消息所述,我已成功安装r-recommended
到最新版本。但错误仍然存在。
有人能帮我理解“但 3.3.3-1trusty0 需要安装”是什么意思吗?我如何知道哪些软件包损坏了(如果有的话)?
dpkg 损坏的软件包搜索
我尝试了以下操作,输出如下所示:
dpkg -l | grep "r-base"
ii libgcr-base-3-1:amd64 3.10.1-1 amd64 Library for Crypto related tasks
ii r-base-core 3.3.3-1trusty0 amd64 GNU R core of statistical computation and graphics system
ii r-base-dev 3.3.3-1trusty0 all GNU R installation of auxiliary GNU R packages
ii r-base-html 3.0.2-1ubuntu1 all GNU R html docs for statistical computing system functions
dpkg 系统不会将列出的软件包或任何其他从中返回的软件包标记dpkg -l
为损坏。我运行了
dpkg -l | grep ^..r
没有匹配。