1

I try to install R 4.2.2 but it is able to install only 4.2.1.

The following packages have unmet dependencies: r-base-core : Depends: libicu70 (>= 70.1-1~) but it is not installable Recommends: r-doc-html but it is not going to be installed E: Unable to correct problems, you have held broken packages.

I have

libicu-dev is already the newest version (71.1-3ubuntu1).

Could be that is not yet supported for 22.10? or is there any turnaround to install it?

Thanks

Emma Athan
  • 329
  • 1
  • 2
  • 9
  • 1
    What exactly did you run to install it? – MrFlick Jan 27 '23 at 18:10
  • Generally one is suppose to update ones Linux installation before installing new packages. – IRTFM Jan 27 '23 at 18:54
  • 2
    I'm not quite sure of the status of 22.10, though. https://cran.r-project.org/bin/linux/ubuntu/ only lists up to 22.04. Maybe 22.10/Kinetic Kudu is included in the repo but the web page hasn't been updated ... ?? – Ben Bolker Jan 27 '23 at 19:11
  • FWIW, Conda Forge distributes R 4.2.2. Works perfectly fine on an `ubuntu:22.10` Docker container, installed via Micromamba. Similar to `c2d4u`, all Conda Forge R package builds are precompiled (fast installs) and pull in their non-R dependencies. – merv Jan 27 '23 at 20:24
  • @IRTFM --- it is a fresh OS installation and all updates/upgrades were done before start installing any extra tool/packages, thanks – Emma Athan Jan 28 '23 at 17:58
  • https://stackoverflow.com/questions/31893876/how-to-install-libicu-dev-on-ubuntu – IRTFM Jan 28 '23 at 18:07

1 Answers1

3

I am running ubuntu 22.10 and had the same problem. I have solved it via:

wget http://ftp.osuosl.org/pub/ubuntu/pool/main/i/icu/libicu70_70.1-2_amd64.deb
sudo dpkg -i libicu70_70.1-2_amd64.deb

then this will work:

sudo apt-get install r-base-core
de_chris
  • 116
  • 1
  • 4