Installing r-base; Depenency: r-recommended missing?

对着背影说爱祢 提交于 2020-08-06 10:51:50

问题


Hello I am trying to install r-base for Ubuntu 16.04.

I have followed the steps at https://cran.r-project.org/bin/linux/ubuntu/README.html

However I am getting a 'unmet dependencies' error when I run sudo apt-get install r-base

The following packages have unmet dependencies: r-base : Depends: r-recommended (= 3.4.4-1xenial0) but it is not going to be installed

E: Unable to correct problems, you have held broken packages.

Any ideas for getting around this? Thanks in advance!


回答1:


Running the following commands seems to have solved my problem:

sudo apt --fix-broken install
sudo apt-get update
sudo apt-get upgrade



回答2:


Running the following fixed it for me, but this solution uses r-base-dev not r-base (r-base still didn't work).

sudo apt --fix-broken install
sudo apt autoremove
sudo apt-get update
sudo apt-get upgrade
sudo apt-get install r-base-dev

Make sure to check in the software and properties that if your restricted and universe repositories are enabled. Here's a link with more information.



来源:https://stackoverflow.com/questions/52086958/installing-r-base-depenency-r-recommended-missing

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!