51Testing软件测试论坛

标题: 为vbox上的kali linux安装增强包时出现问题 [打印本页]

作者: 测试积点老人    时间: 2022-1-17 11:02
标题: 为vbox上的kali linux安装增强包时出现问题
自己琢磨了一下午,不知道问题出在哪里,把全过程打出来
运行vbox自带增强包
  1. ./VBoxLinuxAdditions.run
复制代码
显示没有头文件,输入如下
  1. apt-get install gcc make linux-headers-$(uname -r)
复制代码
没有文件,被建议换image,输入
  1. apt-get install linux-image
复制代码
再次尝试安装
  1. ./VBoxLinuxAdditions.run
复制代码
失败,仍旧显示没有头文件,找不到linux-headers
根据网上帖子升级内核发行版本本身
  1. sudo apt-get update # this pulls the latest packages list from the kali sources repo
  2. sudo apt-get -y dist-upgrade # when installing this, you would see the latest kernel
  3.                         # image in the list of packages to be installed,something
  4.                         # like" linux-image-4.5.0-kali1-amd64"
  5. reboot # MOST IMPORTANT STEP! make sure you reboot the machine via this cmd OR
  6.                         # shutdown, restart forcefully after completing prev cmds
  7. uname -r # check that the kernel release has updated
复制代码
升级完成,尝试安装
  1. apt-get install gcc make linux-headers-$(uname -r)
复制代码
成功,开始安装增强包
  1. ./VBoxLinuxAdditions.run
复制代码
失败,运行结果如下
  1. Verifying archive integrity... All good.
  2. Uncompressing VirtualBox 6.1.30 Guest Additions for Linux........
  3. VirtualBox Guest Additions installer
  4. Removing installed version 6.1.30 of VirtualBox Guest Additions...
  5. Copying additional installer modules ...
  6. Installing additional modules ...
  7. VirtualBox Guest Additions: Starting.
  8. VirtualBox Guest Additions: Building the VirtualBox Guest Additions kernel
  9. modules.  This may take a while.
  10. VirtualBox Guest Additions: To build modules for other installed kernels, run
  11. VirtualBox Guest Additions:   /sbin/rcvboxadd quicksetup <version>
  12. VirtualBox Guest Additions: or
  13. VirtualBox Guest Additions:   /sbin/rcvboxadd quicksetup all
  14. VirtualBox Guest Additions: Building the modules for kernel
  15. 5.15.0-kali2-686-pae.

  16. VirtualBox Guest Additions: Look at /var/log/vboxadd-setup.log to find out what
  17. went wrong
  18. VirtualBox Guest Additions: Running kernel modules will not be replaced until
  19. the system is restarted
复制代码
最开始是想挂载u盘,发现需要安装增强包,兜兜转转也没弄明白,感谢指点


作者: qqq911    时间: 2022-1-18 10:26
看vboxadd-setup.log日志,分析原因




欢迎光临 51Testing软件测试论坛 (http://bbs.51testing.com/) Powered by Discuz! X3.2