MathWorksUpdateInstaller and R2025a in Linux
Ältere Kommentare anzeigen
Hi!
Until now (e.g., with R2024b), whenever I needed to update my MATLAB in Linux, I used to run
sudo /usr/local/MATLAB/R2024b/bin/glnxa64/MathWorksUpdateInstaller
but I cannot find the equivalent executable for R2025a. Did it change name/location? Or what is the suggested update approach, now?
Note that I can't simply run the updater from the MATLAB desktop, because as normal user I don't have privilegies to write in the MATLAB root directory. And I can't start MATLAB as root, either, because of the name in the license.
Thanks in advance!
7 Kommentare
I notice the same missing MathWorksUpdateInstaller starting with R2025a.
ls(fullfile(matlabroot, 'bin', computer('arch'), 'MathWorksUpdateInstaller'))
Star Strider
am 24 Jul. 2025
I didn't have any problems installing R2025a Update 1 yesterday in Ubuntu 24.04 (and all recent updates to it and its functions). Just clicking on the 'bell' icon in the MATLAB toolstrip and launching the updater worked. It even re-launched MATLAB after installing the update.
I'm not certain how my installation differs from yours, so I don't know how applicable my experience is to you.
DG
am 24 Jul. 2025
Star Strider
am 24 Jul. 2025
Bearbeitet: Star Strider
am 24 Jul. 2025
The matlabroot return is:
'/home/user_name/Downloads/matlab_R2025a_Linux/bin/glnxa64'
because I could not get the installer to recognise the sudo directory that I created for it, since it kept telling me that the directory did not exist, even though I verified that it did indeed exist. The installer created this essentially on its own, when everything else I had attempted failed. MATLAB itself is installed in usr/local/bin.
To launch it, I use $ matlab (not $ ./matlab that returns -- bash: ./matlab: No such file or directory). I'm not certain what's going on with it, however MATLAB runs successfully and the updates install without problems (at least Update 1 did).
I'm relatively new at Linux. There's still a lot to learn for me.
EDIT --
This currently seems to be a more widesprezd problem -- How can I install an update on R2025a on Linux?.
.
Josh G.
am 24 Jul. 2025
@Star Strider Matlab installs by default to /usr/local/MATLAB/R2025a, which needs root privileges to modify. I think I've seen the installer suggest changing the install directory to something under /home/$(whoami) in the past if you run it without sudo, but that's not the default.
I'm concerned that the only way to update may be to run Matlab itself as root, which is a serious security liability (and as implied in this question might not even work on non-enterprise licenses), or to change the install directory to something under /home, which would be really annoying since it's not a standard place to install programs and there's no reason Mathworks can't continue to provide a standalone updater (or better, an update script that doesn't require running a graphical program as root in the first place).
Josh G.
am 25 Jul. 2025
After looking into this a little more, it looks like MathWorksUpdateInstaller has moved to ~/.MathWorks/ServiceHost/-mw_shared_installs/v2025.5.1.1/bin/glnxa64/. But if I try running it by itself, with or without sudo, with or without Matlab running already, it runs into error 1804.
Star Strider
am 25 Jul. 2025
Having MATLAB open is probably required. When I updated R2025a earlier this week, I just clicked on the 'notifications' (bell) icon in the upper-right corner of the MATLAB GUI, then scrolled down to and clicked on 'Install Updates'. The updater closed MATLAB, installed Update 1, and re-launched MATLAB when it finished. (Ubuntu 24.04)
I'm not at all certain that I initially installed R2025a 'correctly'. Whatever I did, everything seems to worrk.
Some sort of clarification (extensive discussion) from TMW on all of this would be extremely helpful, especially for those of us who are relatively new to Linux.
Akzeptierte Antwort
Weitere Antworten (0)
Kategorien
Mehr zu Introduction to Installation and Licensing finden Sie in Hilfe-Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!