我正在 ubuntu (18.04) 中安装 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.6.1-3disco) but it is not going to be installed
Depends: r-recommended (= 3.6.1-3disco) 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.
apt-cache policy r-base
屈服:
r-base:
Installed: (none)
Candidate: 3.6.1-3disco
Version table:
3.6.1-3disco 500
500 https://cloud.r-project.org/bin/linux/ubuntu disco-cran35/
Packages
3.6.1-1disco 500
500 https://cloud.r-project.org/bin/linux/ubuntu disco-cran35/
Packages
3.6.0-2disco 500
500 https://cloud.r-project.org/bin/linux/ubuntu disco-cran35/
Packages
3.6.0-1disco 500
500 https://cloud.r-project.org/bin/linux/ubuntu disco-cran35/
Packages
3.5.3.20190412-1~ubuntu18.04.1~ppa1 500
500 http://ppa.launchpad.net/marutter/rdev/ubuntu bionic/main amd64
Packages
500 http://ppa.launchpad.net/marutter/rdev/ubuntu bionic/main i386
Packages
3.4.4-1ubuntu1 500
500 http://in.archive.ubuntu.com/ubuntu bionic/universe amd64 Packages
500 http://in.archive.ubuntu.com/ubuntu bionic/universe i386 Packages
您在使用 18.04 ( )disco
的r-base
同时尝试安装 19.04 ( ) 版本bionic
,这就是它抛出错误的原因。
您必须删除disco
存储库。
sudo add-apt-repository --remove 'deb https://cloud.r-project.org/bin/linux/ubuntu disco-cran35/'
然后将其替换bionic
为与您当前系统兼容的。
sudo add-apt-repository 'deb https://cloud.r-project.org/bin/linux/ubuntu bionic-cran35/'
sudo apt-key adv --keyserver keyserver.ubuntu.com --recv-keys E298A3A825C0D65DFD57CBB651716619E084DAB9
sudo apt-get update
sudo apt-get install r-base
本文收集自互联网,转载请注明来源。
如有侵权,请联系 [email protected] 删除。
我来说两句