how-to:在Ubuntu Linux中卸载VirtualBox

时间:2020-07-27 12:59:43  来源:igfitidea点击:

在本教程中,我们将学习如何使用命令行界面卸载Ubuntu Linux上的VirtualBox。

在卸载VirtualBox之前,我们可以运行 'dpkg --get-selections | grep -i virtualbox' 命令检查ubuntu桌面上是否安装了VirtualBox。

要完全卸载VirtualBox,请运行以下两个命令:

apt-get purge virtualbox*
apt-get autoremove

在VirtualBox安装过程中,在Ubuntu上创建的“vboxsf”和'vboxUsers',两个Linux用户组,不会自动删除。

我们可以使用“groupdel”命令手动删除它们:

groupdel vboxusers
groupdel vboxsf

uninstall命令也不会删除虚拟机文件夹,其中虚拟机已保存。
在Ubuntu中,这是我们主目录中的“VirtualBox VMS”文件夹。