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 件のコメント

ClaytonA
ClaytonA 2021 年 9 月 23 日
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

サインインしてコメントする。

 採用された回答

ClaytonA
ClaytonA 2021 年 10 月 7 日

27 投票

  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 件のコメント

Aryeh Weiss
Aryeh Weiss 2021 年 11 月 8 日
yes - this works for me.
manuel mar
manuel mar 2022 年 1 月 23 日
Worked for me too
Brian
Brian 2022 年 1 月 25 日
And what if I wanted to install matlab without a display/X server?
LP
LP 2022 年 7 月 14 日
worked for me but a dam shame Mathworks continue to not support ubuntu properly
Where was the QA for this?
Sepehr Samavi
Sepehr Samavi 2022 年 8 月 24 日
ditto. QA seems absent....
Pfeiffer Renaud
Pfeiffer Renaud 2022 年 8 月 29 日
Great. It works

サインインしてコメントする。

その他の回答 (1 件)

Ahmad Sharif
Ahmad Sharif 2022 年 2 月 2 日

16 投票

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

6 件のコメント

Marco Tyler-Rodrigue
Marco Tyler-Rodrigue 2022 年 4 月 9 日
Worked for me, thanks!
Rustenis Tolpeznikas
Rustenis Tolpeznikas 2022 年 4 月 9 日
I had same issue on Mint 20.3. This works!
chhayahitesh
chhayahitesh 2022 年 5 月 12 日
Thanks it works on ubunto
Philip Gillibrand
Philip Gillibrand 2022 年 6 月 28 日
works on RHEL 8
Albert Lyerly
Albert Lyerly 2022 年 8 月 4 日
This installation method was successful for Ubuntu 20.024.3 LTS and Matlab R2022a on Lenvo P73. 8/2022
dhruv khatri
dhruv khatri 2022 年 8 月 10 日
Thank you it worked on Ubuntu 20.04.4 LTS. I had the exact problem before.

サインインしてコメントする。

カテゴリ

ヘルプ センター および File ExchangeIntroduction to Installation and Licensing についてさらに検索

製品

リリース

R2021b

タグ

質問済み:

2021 年 9 月 23 日

コメント済み:

2022 年 8 月 29 日

Community Treasure Hunt

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

Start Hunting!

Translated by