Virtualbox 卸载问题 16.04

Virtualbox 卸载问题 16.04

我有 virtualbox,我不记得我是怎么下载的。我想更新,所以我要删除这个版本。要使用我的 virtualbox,我virtualbox在终端中输入,但当我输入时,sudo apt-get remove virtualbox它说;

Reading package lists... Done
Building dependency tree       
Reading state information... Done
Package 'virtualbox' is not installed, so not removed
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.

那么我该如何卸载它?

答案1

根据您的版本...尝试此命令

sudo apt-get remove VirtualBox-5.1

通过启动应用程序找到您的版本,然后选择“帮助”->“关于”。您将获得一个长版本号(例如 5.1.18r114002)。忽略小数点后的任何内容;在我的情况下,它是版本“5.1”。

答案2

未调用该包虚拟盒可能。查找名称的一种方法是输入

aptitude search virtualbox*

在终端中,它会显示所有与 VirtualBox 相关的软件包,包括已安装的软件包。已安装的软件包以字母开头

另一种方法是使用突触并输入虚拟盒在搜索框中。它将向您显示已安装的软件包的调用方式。

答案3

如果您已经从 Oracle 网站手动安装了 Virtualbox 包,请使用以下命令:

sudo dpkg -r virtualbox-5.2

将“5.2”更改为您已安装的版本。

如果您需要检查您的电脑上安装的 VirtualBox 版本,请使用以下命令:

dpkg-query --show |grep -i virtualbox

答案4

如果你没有从存储库安装它,并且你找不到它,那么dpkg -l你可能已经从Oracle 网站并手动安装。如果是这样,则引用自第 2.3.3.4 节(第 40 页)手册与您的情况相关。

Before updating or uninstalling VirtualBox, you must terminate any virtual machines which are
currently running and exit the VirtualBox or VBoxSVC applications. To update VirtualBox, simply
run the installer of the updated version. To uninstall VirtualBox, invoke the installer like this:
sudo ./VirtualBox.run uninstall
or as root
./VirtualBox.run uninstall
. Starting with version 2.2.2, you can uninstall the .run package by invoking
/opt/VirtualBox/uninstall.sh
To manually uninstall VirtualBox, simply undo the steps in the manual installation in reverse
order. 

相关内容