on ubuntu sudo won't run the install file

I'm trying to install MatLab on Ubuntu 20.04.
Running
./install
in the terminal does bring out the installation window but then the installer doesn't have the permission to write on usr/local
So i need to run
sudo ./install
but this does nothing, the process doesn't do anything and doesn't stop. It doesn't even have an error message.
I've tried changing the permissions on the file with chmod but it doesn't anything.
Where could the problem come from ?

5 commentaires

William Gomez
William Gomez le 30 Sep 2021
I've got the exact same problem in Kali 2021.3
Nicat Hasanli
Nicat Hasanli le 13 Oct 2021
yeah same problem ubuntu 20.04
I got an email from installation support (don't know why they didn't answer this thread) and this was their advice :
"" This appears to be an issue with MATLAB R2021b under root not being able to access the X Server. As a workaround, please try the following:
Launch Terminal
Type the following in the terminal to allow the root user to access the running X server:
xhost +SI:localuser:root
After running the command above try running the installer "sudo ./install ""
I didn't use it tho, i chose to install inside of the home directory without sudo, it's a bit impractical as the software is not recognized by the UI but i can run it from terminal.
Gurpreet Singh
Gurpreet Singh le 14 Oct 2021
Running the following code in terminal (from ./install directory) worked for me:
xhost +SI:localuser:root
Jose Hernandez
Jose Hernandez le 27 Déc 2021
Thank you very much, it works !!!

Connectez-vous pour commenter.

Réponses (0)

Catégories

Produits

Version

R2021b

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by