Why am I unable to install a MATLAB update for R2018b and newer?
MATLAB: Am I unable to install a MATLAB update for R2018b and newer
Related Solutions
This error occurs when attempting to launch MATLAB with a license file that was generated for an older release. See the information below in order to resolve this issue:
Network based licenses:
This error can occur when the version of MATLAB is newer than the version of the license file (license.dat) on the network license manager machine. To resolve this issue, update the license.dat file and/or license manager on the license manager machine to the latest release that you are licensed for. Contact your license administrator to make the updates.
The license.dat file on the server machine is located in:
$MATLABROOT/etc ($MATLAB\flexlm for releases prior to R2010b on Windows)
(where $MATLAB is the MATLAB installation directory)
NOTE: Once you have made changes to your license file, be sure to restart the license manager for these changes to take effect. For more information on how to restart the license manager, see the Related Solution linked below.
Also, if you are using MATLAB R2007b or earlier, make sure the license.dat file on the MATLAB client is in the following format:
SERVER <hostname> <HostID> <port> USE_SERVER
<hostname> is the hostname of the license server
<HostID> is the HostID of the license server
<port> is the number for license manager daemon (lmgrd)
The license.dat file on the client machine is located in:
Windows
---------
$MATLABROOT\bin\win32 (for 32-bit MATLAB) $MATLABROOT\bin\win64 (for 64-bit MATLAB)
Linux/Unix/Mac
------------------
$MATLABROOT/etc
(where $MATLABROOT is the MATLAB installation directory)
Standalone based licenses:
If you are receiving this error on Stand Alone installation of MATLAB and have attempted to install from downloaded file, then this error may occur if you have multiple versions of MATLAB downloaded into the same folder. The workaround for this issue is to uninstall and reinstall using fresh downloads.
MATLAB Student Version:
You may receive this error if you have multiple serial numbers for multiple releases, and you use the wrong serial number to activate. To resolve this issue, you will need to reactivate. See the Related Solution for the instructions on how to reactivate the Student Version.
This process is not available in MATLAB releases prior to R2018a.
In order to install a support package silently you will need to follow the procedure in the article below to download the files for the support package before hand.
How do I Download and Install a Support Package on an Offline Machine?
Once you obtained the installation files for the support package please follow the below workflow to silently install support packages:
If MATLAB has not been run on the target machine, you must be set to root first. Set the support package to root by launching MATLAB running the following command at the MATLAB prompt and then closing MATLAB.
_installFolder = matlabshared.supportpkg.getSupportPackageRoot; matlabshared.supportpkg.setSupportPackageRoot(installFolder);_
.
WINDOWS:
- Open a command prompt window, and run the following commands:
- <MATLAB root directory>\bin\win64\SupportSoftwareInstaller.exe -downloadfolder <pathtodownloadfolder> -inputFile <pathtoinputFile>\ssi_input.txt
Example:
C:\Program Files\MATLAB\R20XXx\bin\win64\SupportSoftwareInstaller.exe -downloadfolder C:\Users\jsmith\Downloads\MathWorks\SupportPackages\R20XXx -inputFile C:\Users\jsmith\Downloads\MathWorks\SupportPackages\R20XXx\ssi_input.txt
LINUX:
- Open a terminal window, and run the following command:
- <MATLAB root directory>/bin/glnxa64/SupportSoftwareInstaller -downloadfolder <pathtodownloadfolder> -inputFile <pathtoinputFile>/ssi_input.txt
Example:
/usr/local/MATLAB/R20XXx/bin/glnxa64/SupportSoftwareInstaller -downloadfolder /home/jdoe/Downloads/MathWorks/SupportPackages/R20XXx -inputFile /home/jdoe/Downloads/MathWorks/SupportPackages/R20XXx/ssi_input.txt
MAC:
- Open a terminal window, and run the following command:
- <MATLAB root directory>/bin/maci64/SupportSoftwareInstaller.sh-downloadfolder <pathtodownloadfolder> -inputFile <pathtoinputFile>/ssi_input.txt
Example:
/Applications/MATLAB_R20XXx.app/bin/maci64/SupportSoftwareInstaller.sh -downloadfolder /Users/jdoe/Downloads/MathWorks/SupportPackages/R20XXx -inputFile /Users/jdoe/Downloads/MathWorks/SupportPackages/R20XXx/ssi_input.txt
For the path to the input file and path to user’s install folder, you can use an absolute or relative path.
This command may take several minutes to run. When it is done, check the log file make sure the
installation completed. See https://www.mathworks.com/matlabcentral/answers/101927-where-are-the-matlab-installation-and-activation-log-files-located
NOTE: The procedures below must be run as an administrator.
When you download the support packages for installation (in Article above), the installer creates a configuration file for use with silent install, named ssi_input.txt. Inside this file is a list of the support packages to be installed.
Inside the config file, each support package has two lines – the first contains a product description and the second a product code that installer uses. If there are any support packages you want to remove from the installation, you can comment them out or delete the lines from the config file.
*IMPORTANT: Silent install pertains to the support software installer only. Any third-party support packages that require an interactive install will still require your interaction. *
Each time you perform a download, the configuration file is refreshed to add the new support packages. To regenerate the configuration file from scratch, delete the existing one or use another directory for the download.
If there is a failure in downloading a support package, that support package will not be listed in the config file. Before performing a silent install, check the config file to make sure that all the support packages you expect to be installed are listed. After installing, any failures are listed in the log file.
Related Question
- Do I get BAD KEY VALUE, no ‘-‘ prefix: “-updatepackage” when installing an offline update in Linux
- Do I receive License Manager Error -7
- How to download and install a MATLAB Update manually
- How to install a MATLAB update silently or non-interactively
- Do I see “Error: This is a R2018b installation . You can only install newer updates.” in the log file when installing R2018b update 4
- Does the license manager service (lmgrd) not launch after restarting a machine
- Where can I download offline installation files for a specific MATLAB update level
Best Answer