I have tried every conceivable way of installing R on this server and it will not work all I get is the below error. I realize this has been posted a few times but none of the approved answers work for me. I'm new to ubuntu so please help. This is very frustrating.
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-3bionic) but it is not going to be installed
Depends: r-recommended (= 3.6.1-3bionic) 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.
I then tried to manually install r-base-core and got
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: libc6 (>= 2.27) but 2.23-0ubuntu11 is to be
installed
Depends: libcurl4 (>= 7.28.0) but it is not installable
Depends: libicu60 (>= 60.1-1~) but it is not installable
Depends: libreadline7 (>= 6.0) but it is not installable
Recommends: r-base-dev but it is not going to be installed
E: Unable to correct problems, you have held broken packages.
I then tried tried to install libcurl4 and got
Package libcurl4 is not available, but is referred to by another package.
This may mean that the package is missing, has been obsoleted, or
is only available from another source.
The other packages produce identical errors.
Again please keep it in layman's terms I'm well out of my depth.
sudo apt -f install
thensudo apt-get install libc6 libcurl4 libicu60-dev libreadline7
. It solved my issue on 16.04 when it failed to download certain packages.apt-cache policy
andapt-cache madison
and how updates are pushed into newer releases of Ubuntu (not older releases).