I am trying to install R in ubuntu, but faced the following error:
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.0.0-2lucid) but it is not going to be installed
Depends: r-recommended (= 3.0.0-2lucid) 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.
Before doing this, I also added this line to /etc/apt/sources.list
# added from cran.cnr.berkley.edu for R
deb http://cran.cnr.berkeley.edu/bin/linux/ubuntu lucid/
But when I tried to update, I received an authentication error:
...
Reading package lists... Done
W: GPG error: http://cran.cnr.berkeley.edu lucid/ Release: The following signatures couldn't be verified because the public key is not available: NO_PUBKEY 51716619E084DAB9
Any idea how to solve this issue?
I also did the instructions for SECURE APT, but still I get the following dependency error:
The following packages have unmet dependencies:
r-base-dev : Depends: r-base-core (>= 3.0.1-3lucid) but it is not going to be installed
E: Unable to correct problems, you have held broken packages.
But then I used a different mirror (by changing /etc/apt/sources.list) it worked:
deb http://cran.mtu.edu/bin/linux/ubuntu precise/
Related
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.
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.
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.
I am trying to install MariaDB in WSL2, but it's showing me the following errors -
sachinpandeyatd#DESKTOP-Q3O2EQE:/mnt/c/Users/Hp/documents/server$ sudo apt-get install mariadb-server
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:
mariadb-server : Depends: mariadb-server-10.3 (>= 1:10.3.29-0ubuntu0.20.04.1) but it is not going to be installed
E: Unable to correct problems, you have held broken packages.
I'd be very grateful if anyone can resolve my error!!
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.