Here it says that "typically, new versions of R are supported within three days of release." It's been more than a month now, and R 4.4.2 is still not working...
In Ubuntu, you can downgrade as follows. First, check which version of the package r-base-core
you need to install:
sudo apt-cache policy r-base-core
In my case, the output looks like this:
r-base-core:
Installed: 4.4.2-1.2404.0
Candidate: 4.4.2-1.2404.0
Version table:
*** 4.4.2-1.2404.0 500
500 https://cloud.r-project.org/bin/linux/ubuntu noble-cran40/ Packages
100 /var/lib/dpkg/status
4.4.1-3.2404.0 500
500 https://cloud.r-project.org/bin/linux/ubuntu noble-cran40/ Packages
4.4.1-1.2404.0 500
500 https://cloud.r-project.org/bin/linux/ubuntu noble-cran40/ Packages
4.4.0-2.2404.0 500
500 https://cloud.r-project.org/bin/linux/ubuntu noble-cran40/ Packages
4.3.3-2build2 500
500 http://ch.archive.ubuntu.com/ubuntu noble/universe amd64 Packages
I want to install version 4.4.1 which I do as follows:
sudo apt install r-base-core=4.4.1-3.2404.0
You might have other R-related packages installed like r-base
, r-recommended
, etc. If so, you will get a message similar to this one for each of those packages:
Depends: r-recommended (= 4.4.1-3.2404.0) but 4.4.2-1.2404.0 is to be installed
You will have to either add all of them to the installation command with the same version number,
sudo apt install r-base-core=4.4.1-3.2404.0 r-recommended=4.4.1-3.2404.0
or you can uninstall all those packages except for r-base-core
and only downgrade that one. Note that in that case you might need to install some missing packages inside R with install.packages()
.
I did this on Ubuntu 24.04 but I assume this will also work on older versions.