我尝试使用“remove”命令删除包,但没有任何删除请求,尽管找到了一些东西。我是新手,所以也许我做错了什么?
vic@vic-VirtualBox:~$ sudo apt-get remove virtualbox-guest*
Reading package lists... Done
Building dependency tree
Reading state information... Done
Note, selecting 'virtualbox-guest-utils' for glob 'virtualbox-guest*'
Note, selecting 'virtualbox-guest-modules' for glob 'virtualbox-guest*'
Note, selecting 'virtualbox-guest-additions-iso' for glob 'virtualbox-guest*'
Note, selecting 'virtualbox-guest-dkms' for glob 'virtualbox-guest*'
Note, selecting 'virtualbox-guest-dkms-hwe' for glob 'virtualbox-guest*'
Note, selecting 'virtualbox-guest-modules-hwe' for glob 'virtualbox-guest*'
Note, selecting 'virtualbox-guest-x11-hwe' for glob 'virtualbox-guest*'
Note, selecting 'virtualbox-guest-source' for glob 'virtualbox-guest*'
Note, selecting 'virtualbox-guest-source-hwe' for glob 'virtualbox-guest*'
Note, selecting 'virtualbox-guest-utils-hwe' for glob 'virtualbox-guest*'
Note, selecting 'virtualbox-guest-x11' for glob 'virtualbox-guest*'
Note, selecting 'virtualbox-guest-additions' for glob 'virtualbox-guest*'
Package 'virtualbox-guest-additions' is not installed, so not removed
Package 'virtualbox-guest-modules-hwe' is not installed, so not removed
Package 'virtualbox-guest-additions-iso' is not installed, so not removed
Package 'virtualbox-guest-dkms-hwe' is not installed, so not removed
Package 'virtualbox-guest-source-hwe' is not installed, so not removed
Package 'virtualbox-guest-utils-hwe' is not installed, so not removed
Package 'virtualbox-guest-x11-hwe' is not installed, so not removed
Package 'virtualbox-guest-dkms' is not installed, so not removed
Package 'virtualbox-guest-source' is not installed, so not removed
Package 'virtualbox-guest-utils' is not installed, so not removed
Package 'virtualbox-guest-x11' is not installed, so not removed
0 upgraded, 0 newly installed, 0 to remove and 381 not upgraded.
#
vic@vic-VirtualBox:~$ ls opt/VBoxGuestAdditions-*
ls: cannot access 'opt/VBoxGuestAdditions-*': No such file or directory
vic@vic-VirtualBox:~$ dpkg -l | grep -i virtualbox
vic@vic-VirtualBox:~$ sudo vbox-uninstall-guest-additions
[sudo] password for vic:
Removing installed version 5.2.18 of VirtualBox Guest Additions...
vic@vic-VirtualBox:~$ ^C
vic@vic-VirtualBox:~$
答案1
看来您已从 ISO 文件安装了 VirtualBox Guest Additions。在这种情况下,它们是在没有 APT 帮助的情况下安装到系统中的(因此apt-get
并不dpkg
知道它们)。
您应该运行以下命令从客户系统中删除 VirtualBox Guest Additions:
sudo vbox-uninstall-guest-additions
删除后,您将不再拥有来宾添加文件夹/opt/VBoxGuestAdditions-*
。