sudo install not opening installer (MATLAB 2021b)

I'm on Ubuntu 20.04 trying to install MATLAB 2021b. The install script will not open the installer GUI when run with sudo. After running sudo ./install my terminal freezes like it's stuck in a loop.
Note that the installer GUI does open when ./install is run without sudo. Also, I've recently installed 2021a without problems.
Any thoughts on how I can run the installer as su?

1 comentario

ClaytonA
ClaytonA el 23 de Sept. de 2021
Looks like the problem is in /bin/glnxa64/MathWorksProductInstaller
It runs fine without sudo, however no GUI opens when run with sudo.
BTW, the MathWorksProductInstaller application didn't exist in R2021A, it used something called install_unix

Iniciar sesión para comentar.

 Respuesta aceptada

ClaytonA
ClaytonA el 7 de Oct. de 2021

27 votos

  1. (run the command : xhost +SI:localuser:root)
  2. sudo ./install
As answered here:
https://www.mathworks.com/matlabcentral/answers/1459909-installer-hang-when-installing-matlab-r2021b-as-root-on-ubuntu-20-04#comment_1759029

6 comentarios

Aryeh Weiss
Aryeh Weiss el 8 de Nov. de 2021
yes - this works for me.
manuel mar
manuel mar el 23 de En. de 2022
Worked for me too
Brian
Brian el 25 de En. de 2022
And what if I wanted to install matlab without a display/X server?
LP
LP el 14 de Jul. de 2022
worked for me but a dam shame Mathworks continue to not support ubuntu properly
Where was the QA for this?
ditto. QA seems absent....
Great. It works

Iniciar sesión para comentar.

Más respuestas (1)

Ahmad Sharif
Ahmad Sharif el 2 de Feb. de 2022

16 votos

Try this
xhost +SI:localuser:root
sudo ./install

6 comentarios

Worked for me, thanks!
I had same issue on Mint 20.3. This works!
chhayahitesh
chhayahitesh el 12 de Mayo de 2022
Thanks it works on ubunto
works on RHEL 8
This installation method was successful for Ubuntu 20.024.3 LTS and Matlab R2022a on Lenvo P73. 8/2022
dhruv khatri
dhruv khatri el 10 de Ag. de 2022
Thank you it worked on Ubuntu 20.04.4 LTS. I had the exact problem before.

Iniciar sesión para comentar.

Categorías

Productos

Versión

R2021b

Etiquetas

Preguntada:

el 23 de Sept. de 2021

Comentada:

el 29 de Ag. de 2022

Community Treasure Hunt

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

Start Hunting!

Translated by