![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/178962/image.png)
Can't install any toolboxes because can't write to /usr/local/MATLAB/R2017
207 views (last 30 days)
Show older comments
I have not been able to install any toolboxes because the installation runs into PermissionDenieds on /usr/local/MATLAB/R2017/. I've included a logfile /tmp/mathworks_pjhellemn.log below which includes the error. I tried running Matlab with sudo, but my license is only for user pjhellemn and not for root, so Matlab would exit with a License Manager Error -9. I also ran "sudo chmod -R 777 *" at /usr/local/MATLAB/ before trying to install the toolbox, but then ended up getting "java.io.IOException: Error 1 setting permissions for /usr/local/MATLAB/R2017a/toolbox/local/pathdef.m. Operation not permitted" (also in the logfile below, but nearer to the bottom).
I am running Ubuntu 16.04. I'm using R2017 and trying to install the Bioinformatics toolbox right now, but I've had this same issue with R2016 and the Statistics and Machine Learning Toolbox. I am installing Matlab by downloading the zip, extracting it, and then running "sudo ./install" in the proper directory, and using all defaults in the installation.
Since trying "chmod 777" I have deleted the Matlab installation directory ("sudo rm -rf /usr/local/MATLAB/") and freshly installed, but am running into the same problems.
How do I get around these permission / licensing errors?
Log file:
(Apr 10, 2017 21:04:42) ##################################################################
(Apr 10, 2017 21:04:42) #
(Apr 10, 2017 21:04:42) # Today's Date:
(Apr 10, 2017 21:04:42) Mon Apr 10 21:04:42 CDT 2017
(Apr 10, 2017 21:04:42)
(Apr 10, 2017 21:04:42) System Info
(Apr 10, 2017 21:04:42) OS: Linux 4.4.0-72-generic
(Apr 10, 2017 21:04:42) Arch: amd64
(Apr 10, 2017 21:04:42) Data Model: 64
(Apr 10, 2017 21:04:42) Language: en
(Apr 10, 2017 21:04:42) Java Vendor: Oracle Corporation
(Apr 10, 2017 21:04:42) Java Home: /usr/local/MATLAB/R2017a/sys/java/jre/glnxa64/jre
(Apr 10, 2017 21:04:42) Java Version: 1.7.0_60
(Apr 10, 2017 21:04:42) Java VM Name: Java HotSpot(TM) 64-Bit Server VM
(Apr 10, 2017 21:04:42) Java Class Path: Skipped
(Apr 10, 2017 21:04:42) User Name: pjhellemn
(Apr 10, 2017 21:04:42) Current Directory: /usr/local/MATLAB/R2017a/bin
(Apr 10, 2017 21:04:42) Total upgradeable support packages found = 0
(Apr 11, 2017 04:26:37) ##################################################################
(Apr 11, 2017 04:26:37) #
(Apr 11, 2017 04:26:37) # Today's Date:
(Apr 11, 2017 04:26:37) Tue Apr 11 04:26:37 CDT 2017
(Apr 11, 2017 04:26:37)
(Apr 11, 2017 04:26:37) System Info
(Apr 11, 2017 04:26:37) OS: Linux 4.4.0-72-generic
(Apr 11, 2017 04:26:37) Arch: amd64
(Apr 11, 2017 04:26:37) Data Model: 64
(Apr 11, 2017 04:26:37) Language: en
(Apr 11, 2017 04:26:37) Java Vendor: Oracle Corporation
(Apr 11, 2017 04:26:37) Java Home: /usr/local/MATLAB/R2017a/sys/java/jre/glnxa64/jre
(Apr 11, 2017 04:26:37) Java Version: 1.7.0_60
(Apr 11, 2017 04:26:37) Java VM Name: Java HotSpot(TM) 64-Bit Server VM
(Apr 11, 2017 04:26:37) Java Class Path: /usr/local/MATLAB/R2017a/java/config/trialsinstaller/pathlist.jar
(Apr 11, 2017 04:26:37) User Name: pjhellemn
(Apr 11, 2017 04:26:37) Current Directory: /home/pjhellemn/pjh5/stat450/MLSiml/jimmy/demo_GMKL
(Apr 11, 2017 04:26:37) Input arguments:
(Apr 11, 2017 04:26:37) root /usr/local/MATLAB/R2017a
(Apr 11, 2017 04:26:37) libdir /usr/local/MATLAB/R2017a
(Apr 11, 2017 04:26:37) matlabargs "-r "matlab.internal.addons.cdAndShowAddon('BI')""
(Apr 11, 2017 04:26:37) addonMode trialMode
(Apr 11, 2017 04:26:37) entitlementId 3284817
(Apr 11, 2017 04:26:37) Argument not logged
(Apr 11, 2017 04:26:37) basecode.BI true
(Apr 11, 2017 04:26:37) standalone true
(Apr 11, 2017 04:26:38) Starting local product/component search in download directory
(Apr 11, 2017 04:26:38) Searching for archives...
(Apr 11, 2017 04:26:38) /home/pjhellemn/Downloads/MathWorks/R2017a/archives doesn't exist ... skipping.
(Apr 11, 2017 04:26:39) Archive search complete. 0 total files found.
(Apr 11, 2017 04:26:39) Completed local product/component search
(Apr 11, 2017 04:26:41) Contacting MathWorks
*(Apr 11, 2017 04:26:47) Error: Unable to write to
/usr/local/MATLAB/R2017a.*
Select a different folder.
(Apr 11, 2017 04:26:54) The installation is not complete. If you quit now, you will need to restart the installation from the beginning.
Do you really want to quit now?
(Apr 11, 2017 04:26:57) Exiting with status -1
(Apr 11, 2017 04:26:58) End - Unsuccessful.
(Apr 11, 2017 04:28:37) ##################################################################
(Apr 11, 2017 04:28:37) #
(Apr 11, 2017 04:28:37) # Today's Date:
(Apr 11, 2017 04:28:37) Tue Apr 11 04:28:37 CDT 2017
(Apr 11, 2017 04:28:37)
(Apr 11, 2017 04:28:37) System Info
(Apr 11, 2017 04:28:37) OS: Linux 4.4.0-72-generic
(Apr 11, 2017 04:28:37) Arch: amd64
(Apr 11, 2017 04:28:37) Data Model: 64
(Apr 11, 2017 04:28:37) Language: en
(Apr 11, 2017 04:28:37) Java Vendor: Oracle Corporation
(Apr 11, 2017 04:28:37) Java Home: /usr/local/MATLAB/R2017a/sys/java/jre/glnxa64/jre
(Apr 11, 2017 04:28:37) Java Version: 1.7.0_60
(Apr 11, 2017 04:28:37) Java VM Name: Java HotSpot(TM) 64-Bit Server VM
(Apr 11, 2017 04:28:37) Java Class Path: /usr/local/MATLAB/R2017a/java/config/trialsinstaller/pathlist.jar
(Apr 11, 2017 04:28:37) User Name: pjhellemn
(Apr 11, 2017 04:28:37) Current Directory: /home/pjhellemn/pjh5/stat450/MLSiml/jimmy/demo_GMKL
(Apr 11, 2017 04:28:37) Input arguments:
(Apr 11, 2017 04:28:37) root /usr/local/MATLAB/R2017a
(Apr 11, 2017 04:28:37) libdir /usr/local/MATLAB/R2017a
(Apr 11, 2017 04:28:37) matlabargs "-r "matlab.internal.addons.cdAndShowAddon('BI')""
(Apr 11, 2017 04:28:37) addonMode trialMode
(Apr 11, 2017 04:28:37) entitlementId 3284817
(Apr 11, 2017 04:28:37) Argument not logged
(Apr 11, 2017 04:28:37) basecode.BI true
(Apr 11, 2017 04:28:37) standalone true
(Apr 11, 2017 04:28:38) Starting local product/component search in download directory
(Apr 11, 2017 04:28:38) Searching for archives...
(Apr 11, 2017 04:28:38) /home/pjhellemn/Downloads/MathWorks/R2017a/archives doesn't exist ... skipping.
(Apr 11, 2017 04:28:38) Archive search complete. 0 total files found.
(Apr 11, 2017 04:28:38) Completed local product/component search
(Apr 11, 2017 04:28:41) Contacting MathWorks
(Apr 11, 2017 04:28:46) Error: Unable to write to
/usr/local/MATLAB/R2017a.
Select a different folder.
(Apr 11, 2017 04:29:55) Error: Unable to write to
/usr/local/MATLAB/R2017a.
Select a different folder.
(Apr 11, 2017 04:30:19) Retrieving license data
(Apr 11, 2017 04:30:21) Retrieving product data
(Apr 11, 2017 04:30:23) Verifying account information
(Apr 11, 2017 04:30:26) Completed local product/component search
(Apr 11, 2017 04:30:34) Confirmation Text:
Requested Products:
Bioinformatics Toolbox 4.8
Required Products:
MATLAB 9.2
Statistics and Machine Learning Toolbox 11.1
Required products are automatically included in your trial.
Installation folder:
/usr/local/MATLAB/R2017a
Download Size: 526 MB
Installation Size: 1,301 MB
(Apr 11, 2017 04:30:39) Starting Download: Bioinformatics Toolbox 4.8 : 179,886,072 bytes
(Apr 11, 2017 04:31:17) Starting Download: Statistics and Machine Learning Toolbox 11.1 : 372,455,664 bytes
(Apr 11, 2017 04:32:33) Installing Product: Bioinformatics Toolbox 4.8
*(Apr 11, 2017 04:32:33) java.io.FileNotFoundException: /usr/local/MATLAB/R2017a/bin/glnxa64/libAffymetrixSDK.so (Permission denied)*
at java.io.FileOutputStream.open(Native Method)
at java.io.FileOutputStream.(Unknown Source)
at com.mathworks.instutil.FileIO.copyToFileFromStream(FileIO.java:491)
at com.mathworks.instutil.FileIO.createFileFromStream(FileIO.java:166)
at com.mathworks.instutil.FileIO.createFileFromStream(FileIO.java:157)
at com.mathworks.install.archive.zip.commonscompress.ArchiveEntryExtractorImpl.extract(ArchiveEntryExtractorImpl.java:37)
at com.mathworks.install.archive.zip.commonscompress.CopyInputStreamToTempZipFileExtractor.extractEntry(CopyInputStreamToTempZipFileExtractor.java:79)
at com.mathworks.install.archive.zip.commonscompress.CopyInputStreamToTempZipFileExtractor.extract(CopyInputStreamToTempZipFileExtractor.java:46)
at com.mathworks.install.archive.DecodeArchiveInputStreamExtractor.extract(DecodeArchiveInputStreamExtractor.java:34)
at com.mathworks.install.input.ArchiveComponentSource.extract(ArchiveComponentSource.java:26)
at com.mathworks.install.InstallableComponentImpl.install(InstallableComponentImpl.java:102)
at com.mathworks.install.ComponentInstallerImpl.installComponent(ComponentInstallerImpl.java:99)
at com.mathworks.install.ComponentInstallerImpl.installComponents(ComponentInstallerImpl.java:58)
at com.mathworks.install.ProductInstallerImpl.installComponents(ProductInstallerImpl.java:225)
at com.mathworks.install.ProductInstallerImpl.installProduct(ProductInstallerImpl.java:211)
at com.mathworks.install.ProductInstallerImpl.installProducts(ProductInstallerImpl.java:88)
at com.mathworks.install.InstallerImpl.install(InstallerImpl.java:113)
at com.mathworks.installwizard.model.InstallTask.execute(InstallTask.java:46)
at com.mathworks.installwizard.model.AbstractBackgroundTask.execute(AbstractBackgroundTask.java:38)
at com.mathworks.installwizard.model.AbstractTask.call(AbstractTask.java:74)
at com.mathworks.installwizard.model.AbstractTask.call(AbstractTask.java:24)
at com.mathworks.wizard.worker.WorkerImpl.doInBackground(WorkerImpl.java:24)
at javax.swing.SwingWorker$1.call(Unknown Source)
at java.util.concurrent.FutureTask.run(Unknown Source)
at javax.swing.SwingWorker.run(Unknown Source)
at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
at java.lang.Thread.run(Unknown Source)
(Apr 11, 2017 04:32:33) The following error was detected while installing 3p/affymetrixsdk_glnxa64:
*/usr/local/MATLAB/R2017a/bin/glnxa64/libAffymetrixSDK.so (Permission denied)*
Would you like to retry installing 3p/affymetrixsdk_glnxa64? If you press No, the installer will exit without completing the installation. More information can be found at /tmp/mathworks_pjhellemn.log
(Apr 11, 2017 04:38:25) Installing Product: Statistics and Machine Learning Toolbox 11.1
*(Apr 11, 2017 04:38:47) java.io.FileNotFoundException: /usr/local/MATLAB/R2017a/toolbox/local/pathdef.m (Permission denied)*
at java.io.FileOutputStream.open(Native Method)
at java.io.FileOutputStream.(Unknown Source)
at com.mathworks.instutil.FileIO.copyToFileFromStream(FileIO.java:491)
at com.mathworks.instutil.FileIO.createFileFromStream(FileIO.java:166)
at com.mathworks.instutil.FileIO.createFileFromStream(FileIO.java:157)
at com.mathworks.install.command.PathdefGeneratorCommand.writePathdefFile(PathdefGeneratorCommand.java:285)
at com.mathworks.install.command.PathdefGeneratorCommand.generatePathdef(PathdefGeneratorCommand.java:93)
at com.mathworks.install.command.PathdefGeneratorCommand.execute(PathdefGeneratorCommand.java:59)
at com.mathworks.matlabinstaller.AbstractMatlabInstallConfiguration$3.execute(AbstractMatlabInstallConfiguration.java:489)
at com.mathworks.install.InstallModule$1.installProducts(InstallModule.java:202)
at com.mathworks.install.InstallerImpl.install(InstallerImpl.java:113)
at com.mathworks.installwizard.model.InstallTask.execute(InstallTask.java:46)
at com.mathworks.installwizard.model.AbstractBackgroundTask.execute(AbstractBackgroundTask.java:38)
at com.mathworks.installwizard.model.AbstractTask.call(AbstractTask.java:74)
at com.mathworks.installwizard.model.AbstractTask.call(AbstractTask.java:24)
at com.mathworks.wizard.worker.WorkerImpl.doInBackground(WorkerImpl.java:24)
at javax.swing.SwingWorker$1.call(Unknown Source)
at java.util.concurrent.FutureTask.run(Unknown Source)
at javax.swing.SwingWorker.run(Unknown Source)
at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
at java.lang.Thread.run(Unknown Source)
(Apr 11, 2017 04:38:47) Error: The application encountered an unexpected error and needs to close. You may want to try re-installing your product(s). More information can be found at /tmp/mathworks_pjhellemn.log
(Apr 11, 2017 04:40:26) Exiting with status -1
(Apr 11, 2017 04:40:27) End - Unsuccessful.
(Apr 11, 2017 04:42:03) ##################################################################
(Apr 11, 2017 04:42:03) #
(Apr 11, 2017 04:42:03) # Today's Date:
(Apr 11, 2017 04:42:03) Tue Apr 11 04:42:03 CDT 2017
(Apr 11, 2017 04:42:03)
(Apr 11, 2017 04:42:03) System Info
(Apr 11, 2017 04:42:03) OS: Linux 4.4.0-72-generic
(Apr 11, 2017 04:42:03) Arch: amd64
(Apr 11, 2017 04:42:03) Data Model: 64
(Apr 11, 2017 04:42:03) Language: en
(Apr 11, 2017 04:42:03) Java Vendor: Oracle Corporation
(Apr 11, 2017 04:42:03) Java Home: /usr/local/MATLAB/R2017a/sys/java/jre/glnxa64/jre
(Apr 11, 2017 04:42:03) Java Version: 1.7.0_60
(Apr 11, 2017 04:42:03) Java VM Name: Java HotSpot(TM) 64-Bit Server VM
(Apr 11, 2017 04:42:03) Java Class Path: /usr/local/MATLAB/R2017a/java/config/trialsinstaller/pathlist.jar
(Apr 11, 2017 04:42:03) User Name: pjhellemn
(Apr 11, 2017 04:42:03) Current Directory: /home/pjhellemn/pjh5/stat450/MLSiml/jimmy/demo_GMKL
(Apr 11, 2017 04:42:03) Input arguments:
(Apr 11, 2017 04:42:03) root /usr/local/MATLAB/R2017a
(Apr 11, 2017 04:42:03) libdir /usr/local/MATLAB/R2017a
(Apr 11, 2017 04:42:03) matlabargs "-r "matlab.internal.addons.cdAndShowAddon('BI')""
(Apr 11, 2017 04:42:03) addonMode trialMode
(Apr 11, 2017 04:42:03) entitlementId 3284817
(Apr 11, 2017 04:42:03) Argument not logged
(Apr 11, 2017 04:42:03) basecode.BI true
(Apr 11, 2017 04:42:03) standalone true
(Apr 11, 2017 04:42:04) Starting local product/component search in download directory
(Apr 11, 2017 04:42:04) Searching for archives...
(Apr 11, 2017 04:42:04) Reading /home/pjhellemn/Downloads/MathWorks/R2017a/archives
(Apr 11, 2017 04:42:04) 84 files found in /home/pjhellemn/Downloads/MathWorks/R2017a/archives
(Apr 11, 2017 04:42:04) Archive search complete. 84 total files found.
(Apr 11, 2017 04:42:04) Completed local product/component search
(Apr 11, 2017 04:42:08) Contacting MathWorks
(Apr 11, 2017 04:42:18) Retrieving license data
(Apr 11, 2017 04:42:19) Assembling product list...
(Apr 11, 2017 04:42:19) Retrieving product data
(Apr 11, 2017 04:42:20) Verifying account information
(Apr 11, 2017 04:42:26) Completed local product/component search
(Apr 11, 2017 04:42:29) Confirmation Text:
Requested Products:
Bioinformatics Toolbox 4.8
Required Products:
MATLAB 9.2
Statistics and Machine Learning Toolbox 11.1
Required products are automatically included in your trial.
Installation folder:
/usr/local/MATLAB/R2017a
Installation Size: 774 MB
(Apr 11, 2017 04:42:32) Installing Product: Bioinformatics Toolbox 4.8
(Apr 11, 2017 04:42:42) Installing Product: Statistics and Machine Learning Toolbox 11.1
*(Apr 11, 2017 04:42:59) java.io.FileNotFoundException: /usr/local/MATLAB/R2017a/toolbox/local/pathdef.m (Permission denied)*
at java.io.FileOutputStream.open(Native Method)
at java.io.FileOutputStream.(Unknown Source)
at com.mathworks.instutil.FileIO.copyToFileFromStream(FileIO.java:491)
at com.mathworks.instutil.FileIO.createFileFromStream(FileIO.java:166)
at com.mathworks.instutil.FileIO.createFileFromStream(FileIO.java:157)
at com.mathworks.install.command.PathdefGeneratorCommand.writePathdefFile(PathdefGeneratorCommand.java:285)
at com.mathworks.install.command.PathdefGeneratorCommand.generatePathdef(PathdefGeneratorCommand.java:93)
at com.mathworks.install.command.PathdefGeneratorCommand.execute(PathdefGeneratorCommand.java:59)
at com.mathworks.matlabinstaller.AbstractMatlabInstallConfiguration$3.execute(AbstractMatlabInstallConfiguration.java:489)
at com.mathworks.install.InstallModule$1.installProducts(InstallModule.java:202)
at com.mathworks.install.InstallerImpl.install(InstallerImpl.java:113)
at com.mathworks.installwizard.model.InstallTask.execute(InstallTask.java:46)
at com.mathworks.installwizard.model.AbstractBackgroundTask.execute(AbstractBackgroundTask.java:38)
at com.mathworks.installwizard.model.AbstractTask.call(AbstractTask.java:74)
at com.mathworks.installwizard.model.AbstractTask.call(AbstractTask.java:24)
at com.mathworks.wizard.worker.WorkerImpl.doInBackground(WorkerImpl.java:24)
at javax.swing.SwingWorker$1.call(Unknown Source)
at java.util.concurrent.FutureTask.run(Unknown Source)
at javax.swing.SwingWorker.run(Unknown Source)
at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
at java.lang.Thread.run(Unknown Source)
(Apr 11, 2017 04:42:59) Error: The application encountered an unexpected error and needs to close. You may want to try re-installing your product(s). More information can be found at /tmp/mathworks_pjhellemn.log
(Apr 11, 2017 04:45:03) Exiting with status -1
(Apr 11, 2017 04:45:04) End - Unsuccessful.
(Apr 11, 2017 04:46:50) ##################################################################
(Apr 11, 2017 04:46:50) #
(Apr 11, 2017 04:46:50) # Today's Date:
(Apr 11, 2017 04:46:50) Tue Apr 11 04:46:50 CDT 2017
(Apr 11, 2017 04:46:50)
(Apr 11, 2017 04:46:50) System Info
(Apr 11, 2017 04:46:50) OS: Linux 4.4.0-72-generic
(Apr 11, 2017 04:46:50) Arch: amd64
(Apr 11, 2017 04:46:50) Data Model: 64
(Apr 11, 2017 04:46:50) Language: en
(Apr 11, 2017 04:46:50) Java Vendor: Oracle Corporation
(Apr 11, 2017 04:46:50) Java Home: /usr/local/MATLAB/R2017a/sys/java/jre/glnxa64/jre
(Apr 11, 2017 04:46:50) Java Version: 1.7.0_60
(Apr 11, 2017 04:46:50) Java VM Name: Java HotSpot(TM) 64-Bit Server VM
(Apr 11, 2017 04:46:50) Java Class Path: /usr/local/MATLAB/R2017a/java/config/trialsinstaller/pathlist.jar
(Apr 11, 2017 04:46:50) User Name: pjhellemn
(Apr 11, 2017 04:46:50) Current Directory: /home/pjhellemn/pjh5/stat450/MLSiml/jimmy/demo_GMKL
(Apr 11, 2017 04:46:50) Input arguments:
(Apr 11, 2017 04:46:50) root /usr/local/MATLAB/R2017a
(Apr 11, 2017 04:46:50) libdir /usr/local/MATLAB/R2017a
(Apr 11, 2017 04:46:50) matlabargs "-r "matlab.internal.addons.cdAndShowAddon('BI')""
(Apr 11, 2017 04:46:50) addonMode trialMode
(Apr 11, 2017 04:46:50) entitlementId 3284817
(Apr 11, 2017 04:46:50) Argument not logged
(Apr 11, 2017 04:46:50) basecode.BI true
(Apr 11, 2017 04:46:50) standalone true
(Apr 11, 2017 04:46:51) Starting local product/component search in download directory
(Apr 11, 2017 04:46:51) Searching for archives...
(Apr 11, 2017 04:46:51) Reading /home/pjhellemn/Downloads/MathWorks/R2017a/archives
(Apr 11, 2017 04:46:51) 84 files found in /home/pjhellemn/Downloads/MathWorks/R2017a/archives
(Apr 11, 2017 04:46:51) Archive search complete. 84 total files found.
(Apr 11, 2017 04:46:51) Completed local product/component search
(Apr 11, 2017 04:46:53) Contacting MathWorks
(Apr 11, 2017 04:47:01) Retrieving license data
(Apr 11, 2017 04:47:02) Retrieving product data
(Apr 11, 2017 04:47:03) Verifying account information
(Apr 11, 2017 04:47:05) Completed local product/component search
(Apr 11, 2017 04:47:08) Confirmation Text:
Requested Products:
Bioinformatics Toolbox 4.8
Required Products:
MATLAB 9.2
Statistics and Machine Learning Toolbox 11.1
Required products are automatically included in your trial.
Installation folder:
/usr/local/MATLAB/R2017a
Installation Size: 774 MB
(Apr 11, 2017 04:47:14) Installing Product: Bioinformatics Toolbox 4.8
(Apr 11, 2017 04:47:21) Installing Product: Statistics and Machine Learning Toolbox 11.1
*(Apr 11, 2017 04:47:36) java.io.IOException: Error 1 setting permissions for /usr/local/MATLAB/R2017a/toolbox/local/pathdef.m. Operation not permitted*
at com.mathworks.instutil.FilePermissionsUtil.setUnixFilePerms(Native Method)
at com.mathworks.instutil.FilePermissionsUtil.setFilePermissions(FilePermissionsUtil.java:263)
at com.mathworks.instutil.FileIO.createFileFromStream(FileIO.java:168)
at com.mathworks.instutil.FileIO.createFileFromStream(FileIO.java:157)
at com.mathworks.install.command.PathdefGeneratorCommand.writePathdefFile(PathdefGeneratorCommand.java:285)
at com.mathworks.install.command.PathdefGeneratorCommand.generatePathdef(PathdefGeneratorCommand.java:93)
at com.mathworks.install.command.PathdefGeneratorCommand.execute(PathdefGeneratorCommand.java:59)
at com.mathworks.matlabinstaller.AbstractMatlabInstallConfiguration$3.execute(AbstractMatlabInstallConfiguration.java:489)
at com.mathworks.install.InstallModule$1.installProducts(InstallModule.java:202)
at com.mathworks.install.InstallerImpl.install(InstallerImpl.java:113)
at com.mathworks.installwizard.model.InstallTask.execute(InstallTask.java:46)
at com.mathworks.installwizard.model.AbstractBackgroundTask.execute(AbstractBackgroundTask.java:38)
at com.mathworks.installwizard.model.AbstractTask.call(AbstractTask.java:74)
at com.mathworks.installwizard.model.AbstractTask.call(AbstractTask.java:24)
at com.mathworks.wizard.worker.WorkerImpl.doInBackground(WorkerImpl.java:24)
at javax.swing.SwingWorker$1.call(Unknown Source)
at java.util.concurrent.FutureTask.run(Unknown Source)
at javax.swing.SwingWorker.run(Unknown Source)
at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
at java.lang.Thread.run(Unknown Source)
(Apr 11, 2017 04:47:36) Error: The application encountered an unexpected error and needs to close. You may want to try re-installing your product(s). More information can be found at /tmp/mathworks_pjhellemn.log
(Apr 11, 2017 04:48:24) Exiting with status -1
(Apr 11, 2017 04:48:25) End - Unsuccessful.
(Apr 11, 2017 12:32:00) ##################################################################
(Apr 11, 2017 12:32:00) #
(Apr 11, 2017 12:32:00) # Today's Date:
(Apr 11, 2017 12:32:00) Tue Apr 11 12:32:00 CDT 2017
(Apr 11, 2017 12:32:00)
(Apr 11, 2017 12:32:00) System Info
(Apr 11, 2017 12:32:00) OS: Linux 4.4.0-72-generic
(Apr 11, 2017 12:32:00) Arch: amd64
(Apr 11, 2017 12:32:00) Data Model: 64
(Apr 11, 2017 12:32:00) Language: en
(Apr 11, 2017 12:32:00) Java Vendor: Oracle Corporation
(Apr 11, 2017 12:32:00) Java Home: /usr/local/MATLAB/R2017a/sys/java/jre/glnxa64/jre
(Apr 11, 2017 12:32:00) Java Version: 1.7.0_60
(Apr 11, 2017 12:32:00) Java VM Name: Java HotSpot(TM) 64-Bit Server VM
(Apr 11, 2017 12:32:00) Java Class Path: /usr/local/MATLAB/R2017a/java/config/trialsinstaller/pathlist.jar
(Apr 11, 2017 12:32:00) User Name: pjhellemn
(Apr 11, 2017 12:32:00) Current Directory: /home/pjhellemn/pjh5/stat450/MLSiml/jimmy/demo_GMKL
(Apr 11, 2017 12:32:00) Input arguments:
(Apr 11, 2017 12:32:00) root /usr/local/MATLAB/R2017a
(Apr 11, 2017 12:32:00) libdir /usr/local/MATLAB/R2017a
(Apr 11, 2017 12:32:00) matlabargs "-r "matlab.internal.addons.cdAndShowAddon('BI')""
(Apr 11, 2017 12:32:00) addonMode trialMode
(Apr 11, 2017 12:32:00) entitlementId 3284817
(Apr 11, 2017 12:32:00) Argument not logged
(Apr 11, 2017 12:32:00) basecode.BI true
(Apr 11, 2017 12:32:00) standalone true
(Apr 11, 2017 12:32:01) Starting local product/component search in download directory
(Apr 11, 2017 12:32:01) Searching for archives...
(Apr 11, 2017 12:32:01) /home/pjhellemn/Downloads/MathWorks/R2017a/archives doesn't exist ... skipping.
(Apr 11, 2017 12:32:01) Archive search complete. 0 total files found.
(Apr 11, 2017 12:32:01) Completed local product/component search
(Apr 11, 2017 12:32:03) Contacting MathWorks
(Apr 11, 2017 12:32:08) Error: Unable to write to
/usr/local/MATLAB/R2017a.
Select a different folder.
(Apr 11, 2017 12:32:15) The installation is not complete. If you quit now, you will need to restart the installation from the beginning.
Do you really want to quit now?
(Apr 11, 2017 12:32:16) Exiting with status -1
(Apr 11, 2017 12:32:17) End - Unsuccessful.
0 Comments
Answers (9)
Mark
on 28 Oct 2017
Edited: Mark
on 28 Oct 2017
/path/to/installation/directory is the path to your matlab installation if you type matlabroot the matlab terminal it will tell you e.g
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/178962/image.png)
sudo chown -R $LOGNAME: /usr/local/MATLAB/R2017b
change the path accordingly to matlabroot's output
Thats it
54 Comments
Ridwanullah Adeyinka
on 2 Aug 2024 at 17:21
Edited: Ridwanullah Adeyinka
on 2 Aug 2024 at 17:22
Thank you! It works on Ubuntu 20 and MATLAB R2021b.
Avinash Singh
on 19 May 2017
Edited: Avinash Singh
on 19 May 2017
Had a similar problem. Try Running it as a superuser: sudo Matlab
Then run the add on manager and download the ones you want.
If this does not work, you can try changing permissions of the installation folder using
sudo chmod -R o+rw /usr/local/Matlab/R2017X
(careful with this step, reading about permissions in Ubuntu recommended)
15 Comments
S Ashish
on 2 Jun 2023
THANKS A TON !!!!!!!!!!!!!!!!!! IT WORKED LIKE A CHARM. YOU ARE A LIFE SAVER. APPRECIATE IT !!! GOD BLESS !!!
Levi Vande Kamp
on 18 Oct 2021
If you want to avoid messing with folder permissions, here's what worked for me:
- Add an addon like normal until you get the permission error.
- Open a terminal and run "ps -eo cmd | grep AddOnProductInstaller | head -n 1"
- You should see AddOnProductInstaller from your installation dir with (very) long cmd line arguments.
- Run this as sudo
10 Comments
Luigi Avallone
on 21 Mar 2020
I have the same problem with Ubuntu 19.04 and matlab R2019b, for the installation I succed using sudo ./install instead of only ./install. But becasue the add-ones are installed trough matlab and not terminal I'm not able to use the sudo command. I tried all the solution proposed in this page but they weren't useful for me.
What should I do?
7 Comments
Nupur
on 28 Nov 2023
If you are running the Matlab in container and if this issue is persistent then this is how I solved the problem.
sudo chmod -R o+rw /opt/matlab/R2022b
sudo chown -R matlab:matlab /opt/matlab/R2022b
Then restart the Matlab and hope the problem is solved.
Rollin Baker
on 14 Apr 2017
Hi Paul,
For any installation issues, you will want to contact MathWorks Technical Support. They will likely be able to help resolve this faster than waiting for a response on this forum!
0 Comments
Anubhav Halder
on 10 Jan 2020
Thanks all of you this discussion helped me a lot too.. same problem I had too
0 Comments
Sreeshma K
on 2 Mar 2022
I also have similair problem. I installed matlabR2021b in ubuntu 21.04. But instead of sudo ./install just ./install worked for me. I installed MATLAB in home folder. But when I type matlab in terminal it is showing that matlab command not found. I have tried all of the above solutions and nothing worked for me.Plz help me.
3 Comments
Hasan
on 10 Dec 2022
I recommend that you try installing toolboxes with administrative privileges. For instance:
sudo /usr/local/matlab/R2020a/bin/matlab
Walter Nieminen
on 6 Sep 2022
So I had this battle today with ubuntu 20.04 and matlabR2022a. Tried everythin I found searching the internet but nothing seemed to work.
I ended up installing the needed toolboxes with the matlab installer
0 Comments
See Also
Categories
Find more on Introduction to Installation and Licensing in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!