I have just installed ubuntu 22.04. I could install R with sudo apt -y install r-base gdebi-core
:
$ R
R version 4.1.2 (2021-11-01) -- "Bird Hippie"
Copyright (C) 2021 The R Foundation for Statistical Computing
Platform: x86_64-pc-linux-gnu (64-bit)
But when I try to install Rstudio from the downloaded file I get:
$ sudo gdebi rstudio-2022.02.1-461-amd64.deb
[sudo] password for gigiux:
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
Reading state information... Done
This package is uninstallable
Dependency is not satisfiable: libssl1.0.0|libssl1.0.2|libssl1.1
It is weird that a popular deb file misses a basic library, plus:
$ sudo apt install libssl1.1
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
E: Unable to locate package libssl1.1
E: Couldn't find any package by glob 'libssl1.1'
What is the correct procedure to install R and R studio on Ubuntu 22.04?