gui@pcgui:~$ 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.5.1-1bionic) but it is not going to be installed Depends: r-recommended (= 3.5.1-1bionic) 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.
Я не делаю, что сделать.
и, я нашел решение, которому не удалось помочь мне, если я ввел
gui@pcgui:~/Downloads$ sudo apt install r-base-core 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-core : Depends: libblas3 but it is not installable or libblas.so.3 but it is not installable Depends: libcurl4 (>= 7.28.0) but it is not installable Depends: liblapack3 but it is not installable or liblapack.so.3 but it is not installable Depends: libtcl8.6 (>= 8.6.0) but it is not installable Depends: libtk8.6 (>= 8.6.0) but it is not installable Recommends: r-recommended but it is not going to be installed Recommends: r-base-dev but it is not going to be installed Recommends: r-doc-html but it is not going to be installed E: Unable to correct problems, you have held broken packages.
и для последнего я встретился с ситуацией, которая спросила меня [Y/n], и я ввел Y, и это прервалось.
Я получал подобное сообщение при попытке установить 3.5.2 более чем 3.4.4. Я имел к
sudo nano /etc/apt/sources.list`
Then added a # to the line
deb https://cloud.r-project.org/bin/linux/ubuntu xenial-cran35/
Затем, я добавил новую строку',
deb https://cloud.r-project.org/bin/linux/ubuntu bionic-cran35/
Затем я сохранил это и выполнил следующий
sudo apt-get clean
sudo apt-get update
sudo apt-get install r-base r-recommended r-cran-*
, Который, кажется, устранил одну из проблем, которые я имел, но у меня все еще есть установка проблемы libxml2-dev в R.