I am using aarch64 Ubuntu 22.04.1 LTS (jammy), and the default R for the systemis R version 4.1.2 (2021-11-01) -- "Bird Hippie". I tried to upgrade R to thelatest version of 4.2.1 by exactly following the instruction from Ubuntu Packages For R - Brief Instructions without any luck.
The error message I got is:
$ sudo apt-get install --no-install-recommends r-base The following packages have unmet dependencies: r-base : Depends: r-base-core (>= 4.2.1-2.2204.0) but 4.1.2-1ubuntu2 is to be installed Depends: r-recommended (= 4.2.1-2.2204.0) but 4.1.2-1ubuntu2 is to be installed E: Unable to correct problems, you have held broken packages.
I tried to use --only-upgrade
option and it's not working:
$ sudo apt-get install --only-upgrade r-baseThe following packages have unmet dependencies: r-base : Depends: r-base-core (>= 4.2.1-2.2204.0) but 4.1.2-1ubuntu2 is to be installed Depends: r-recommended (= 4.2.1-2.2204.0) but 4.1.2-1ubuntu2 is to be installed Recommends: r-base-html but it is not going to be installed Recommends: r-doc-html but it is not going to be installedE: Unable to correct problems, you have held broken packages.
I tried to remove the 4.1.2 version and install 4.2.1 from scratch:
$ sudo apt-get purge r-base* r-recommended r-cran-*$ sudo apt update$ sudo apt autoremove$ sudo apt-get install --no-install-recommends r-base The following packages have unmet dependencies: r-base : Depends: r-base-core (>= 4.2.1-2.2204.0) but it is not going to be installed Depends: r-recommended (= 4.2.1-2.2204.0) but it is not going to be installed
However, when I tried to upgrade R from 4.1.2 to 4.2.1 on AMD64 ARM64 (typo corrected as indicated in the comments below) Ubuntu 22.04.1 LTS (jammy), all commands above worked. Could it be the R binary builds under amd64 arm64 (aarch64) repo jammy-cran have broken dependencies? Anyone else had the same issue? Should a bug report be submitted? Thanks in advance.