error when installing r on linux

This is my startup problem, can someone help?

R Session Startup Failure Report

RStudio Version

RStudio 2024.12.0+467 "Kousa Dogwood " (cf37a3e5, 2024-12-11) for Ubuntu Jammy

Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) rstudio/2024.12.0+467 Chrome/126.0.6478.234 Electron/31.7.6 Safari/537.36

Error message

[No error available]

Process Output

The R session exited with code 127.

Error output:

/usr/lib/rstudio/resources/app/bin/rsession: error while loading shared libraries: libssl.so.3: cannot open shared object file: No such file or directory

Standard output:

[No output emitted]

Logs

Log File

[No logs available]

Based on your error I suspect you may be installing RStudio for the wrong OS version.

Can you please check the output of

cat /etc/os-release 

and see if it really says (amongst other things) UBUNTU_CODENAME=jammy ? If not, I would recommend downloading the respective DEB package for your linux distribution which should fix the issue.

Do you have the libssl-dev system package installed?