解决VirtualBox无法共享粘贴板的问题(Debian)

栏目: 服务器 · 发布时间: 7年前

内容简介:一直使用如果执行可看到错误信息:

一直使用 VirtualBox 安装的 Debian 环境编译 WD MyCloud 的代码。但是最近 VirtualBox 升级后,升级增强功能,然后共享粘贴板就不能使用了。

如果执行

$ VBoxClient --clipboard

可看到错误信息:

VBoxClient: Failed to connect to the VirtualBox kernel service, rc=VERR_FILE_NOT_FOUND

如下图:

解决VirtualBox无法共享粘贴板的问题(Debian)

重新执行安装,才注意到如下错误信息:

longsky@debian:/media/cdrom0$ sudo bash VBoxLinuxAdditions.run 
[sudo] password for longsky: 
Verifying archive integrity... All good.
Uncompressing VirtualBox 5.2.20 Guest Additions for Linux........
VirtualBox Guest Additions installer
Removing installed version 5.2.20 of VirtualBox Guest Additions...
Copying additional installer modules ...
Installing additional modules ...
VirtualBox Guest Additions: Building the VirtualBox Guest Additions kernel modules.  This may take a while.
 
This system is currently not set up to build kernel modules.
Please install the Linux kernel "header" files matching the current kernel
for adding new hardware support to the system.
The distribution packages containing the headers are probably:
    linux-headers-amd64 linux-headers-3.16.0-7-amd64
update-initramfs: Generating /boot/initrd.img-3.16.0-7-amd64
VirtualBox Guest Additions: Starting.
VirtualBox Guest Additions: Building the VirtualBox Guest Additions kernel modules.  This may take a while.
 
This system is currently not set up to build kernel modules.
Please install the Linux kernel "header" files matching the current kernel
for adding new hardware support to the system.
The distribution packages containing the headers are probably:
    linux-headers-amd64 linux-headers-3.16.0-7-amd64
update-initramfs: Generating /boot/initrd.img-3.16.0-7-amd64

原来是缺少了编译依赖的内核头文件,导致升级失败,而且以前版本已经安装好的版本却已经被删除了。

这部分头文件以前是存在的,但是随着系统内核的升级更新,头文件却没有自动被更新,导致这个问题。

执行如下命令安装缺少的软件包:

$ sudo apt-get install linux-headers-amd64

参考链接

Bidirectional Drag and Drop/Shared Clipboard is not working with VirtualBox Kali Linux


以上就是本文的全部内容,希望对大家的学习有所帮助,也希望大家多多支持 码农网

查看所有标签

猜你喜欢:

本站部分资源来源于网络,本站转载出于传递更多信息之目的,版权归原作者或者来源机构所有,如转载稿涉及版权问题,请联系我们

传统企业,互联网在踢门

传统企业,互联网在踢门

刘润 / 中国华侨出版社 / 2014-7 / 42

1、第一本传统企业互联网化的战略指导书,首次提出“互联网加减法”,迄今最清晰的转型公式 鉴于目前很多传统企业“老办法不管用,新办法不会用”的现状,本书将用“互联网的加减法” 这个简单模型清晰地说明商业新时代的游戏规则和全新玩法,帮助传统企业化解“本领恐慌” 。 2、小米董事长&CEO 金山软件董事长雷军,新东方教育科技集团董事长兼CEO俞敏洪,复旦大学管理学院院长陆雄文,复旦大学博士、......一起来看看 《传统企业,互联网在踢门》 这本书的介绍吧!

RGB转16进制工具
RGB转16进制工具

RGB HEX 互转工具

MD5 加密
MD5 加密

MD5 加密工具

HEX HSV 转换工具
HEX HSV 转换工具

HEX HSV 互换工具