sudo install not opening installer (MATLAB 2021b)

172 Ansichten (letzte 30 Tage)
ClaytonA
ClaytonA am 23 Sep. 2021
Kommentiert: Pfeiffer Renaud am 29 Aug. 2022
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 Kommentar
ClaytonA
ClaytonA am 23 Sep. 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

Melden Sie sich an, um zu kommentieren.

Akzeptierte Antwort

ClaytonA
ClaytonA am 7 Okt. 2021
  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 Kommentare
Sepehr Samavi
Sepehr Samavi am 24 Aug. 2022
ditto. QA seems absent....
Pfeiffer Renaud
Pfeiffer Renaud am 29 Aug. 2022
Great. It works

Melden Sie sich an, um zu kommentieren.

Weitere Antworten (1)

Ahmad Sharif
Ahmad Sharif am 2 Feb. 2022
Try this
xhost +SI:localuser:root
sudo ./install
  6 Kommentare
Albert Lyerly
Albert Lyerly am 4 Aug. 2022
This installation method was successful for Ubuntu 20.024.3 LTS and Matlab R2022a on Lenvo P73. 8/2022
dhruv khatri
dhruv khatri am 10 Aug. 2022
Thank you it worked on Ubuntu 20.04.4 LTS. I had the exact problem before.

Melden Sie sich an, um zu kommentieren.

Kategorien

Mehr zu Introduction to Installation and Licensing finden Sie in Help Center und File Exchange

Produkte


Version

R2021b

Community Treasure Hunt

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

Start Hunting!

Translated by