Search code examples
rubunturstudio

Installing R Studio on Ubuntu 22.04


I installed Ubuntu 22.04 and R. Now I'm trying to install R Studio.

After download it I tried to install with

sudo gdebi rstudio-2022.02.1-461-amd64.deb

But I received the message

Dependency is not satisfiable: libssl1.0.0|libssl1.0.2|libssl1.1

Is there any way to work around it?


Solution

  • Edit #1: I've solved the dependency problem by going to https://packages.debian.org/bullseye/amd64/libssl1.1/download and installing 'libssl1.1' from there. Unfortunately, I've encountered another problem; I'll post another edit as soon as I've solved it, or if I've given up on trying to solve it.

    Edit #2: I've solved the aforementioned problem by running rstudio --no-sandbox to open RStudio.

    My Original Answer:

    This isn't a solution, but I have the same problem. I was missing 'libclang-dev' and 'libpq5' as well, but I was able to get them via sudo apt install. I couldn't get 'libssl1.1', however:

    Package libssl1.1 is not available, but is referred to by another package.
    This may mean that the package is missing, has been obsoleted, or
    is only available from another source
    
    E: Package 'libssl1.1' has no installation candidate
    

    I tried 'libssl1.0.2' and 'libssl1.0.0' as well, but got the same result. After doing some research and trying out different things, I found that I have 'libssl3'; I suspect that having a more recent version of 'libssl' is related to the problem, but I'm not an expert on this stuff and it could just be a stupid guess for all I know.

    Also, when I run sudo apt install -f ./rstudio-2022.02.1-461-amd64.deb, I get:

    The following packages have unmet dependencies.
     rstudio : Depends: libssl1.0.0 but it is not installable or
                        libssl1.0.2 but it is not installable or
                        libssl1.1 but it is not installable
    E: Unable to correct problems, you have held broken packages.
    

    I initially ran sudo dpkg -i rstudio-2022.02.1-461-amd64.deb, and I had to run sudo apt --fix-broken install afterwards; it was after then that I tried and successfully installed the two other missing packages. Yep, I basically don't know what I'm doing and I just try solving these technological problems through trial and error, although I've almost never been as stumped as I am now.