我很高兴听到R开发人员最终通过他们的CRAN镜像发布了R 3.5并决定立即安装它。我添加了CRAN网站中提到的必需的PPA,deb https://<my.favorite.cran.mirror>/bin/linux/ubuntu bionic-cran35/
但是在运行命令后sudo apt-get update
,我发现了以下警告。
expected bionic-cran35/ but got bionic
屏幕截图附在此处,以使内容更加清晰。 R_Bionic_installation_error
我太乐观了,继续执行下一个代码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.5.0-1bionic) but it is not going to be installed
E: Unable to correct problems, you have held broken packages.
值得一提的是,这不是与APT有关的安全问题,我已经添加了必需的apt-key。另外,我的系统上没有任何先前的R安装,我在那里需要更新的版本(《 Bionic Universe》中的R仍为3.4.4)。
我想念什么吗?
更新:该错误已由Michael Rutter及其Debian团队修复。非常感谢参与其中的每个人。
W: Conflicting distribution: http://cloud.r-project.org/bin/linux/ubuntu bionic-cran35/ InRelease (expected bionic-cran35/ but got bionic)
在安装过程中将两个问题告知他-警告和依赖问题r-base
。作为临时解决方案,您可以按照此答案中的说明使用marter PPA 。
sudo apt-get install r-base
代码安装基本R。