How to solve the following add-ons installation error: 'Installation Folder Error. This folder name is invalid.'

조회 수: 10 (최근 30일)
When I try to install an add-ons (through the manager or the mlpkginstall file), I get the following error:
Install Folder Error
This folder name is invalid. Folder names can contain alphanumeric characters and '-', '_', '.', or '/' only. The destination folder cannot be named "private".
Notice that I try to change the installation folder in Add-ons preferences, since my home folder name is exotic: '/home/user@local/'
I set '/usr/local/MATLAB/R2021b/addons' for add-ons installation folder in preference.
Here the log file:
Initializing session e194afaf-4823-4db0-a607-46e638fb3d8b
(avr. 08, 2022 10:42:15) isDesktopSupported: true
(avr. 08, 2022 10:42:15) In cacheParameters()
(avr. 08, 2022 10:42:15) QueryParams{inputfile='', matlabroot='/usr/local/MATLAB/R2021b', workflowType='ADDONSINSTALL', downloadfolder='', installfolder='/home/user@local/Documents/MATLAB/SupportPackages/R2021b', basecode=[PCT_SLURM], entryPoint='AddOns', entryPointKey='d5239e34-ce50-46e8-872d-891f1e5285b5', archiveLocation=''}
(avr. 08, 2022 10:42:15) MATLAB root: /usr/local/MATLAB/R2021b
(avr. 08, 2022 10:42:15) Download folder: /tmp/SupportPackages_R2021b897715500296714710
(avr. 08, 2022 10:42:15) Install Folder Error: This folder name is invalid. Folder names can contain alphanumeric characters and '-', '_', '.', or '/' only. The destination folder cannot be named "private".
It looks like the installation folder has not changed.
How can I solve this issue?
EDIT
I solved my issue by changing the Support Package Root folder (see https://fr.mathworks.com/help/matlab/ref/matlabshared.supportpkg.getsupportpackageroot.html).
matlabshared.supportpkg.setSupportPackageRoot('/usr/local/MATLAB/R2021b/SupportPackages')

답변 (1개)

Nihal Reddy
Nihal Reddy 2023년 2월 16일
I understand you are facing an error while trying to install support package from the Add-Ons Explorer.
Enter the following command in the MATLAB Command Window to output the full path to your Support Package install directory:
matlabshared.supportpkg.getSupportPackageRoot
If the file path has any spaces or special characters in it, please remove any spaces or special characters from the file path then close and re-open MATLAB and try to install the Support Package again.
If you can't modify the existing file path, you can point MATLAB to a different directory to install the Support Package in instead. You must have write permissions in the folder, and the file path to the folder must not contain any spaces or special characters. To do so, run the following command:
matlabshared.supportpkg.setSupportPackageRoot(<path to new Support Package install directory>)
Then close and re-open MATLAB and try to install the Support Package again.

카테고리

Help CenterFile Exchange에서 Introduction to Installation and Licensing에 대해 자세히 알아보기

태그

제품


릴리스

R2021b

Community Treasure Hunt

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

Start Hunting!

Translated by