mat*_*ots 25 debian virtualbox
当我运行时,sh /media/cdrom/VBoxLinuxAdditions.run
我收到以下警告消息:
You appear to have a version of the VBoxGuestAdditions software
on your system which was installed from a different source or using a
different type of installer. If you installed it from a package from your
Linux distribution or if it is a default part of the system then we strongly
recommend that you cancel this installation and remove it properly before
installing this version. If this is simply and older or a damaged
installation you may safely proceed.
Run Code Online (Sandbox Code Playgroud)
如何卸载作为 Debian 默认部分的 VBoxGuestAdditions?
编辑:
在阅读并尝试了 jw013 的答案后,我怀疑也许我只是不知道正确的包名称。我做了更多的搜索,发现我可以看到通过运行安装的软件包列表dpkg -l
。所以我跑了
dpkg -l | grep virtualbox
Run Code Online (Sandbox Code Playgroud)
然后我得到了
ii virtualbox-ose-guest-dkms ...
ii virtualbox-ose-guest-utils ...
ii virtualbox-ose-guest-x11 ...
Run Code Online (Sandbox Code Playgroud)
然后我通过运行手动删除每个
apt-get remove virtualbox-ose-guest-dkms virtualbox-ose-guest-utils virtualbox-ose-guest-x11
Run Code Online (Sandbox Code Playgroud)
到目前为止,看起来这可能是解决方案,尽管这很奇怪,因为当我运行该命令时,它想要安装 38 个新软件包,其中大多数与 xserver 相关。
编辑2:
我使用全新安装尝试了上述操作(合理的最小安装 - 使用了 businesscard.iso,当 tasksel 出现时没有任何标记),然后按照此处的说明进行操作,一切正常!
jw0*_*013 15
如果您不记得或不知道旧安装的来宾添加来自何处,则很难判断发生了什么。
你virtualbox-guest-additions
安装了吗?您可以通过运行(作为超级用户)来卸载它
apt-get remove virtualbox-guest-additions
Run Code Online (Sandbox Code Playgroud)
如果不是这样,我建议尝试按照VirtualBox 网站上的说明进行操作。由于您似乎已经安装了旧版本的来宾添加,请尝试卸载说明:
sh ./VBoxLinuxAdditions.run uninstall
Run Code Online (Sandbox Code Playgroud)
Bri*_*rns 11
这对我有用-
sudo apt-get purge virtualbox*
Run Code Online (Sandbox Code Playgroud)
来源:https : //forums.virtualbox.org/viewtopic.php?f=7&t=65539
这解释了这个问题——
请注意,某些 Linux 发行版已经附带了全部或部分 VirtualBox Guest Additions。您可以选择保留发行版的 Guest Additions,但这些通常不是最新的并且功能有限,因此我们建议将它们替换为 VirtualBox 附带的 Guest Additions。VirtualBox Linux Guest Additions 安装程序尝试检测现有安装并替换它们,但根据发行版如何集成 Guest Additions,这可能需要一些手动交互。强烈建议在更换预安装的 Guest Additions 之前拍摄虚拟机的快照。
https://www.virtualbox.org/manual/ch04.html