Я хочу смочь установить последний стабильный выпуск R для Ubuntu 18.04, мне установили версию человечности и таким образом, я удалил его и затем следовал нескольким руководствам как в этой ссылке.
Независимо от того, что я делаю я получаю следующий вывод когда я проблема a sudo apt-get install r-base
:
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 (>= 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 update
и т.д.)
Для любого, который испытывает ту же проблему, я нашел решение в: Не удалось установить R 3.5.0 в Ubuntu Бионический Бобр (18.04)
я просто дал эти команды в порядке и затем смог установить:
deb https://cloud.r-project.org/bin/linux/ubuntu bionic-cran35/
от /etc/apt/sources.list
sudo apt-get autoremove
sudo apt-get update
sudo apt-get upgrade
deb https://cloud.r-project.org/bin/linux/ubuntu bionic-cran35/
к /etc/apt/sources.list
sudo apt-get update
sudo apt-get install r-base
, И это было ею (установил R 3.6.1).
Это решение сработало для меня: https://linuxize.com/post/how-to-install-r-on-ubuntu-18-04/
sudo apt install apt-transport-https software-properties-common
sudo apt-key adv --keyserver keyserver.ubuntu.com --recv -keys E298A3A825C0D65DFD57CBB651716619E084DAB9
sudo add-apt-repository 'deb https://cloud.r-project.org/bin/linux/ubuntu bionic-cran35 /'
sudo apt update
sudo apt install r-base
R --version