Toolbox installation going wrong - linux

I am using the newest release 2025a on a linux computer. I want to install the Statistics and Machine Learning Toolbox which is included in my license. In general the installation process is simple - i open the add-on explorer, find the toolbox and click install. Then a window pops up, that the toolbox will be installed, matlab will be closed and restarted once complete. Matlab closes but never restarts, if i start it again the toolbox is missing.
What can I do ?

4 Kommentare

Star Strider
Star Strider am 16 Jun. 2025
You most likely need to Contact Support since this is something inherent in MATLAB.
Also, be sure to include your Linux distro and version in your note to MathWorks.
Davide
Davide am 11 Jul. 2025
I am having the same problem (Ubuntu 24.04.2 LTS), still didn't find a way to solve it
Philipp
Philipp am 5 Nov. 2025
Bearbeitet: Philipp am 5 Nov. 2025
I also have exactly the same problem (Kubuntu 24.04 LTS, R2025b). MATLAB is installed below my home folder and my user account has access to the installation files (not installed using sudo).
Katrina
Katrina am 27 Feb. 2026 um 1:49
Same exact problem, Windows 11. Installed circular statistics and database without incident, but choking on Statistics and Machine Learning.

Melden Sie sich an, um zu kommentieren.

Antworten (5)

tim
tim am 16 Jun. 2025

1 Stimme

i can circumvent this problem by reinstalling matlab and selecting the official toolboxes i want. but this is a really tedious "fix" and not sure what to do about unlisted toolboxes..
Mahboob
Mahboob am 13 Aug. 2025

1 Stimme

Run matlab by sudo so that it can run the installer after closing.

2 Kommentare

JOSHUA RAPHAEL
JOSHUA RAPHAEL am 13 Nov. 2025
Not working for me :/
Can you provide some sources on why runnng with sudo could help?
Thanks a lot!
Mahboob
Mahboob am 13 Nov. 2025
Bearbeitet: Mahboob am 13 Nov. 2025
Well, in depends on where you installed your matlab, and if even used sudo to run the initial installer setup. For example, if you installed it in /usr/local/MATLAB/<VERSION> then this directory is not writable by normal user, and therefore, if you ran matlab without sudo, then the updater or module installer won't be able to write files on the sub directories of /usr/local/MATLAB/<VERSION>.

Melden Sie sich an, um zu kommentieren.

Rahul Gulia
Rahul Gulia am 6 Sep. 2025

0 Stimmen

Open a terminal and run:
sudo matlab
Then, start installing your Add-Ons. Hope this helps.

3 Kommentare

Bence Tóth
Bence Tóth am 9 Sep. 2025
MATLAB keeps crashing when I try to run it with sudo in a terminal... Otherwise I have the same problem as OP.
JOSHUA RAPHAEL
JOSHUA RAPHAEL am 13 Nov. 2025
Bearbeitet: JOSHUA RAPHAEL am 13 Nov. 2025
Same here, matlab crashes when trying to run with sudo :(
I get the following output:
QStandardPaths: XDG_RUNTIME_DIR not set, defaulting to '/tmp/runtime-root'
QXcbGlxIntegration::initialize
Xcb GLX gl-integration successfully initialized
qt.xkb.compose: failed to create compose table
Unable to launch MVM server: License Error: Licensing shutdown
JOSHUA RAPHAEL
JOSHUA RAPHAEL am 13 Nov. 2025
Bearbeitet: JOSHUA RAPHAEL am 13 Nov. 2025
Managed to run matlab with sudo by using sudo -u myUserName matlab, but that didn't solve the issue.
Also tried sudo -u UserName matlab &, but still no success:/

Melden Sie sich an, um zu kommentieren.

Ivy
Ivy am 14 Nov. 2025

0 Stimmen

Hello,
The reason why MATLAB just closes itself without opening is because it tries to install, and I assume you have installed MATLAB in a sudo-required location, it can't write to this location and never opens up again.
Launching MATLAB with sudo is only recommended if you have a university/startup license.
What you can do is to either run the installer, or MPM.
https://github.com/mathworks-ref-arch/matlab-dockerfile/blob/main/MPM.md#install-matlab-and-specify-installation-options
Marti
Marti am 26 Jan. 2026

0 Stimmen

I had the same issue: Ubuntu 24.04 LTS, I had all rights in all my Matlab paths, the only way it was sorted was using MPM:
wget https://www.mathworks.com/mpm/glnxa64/mpm
chmod +x mpm
./mpm install --release=R2025b --products MY_REQUIRED_Toolbox --destination=/home/MY_USER/MY/PATH/TO/MATLAB
Things I tried that didn't work
  • Running with sudo
  • Checking the process call with ps aux | grep AddOn and running it standalone
  • Checking log with tail -f /tmp/mathworks_MYUSER.log
  • Run with X11 with export OTK_FORCE_X11=1; ./matlab

1 Kommentar

Ivy
Ivy am 27 Jan. 2026
To confirm, I was able to reproduce the issue and is not related to the permissions if MATLAB is installed in a non-sudo location. This is currently a known issue, using MPM should work as a workaround.

Melden Sie sich an, um zu kommentieren.

Kategorien

Produkte

Version

R2025a

Gefragt:

tim
am 13 Jun. 2025

Kommentiert:

am 27 Feb. 2026 um 1:49

Community Treasure Hunt

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

Start Hunting!

Translated by