You are now following this question
- You will see updates in your followed content feed.
- You may receive emails, depending on your communication preferences.
Installer hang when installing Matlab R2021b as root on Ubuntu 20.04
409 views (last 30 days)
Show older comments
My operating system is Ubuntu 20.04 LTS. I must install Matalb as root, and always have done. This is historic as all specialist programs are installed in /opt.
I have now downloaded MATLAB R2021b and the Installer hang when installing Matlab R2021b as root on Ubuntu 20.04, the command sudo ./install just hangs with a blinking cursor, no Matlab install GUI is displayed.
As first attempted solution I have created a MATLAB/R2021b folder in /opt, that did not help.
I have also tried to install R2021b normally with defaults but although now I progress nicely to the Matlab GUI, but the default location /usr/local/MATLAB/R2021b cannot created/located and then I have to aboard.
I have always had to install MATLAB as root.
Any advice on getting the MATLAB install GUI to display on Ubuntu R2021b will be appreciated.
Thank you
15 Comments
John Summerfield
on 26 Sep 2021
I’m having the exact same issue. Ubuntu 20.04 , Matlab R2021b installer hangs after running sudo ./install
Steph Bredenhann
on 29 Sep 2021
I have been advised by Matlab Support "This appears to be an issue with MATLAB R2021b under root not being able to access the X Server". Workaround is to run the following command
xhost +SI:localuser:root
Lorson Blair
on 29 Sep 2021
./install works without the sudo, but you are unable to reach the Matlab folder I created /usr/local/MATLAB/R2021b. This is obvious since I did not use root access.
Lorson Blair
on 30 Sep 2021
The solution suggested by Step works. Run the command and then run sudo ./install.
Nikolaos Frantzeskidis
on 31 Mar 2022
Can confirm works without issues with R2022a on Manjaro. Thank you very much!
Ozge
on 16 Nov 2022
I get this problem, installing R2022b But anthing solve my “product installer down” problem
Henrik Grythe
about 22 hours ago
I worked my way around this problem, but got stopped at the next turn for R2022b.

Accepted Answer
El'ad Gips
on 30 Sep 2021
this tip:
(run the command : xhost +SI:localuser:root)
and after
sudo ./install
worked for me (matlab 21b and ubuntu 20.04)
20 Comments
Andrew Van Horn
on 7 Oct 2021
Tried this on Ubuntu 20.04 and it worked! This should be added to the install instructions. I wasted too much time trying to track down the problem.
Cristina Lampón
on 22 Oct 2021
I had the same problem, tried this solution on Ubuntu 20.04 and it worked. Thank you!
Johanphilip Davis
on 28 Oct 2021
I also had the same problem on Ubuntu 20.04. Currently, it is working. Thank you!
Brenda Cyrielle Fochive Fewou
on 9 Nov 2021
It worked for me too thanks. But how do I get the short cut on the desktop please?
Michal
on 29 Nov 2021
Thanks for functional workaround! I spent a lot of time trying to solve this problem ... :(
Firat Soylu
on 18 Mar 2022
Thanks! This worked for me on Ubuntu 20.04 & Matlab 2021b after a fresh installation.
Adnan
on 14 Sep 2022
Edited: Adnan
on 14 Sep 2022
For anyone wondering what's going on: Askubuntu xserver
More Answers (1)
See Also
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!An Error Occurred
Unable to complete the action because of changes made to the page. Reload the page to see its updated state.
Select a Web Site
Choose a web site to get translated content where available and see local events and offers. Based on your location, we recommend that you select: .
You can also select a web site from the following list:
How to Get Best Site Performance
Select the China site (in Chinese or English) for best site performance. Other MathWorks country sites are not optimized for visits from your location.
Americas
- América Latina (Español)
- Canada (English)
- United States (English)
Europe
- Belgium (English)
- Denmark (English)
- Deutschland (Deutsch)
- España (Español)
- Finland (English)
- France (Français)
- Ireland (English)
- Italia (Italiano)
- Luxembourg (English)
- Netherlands (English)
- Norway (English)
- Österreich (Deutsch)
- Portugal (English)
- Sweden (English)
- Switzerland
- United Kingdom (English)
Asia Pacific
- Australia (English)
- India (English)
- New Zealand (English)
- 中国
- 日本Japanese (日本語)
- 한국Korean (한국어)