我跟着这篇帖子在 Ask Ubuntu 上安装 R 4.0,但在最后一步
sudo apt 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 (>= 4.0.3-1.1804.0) but it is not going to be installed
Depends: r-recommended (= 4.0.3-1.1804.0) 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
解决这个问题最简单的方法是安装 aptitude,它会尝试解决冲突。请参阅此问题的答案,回答存在包裹破损问题。