您当前的位置: 首页 >  ar

柳鲲鹏

暂无认证

  • 0浏览

    0关注

    4642博文

    0收益

  • 0浏览

    0点赞

    0打赏

    0留言

私信
关注
热门博文

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

柳鲲鹏 发布时间:2020-01-16 11:36:45 ,浏览量:0

嗯?这事就怪了。

  • 具体错误:
./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 
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之后并无用处,只是显得更砖业一些。

关注
打赏
1665724893
查看更多评论
立即登录/注册

微信扫码登录

0.0662s