Why am i getting error "you don't have permissions to folder /usr/MATLAB/R2024b" while installing R2025a?

56 ビュー (過去 30 日間)
Henrik
Henrik 2025 年 6 月 25 日
コメント済み: Walter Roberson 2025 年 12 月 22 日 18:43
Yes i know the question has been ask before, but since i'm not allowed to comment, im asking it again.
Yes i am Admin/root
and Yes permissions are 777 for /usr/MATLAB
No the link did not provide an Answer
Thanks for the help

回答 (2 件)

Vidhi Agarwal
Vidhi Agarwal 2025 年 6 月 30 日
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".
sudo ./install
  • If you downloaded an installer script:
sudo sh install
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!
  1 件のコメント
Walter Roberson
Walter Roberson 2025 年 12 月 22 日 18:43
/usr/local/MATLAB strongly hints that this is a linux installation.
/usr/local/MATLAB is not impossible for a MacOS installation, but the MacOS installer automatically requests authentication for permission to install, and installation by default is to /Applications/

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


Riccardo Beniamino
Riccardo Beniamino 2025 年 12 月 22 日 18:04
I also had this error while trying to install MATLAB 2025b Update 2.
I solved it by simply changing the user group of the MATLAB directory and all its subdirectories with this command:
sudo chown -R your_username:your_username /usr/local/MATLAB/
This operation must obviously be performed with MATLAB closed.
To find your_username, use the
whoami
command.
I recommend this operation only if you have some experience with Linux.
The file permissions, however, do not need to be changed; they are already correctly set to 755 by default.
I hope this helps MATLAB users on Linux.

カテゴリ

Help Center および File ExchangeIntroduction to Installation and Licensing についてさらに検索

製品


リリース

R2024b

Community Treasure Hunt

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

Start Hunting!

Translated by