Hello everyone, I have some trouble upgrading R to version R-4.0 and surprisingly there are no subjects on that topic.
I have tried two methods, which both failed.
Command line:
sudo apt upgrade r-base r-base-dev
[sudo] password for usr:
Reading package lists... Done
Building dependency tree
Reading state information... Done
Calculating upgrade... 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 (>= 4.0.2-1.1804.0) but 3.6.3-2 is to be installed
Depends: r-recommended (= 4.0.2-1.1804.0) but 3.6.3-2 is to be installed
r-base-dev : Depends: r-base-core (>= 4.0.2-1.1804.0) but 3.6.3-2 is to be installed
E: Broken packages
With downloaded packages, in the R-4.0.2 folder.
./configure
(lots of positive checks)
checking for X... no
configure: error: --with-x=yes (default) and X11 headers/libs are not available
make
make: *** No targets specified and no makefile found. Stop.
That is not a command, that is an entry you have to add to your source list file, read the instructions again more carefully or follow the blog post cderv mentioned.
BTW this is the one you want to use since you are on Ubuntu 20
deb https://cloud.r-project.org/bin/linux/ubuntu focal-cran40/