ubuntu / ubuntu-make

Easy setup of common tools for developers on Ubuntu.
GNU General Public License v3.0
1.19k stars 189 forks source link

Unable to install RStudio - the checksum doesn't match #655

Closed N0rbert closed 3 years ago

N0rbert commented 3 years ago

This week I tried to install RStudio using ubuntu-make on two machines - with Ubuntu 18.04 LTS and Ubuntu MATE 21.04. I started with version from the PPA. It fails with

$ umake ide rstudio
Choose installation path: /home/h/.local/share/umake/ide/rstudio
Downloading and installing requirements                                                                                                              |
ERROR: https://download1.rstudio.org/desktop/xenial/amd64/rstudio-1.4.1106-amd64-debian.tar.gz couldn't finish download: The checksum of https://download1.rstudio.org/desktop/xenial/amd64/rstudio-1.4.1106-amd64-debian.tar.gz doesn't match. Corrupted download? Aborting.
100% |###############################################################################################################################################|
ERROR: The checksum of https://download1.rstudio.org/desktop/xenial/amd64/rstudio-1.4.1106-amd64-debian.tar.gz doesn't match. Corrupted download? Aborting.

Using version from master branch does not fix the issue. Also I have a suggestion about using deb-package instead of tar.gz.

LyzardKing commented 3 years ago

Thanks for the notification @N0rbert The checksum used on the website changed. It should be fixed soon in master.

LyzardKing commented 3 years ago

It should be up now. Let me know if it works!

N0rbert commented 3 years ago

Thanks, @LyzardKing !

Now It installs normally. It tries to start on Ubuntu 18.04 LTS. But then shows the error in the interface:

The R session process exited with code 127.

ERRORS /home/use/.local/share/umake/ide/rstudio/bin/rsession: error while loading shared libraries: libpq.so.5: cannot open shared object file: No such file or directory

rstudio18

This maybe fixed by running sudo apt-get install libpq5 . Then RStudio will launch normally.


On Ubuntu 20.04.2 LTS and 21.04 it does not start, because of the problem with LibSSL:

$ rstudio --version
rstudio: error while loading shared libraries: libssl.so.1.0.0: cannot open shared object file: No such file or directory

which is not available for these Ubuntu versions.

Please note that deb-version from https://rstudio.org/download/latest/stable/desktop/bionic/rstudio-latest-amd64.deb installs and runs normally on 18.04 LTS and 20.04 LTS versions. It does not run on 21.04, but this version is very young.

LyzardKing commented 3 years ago

Thanks for the help in debugging this. It was downloading the incorrect version on recent ubuntu releases. It should work now from master.

N0rbert commented 3 years ago

Great! Now RStudio installs normally on 18.04 LTS, 20.04 LTS, 20.10 and even 21.04. But requires manual run of sudo apt-get install libpq5 to operate. This will be last needed fix.

LyzardKing commented 3 years ago

ah yes, I forgot to add that... although it isn't needed in 20.10 (not in my system at least). Can you confirm it is needed only in older versions (18.04)? Thank you

N0rbert commented 3 years ago

I have tested on fresh Ubuntu MATE VMs with all versions - 18.04 LTS, 20.04 LTS, 20.10 and 21.04. All they require manual run of sudo apt-get install libpq5 .

LyzardKing commented 3 years ago

Done. I also added r-base as a dependency, to install the r language. It should work on master, and I'll promote the snap to a stable build. The ppa should autobuild in 1-2 days