У меня есть устанавливающее последнее обновление R в человечности (18.04). Я посмотрел на такое количество предыдущих предложений, но не способный решить вопрос. Я все еще пробую, любая справка или предложение будут большими.
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
Вы пытаетесь установить 19.04 (disco
) версия r-base
пока Вы используете 18.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