Rstudio Not Working on Ubuntu 18.04 -- libssl.so.1.0.2: No such file or directory

Hello

My version of R is 3.6.0 and it works on my Ubuntu 18.04.
But I need Rstudio.

After installing Rstudio version 1.3.235 on Ubuntu 18.04, I give the "rstudio" command and I get:

rstudio: error while loading shared libraries: libssl.so.1.0.2: cannot open shared object file: No such file or directory

I read several forums on this, for days now. I cannot find a solution.

[ FYI I also tried installing older versions of Rstudio taken from the Rstudio web site. Some of them do not install at all: even though the installation window reaches 100 percent, the "rstudio" command gives "command not found". One older version (1.2.1335) does install, but then I get an "Unpublished" error or something similar ]

I understand that the "libssl not found" error might be related to a path problem of that library, if it is looking for that file in usr/bin and instead it is in another folder.

But I would need to know

  1. in which folder is the rstudio script mentioning that path
  2. in which script file
  3. which folder has the libssl library, so I can correct it in the script

But this is just an hypothesis...

The solution is probably something else.

Please help!!!

-L

Dear Lorenzo,

I have the same issue and the same configuration as you.

I am setting up Rstudio for the second time. In my previous setup I had to use:

sudo apt install libssl-dev

This time it does not install the expected version.

Locating the files shows the following on my machine

sudo locate libcrypto.so

/snap/core/6350/lib/x86_64-linux-gnu/libcrypto.so.1.0.0
/snap/core/6964/lib/x86_64-linux-gnu/libcrypto.so.1.0.0
/usr/lib/x86_64-linux-gnu/libcrypto.so.1.0.0
/usr/lib/x86_64-linux-gnu/libcrypto.so.1.1

So I have 1.0.0 and 1.1 nothing else.

I keep investigating and let you know if I find a solution.

Regards,

jm

Hello,

I investigate a bit more on the topic.

sudo apt-get install libssl1.0.0 libssl-dev

Reading package lists... Done
Building dependency tree
Reading state information... Done
libssl-dev is already the newest version (1.1.1-1ubuntu2.1~18.04.3).
libssl1.0.0 is already the newest version (1.0.2n-1ubuntu5.3).
0 upgraded, 0 newly installed, 0 to remove and 36 not upgraded.

So 1.0.2n is installed.

sudo locate libssl.so
/usr/lib/x86_64-linux-gnu/libssl.so.1.0.0
/usr/lib/x86_64-linux-gnu/libssl.so.1.1

So post recommend to inspect the so with ldd:

ldd /usr/lib/x86_64-linux-gnu/libssl.so.1.0.0
linux-vdso.so.1 (0x00007ffd903c5000)
libcrypto.so.1.0.0 => /usr/lib/x86_64-linux-gnu/libcrypto.so.1.0.0 (0x00007f0879225000)
libc.so.6 => /lib/x86_64-linux-gnu/libc.so.6 (0x00007f0878e34000)
libdl.so.2 => /lib/x86_64-linux-gnu/libdl.so.2 (0x00007f0878c30000)
/lib64/ld-linux-x86-64.so.2 (0x00007f08798d0000)

No idea what to do with that.

Any pointers on how to solve this issue is welcome.

jm

Hello,

I start my procedure from scratch. This time I have rstudio server working fine.

One difference is how I setup libssl based on the dev 1.0 branch.

sudo apt install libssl1.0-dev
sudo apt install libcurl4-openssl-dev
sudo apt install unixodbc-dev
sudo apt install libxml2-dev
sudo apt-get install gdebi-core

I notice two things that might or might not be different from my first run. This time I installed r-base-dev explicitly. The deb size was different, no ideas why it.

Hope this could help other with the same config and error.

jm

1 Like

This topic was automatically closed 21 days after the last reply. New replies are no longer allowed.