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?
apt
is a deb package command and is used by 22.04, but not Ubuntu Core 22. 22 or year format products of Ubuntu are different systems to those using the year.month format. If you're using Ubuntu 22.04 please state it, and don't mix in different product/system details such as 22 (year format releases of Ubuntu have existed since 2016). Are you asking about Ubuntu Core 22? or Ubuntu 22.04 LTS as you use both.