如何在 Ubuntu 14.04 上删除 matlab

如何在 Ubuntu 14.04 上删除 matlab

我无法从 Ubuntu 14.04 中卸载 matlab。当我运行sudo apt-get purge matlab时,它会显示 matlab 配置页面,但当我取消安装过程时,它会显示:

Reading package lists... Done
Building dependency tree       
Reading state information... Done
Package 'matlab' is not installed, so not removed
0 upgraded, 0 newly installed, 0 to remove and 148 not upgraded.
1 not fully installed or removed.
After this operation, 0 B of additional disk space will be used.
Setting up matlab-support (0.0.19) ...
No default Matlab path found. Exiting.
dpkg: error processing package matlab-support (--configure):
 subprocess installed post-installation script returned error exit status 1
Errors were encountered while processing:
 matlab-support
E: Sub-process /usr/bin/dpkg returned an error code (1)

我如何卸载 matlab?

答案1

您只需删除包含 matlab 安装的文件夹即可。就是这样。


然而如果如果你有一个许可证管理器,你首先需要关闭它并删除其文件。我不需要这样做,但你可以这样做:

  • 要关闭它:文件夹lmdown中应该有一个名为“matlab”的文件etc。运行它。

  • 要删除其文件:运行sudo rm /var/tmp/lm_TMW*

您可能还想删除指向 matlab 二进制文件的符号链接。运行:

rm /usr/local/bin/matlab /usr/local/bin/mcc /usr/local/bin/mex /usr/local/bin/mbuild

...另外不要忘记删除matlab-support。运行:

sudo apt-get purge matlab-support

来源

答案2

sudo apt-get purge matlab-support在终端中运行以将其删除。

相关内容