How to completely uninstall MATLAB?
There is no uninstaller for MATLAB on UNIX or Linux. To remove MATLAB you simply need to delete the MATLAB installation following the instructions below:
-
If you are running a license manager for MATLAB, shut down the license manager using the
lmdown
script located in MATLAB's etc directory. If this folder does not exist, you are not running the FlexNet license manager. For example:[root@localhost ~] /usr/local/MATLAB/R2010b/etc/lmdown
-
You should also remove any license manager files in the
/var/tmp
directory. These files should begin withlm_TMW
, e. g.:[root@localhost ~] rm /var/tmp/lm_TMW*
-
Remove the entire root MATLAB directory using the
rm -rf
command, e. g.:[root@localhost ~] rm -rf /usr/local/MATLAB/R2010b
-
Remove any symlinks to MATLAB binaries on the path, e. g.:
[root@localhost ~] rm /usr/local/bin/matlab /usr/local/bin/mcc /usr/local/bin/mex /usr/local/bin/mbuild
Source
Try:
sudo apt-get remove matlab-support
I got the same problem, and it seemed to have happened because I've installed a MATLAB support tool before I installed MATLAB itself.