sudo install not opening installer (MATLAB 2021b)
Show older comments
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?
Accepted Answer
More Answers (1)
Ahmad Sharif
on 2 Feb 2022
16 votes

Try this
xhost +SI:localuser:root
sudo ./install
6 Comments
Marco Tyler-Rodrigue
on 9 Apr 2022
Worked for me, thanks!
Rustenis Tolpeznikas
on 9 Apr 2022
I had same issue on Mint 20.3. This works!
chhayahitesh
on 12 May 2022
Thanks it works on ubunto
Philip Gillibrand
on 28 Jun 2022
works on RHEL 8
Albert Lyerly
on 4 Aug 2022
This installation method was successful for Ubuntu 20.024.3 LTS and Matlab R2022a on Lenvo P73. 8/2022
dhruv khatri
on 10 Aug 2022
Thank you it worked on Ubuntu 20.04.4 LTS. I had the exact problem before.
Categories
Find more on Introduction to Installation and Licensing in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!