Removing R completely - r

It would be nice if someone could help.
(base) shazia#shazia-Lin:~$ sudo apt-get remove r-base
Reading package lists... Done
Building dependency tree
Reading state information... Done
You might want to run 'apt --fix-broken install' to correct these.
The following packages have unmet dependencies:
nvidia-cuda-toolkit : Depends: nvidia-cuda-dev (= 9.1.85-3ubuntu1) but it is not going to be installed
E: Unmet dependencies. Try 'apt --fix-broken install' with no packages (or specify a solution).

Related

tons of `*ubuntu1` packages causing "you have held broken packages" errors

For some reason, most of the installed packages on my 20.04 system seem to have this *ubuntu1 appended to the name (eg. liblzma5/5.2.4-1ubuntu1 below).
What does ubuntu1 and how can replace all these with the real ones (eg liblzma5/5.2.4-1) so that I can install stuff like r-base-devel.
au#s2:/pool1/unshared/Active_Project_Backup/DURIAN/DURIAN$ sudo apt-get install r-base-dev
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-dev : Depends: libjpeg-dev
Depends: liblzma-dev but it is not going to be installed
E: Unable to correct problems, you have held broken packages.
au#s2:/pool1/unshared/Active_Project_Backup/DURIAN/DURIAN$ sudo apt-get install liblzma-dev
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:
liblzma-dev : Depends: liblzma5 (= 5.2.4-1) but 5.2.4-1ubuntu1 is to be installed
E: Unable to correct problems, you have held broken packages.

Completely remove R and its files in Linux mint

I was having trouble with R packages so I decided to uninstall to do fresh install. Now I cannot even re-install R. I am using Linux Mint. what I did is:
Removed all directories found with .libPaths()
And in the terminal:
sudo apt-get remove r-base-core
sudo apt-get remove r-base
sudo apt-get autoremove
Now when I try to install R following https://cran.r-project.org/ tutorial, I get many errors:
sudo apt update -qq
E: The repository 'https://cloud.r-project.org/bin/linux/ubuntu una-cran40/ Release' does not have a Release file.
apt install --no-install-recommends 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-recommended (= 3.6.3-2) but it is not going to be installed
E: Unable to correct problems, you have held broken packages.
apt install r-recommended
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-recommended : Depends: r-cran-foreign (>= 0.7-2) but it is not going to be installed
E: Unable to correct problems, you have held broken packages.
apt install r-cran-foreign
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-cran-foreign : Depends: r-base-core (>= 4.0.0-1.2004.0) but 3.6.3-2 is to be installed
Depends: r-api-4.0 but it is not installable
E: Unable to correct problems, you have held broken packages.

R package install fail on Ubuntu 21.04

After following this successfully and getting Kick Things in, I get this on my Ubuntu 21.04
> sudo apt install --no-install-recommends r-cran-rstan
Reading package lists... Done
Building dependency tree... Done
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-cran-v8 : Depends: libnode64 but it is not installable
E: Unable to correct problems, you have held broken packages.
> sudo apt install --no-install-recommends r-cran-tidyverse
Reading package lists... Done
Building dependency tree... Done
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-cran-stringi : Depends: libicu66 (>= 66.1-1~) but it is not installable
E: Unable to correct problems, you have held broken packages.
BTW, I did the change to focal trick suggested for c2d4u.

Install Meson and Ninja (one removes the other)

I want to install jsoncpp
Instructions to reproduce:
Install both meson (which requires Python3) and ninja.
When I run sudo apt-get install meson ninja I get the following results:
$ sudo apt-get install meson ninja
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:
meson : Depends: ninja-build but it is not going to be installed
E: Unable to correct problems, you have held broken packages.
I am trying to install ninja which removes meson, and installing meson removes ninja, with the above error. Does anyone know what to do about this?
The correct Debian package for the ninja build system is ninja-build.
sudo apt-get install meson ninja-build

Problems installing R base

I keep getting this error when trying to install 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.2.0-3trusty) but it is not going to be installed
Depends: r-recommended (= 3.2.0-3trusty) 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.
Any one knows how to solve this?
Try installing all at once
sudo apt-get install r-base r-base-core r-recommended r-base-html
but from your description is not clear how you manage to get into this situation in the first place. This should not happen under normal use.

Resources