LINUX虚拟机安装增强功能时报错: Kernel headers not found for target kernel. Please install them and execute

简介: LINUX虚拟机安装增强功能时报错: Kernel headers not found for target kernel. Please install them and execute

嗯?这事就怪了。

  • 具体错误:
./VBoxLinuxAdditions.run 
Verifying archive integrity... All good.
Uncompressing VirtualBox 6.0.12 Guest Additions for Linux........
VirtualBox Guest Additions installer
Removing installed version 6.0.12 of VirtualBox Guest Additions...
Copying additional installer modules ...
Installing additional modules ...
VirtualBox Guest Additions: Starting.
VirtualBox Guest Additions: Building the VirtualBox Guest Additions kernel 
modules.  This may take a while.
VirtualBox Guest Additions: To build modules for other installed kernels, run
VirtualBox Guest Additions:   /sbin/rcvboxadd quicksetup <version>
VirtualBox Guest Additions: or
VirtualBox Guest Additions:   /sbin/rcvboxadd quicksetup all
VirtualBox Guest Additions: Kernel headers not found for target kernel 
4.19.0-6-amd64. Please install them and execute
  /sbin/rcvboxadd setup
VirtualBox Guest Additions: Running kernel modules will not be replaced until 
the system is restarted
  • 安装依赖库

注意一句“Kernel headers not found for target kernel”,缺少东西?

apt install gcc make dkms
apt install build-essential linux-headers-`uname -r`

(还有介绍使用yum的,是另外一种系统)。


  • 重新安装增强功能
  • 共享文件夹
  • 再挂载共享:设置,共享文件夹,改名为shared_win
  • mkdir shared_linux
  • sudo mount -t vboxsf -o "uid=csdn,gid=csdn,dmode=0755,fmode=0755" shared_win ~/shared_linux


-o之后并无用处,只是显得更砖业一些。


目录
相关文章
|
Linux
LINUX虚拟机安装增强功能时报错:/sbin/mount.vboxsf: mounting failed with the error: No such device
LINUX虚拟机安装增强功能时报错:/sbin/mount.vboxsf: mounting failed with the error: No such device
671 0
|
Linux
LINUX虚拟机安装增强功能
LINUX虚拟机安装增强功能
122 0
LINUX01_使用NET模式安装虚拟机(八)
LINUX01_使用NET模式安装虚拟机(八)
LINUX01_使用NET模式安装虚拟机(八)
LINUX01_使用NET模式安装虚拟机(七)
LINUX01_使用NET模式安装虚拟机(七)
115 0
LINUX01_使用NET模式安装虚拟机(七)
|
数据安全/隐私保护
LINUX01_使用NET模式安装虚拟机(六)
LINUX01_使用NET模式安装虚拟机(六)
108 0
LINUX01_使用NET模式安装虚拟机(六)
|
存储 Linux
LINUX01_使用NET模式安装虚拟机(五)
LINUX01_使用NET模式安装虚拟机(五)
LINUX01_使用NET模式安装虚拟机(五)
|
Linux Windows
LINUX01_使用NET模式安装虚拟机(四)
LINUX01_使用NET模式安装虚拟机(四)
LINUX01_使用NET模式安装虚拟机(四)
|
存储 IDE 开发工具
LINUX01_使用NET模式安装虚拟机(三)
LINUX01_使用NET模式安装虚拟机(三)
103 0
LINUX01_使用NET模式安装虚拟机(三)
|
Linux
LINUX01_使用NET模式安装虚拟机(二)
LINUX01_使用NET模式安装虚拟机(二)
118 0
LINUX01_使用NET模式安装虚拟机(二)
|
Linux 虚拟化
LINUX01_使用NET模式安装虚拟机(一)
LINUX01_使用NET模式安装虚拟机(一)
LINUX01_使用NET模式安装虚拟机(一)