要在Ubuntu上卸载VirtualBox及其组件,请按照以下步骤操作:
打开终端(快捷键:Ctrl + Alt + T)
首先,停止所有正在运行的VirtualBox虚拟机。在终端中输入以下命令:
sudo /etc/init.d/vboxdrv stop
sudo apt-get remove --purge virtualbox
要删除这些文件,请在终端中输入以下命令:
rm -rf ~/.config/VirtualBox
rm -rf ~/VirtualBox\ VMs
sudo apt-get autoremove
sudo apt-get update
现在,VirtualBox及其组件已从您的Ubuntu系统中完全卸载。如果您以后想要重新安装VirtualBox,可以从官方网站下载适用于Linux的VirtualBox安装包,并按照官方文档的说明进行安装。