This error path (/usr/MATLAB/...) suggests you’re on Linux or macOS. On Windows, similar errors happens when MATLAB is install into C:\Program Files\MATLAB without admin rights. In that case, run the installer as administrator.
To resolve this issue try the given below steps, these might help in getting started:
- Open a terminal and run the installer with "sudo".
- If you downloaded an installer script:
This gives the installer the necessary permissions.
During installation, make sure you are installing to a directory where you have write access. By default, MATLAB wants to install to /usr/local/MATLAB or /usr/MATLAB. If you don’t have root access, choose a directory in your home folder (e.g., /home/yourusername/MATLAB/R2025a).
If the installer is trying to modify or overwrite /usr/MATLAB/R2024b, and you don’t need that version anymore, you can remove it (with admin privileges).
sudo rm -rf /usr/MATLAB/R2024b
Hope this helps!