TA的每日心情 | 无聊 前天 09:47 |
---|
签到天数: 528 天 连续签到: 1 天 [LV.9]测试副司令
|
1测试积点
自己琢磨了一下午,不知道问题出在哪里,把全过程打出来
运行vbox自带增强包
显示没有头文件,输入如下
- apt-get install gcc make linux-headers-$(uname -r)
复制代码 没有文件,被建议换image,输入
- apt-get install linux-image
复制代码 再次尝试安装
失败,仍旧显示没有头文件,找不到linux-headers
根据网上帖子升级内核发行版本本身
- sudo apt-get update # this pulls the latest packages list from the kali sources repo
- sudo apt-get -y dist-upgrade # when installing this, you would see the latest kernel
- # image in the list of packages to be installed,something
- # like" linux-image-4.5.0-kali1-amd64"
- reboot # MOST IMPORTANT STEP! make sure you reboot the machine via this cmd OR
- # shutdown, restart forcefully after completing prev cmds
- uname -r # check that the kernel release has updated
复制代码 升级完成,尝试安装
- apt-get install gcc make linux-headers-$(uname -r)
复制代码 成功,开始安装增强包
失败,运行结果如下
- Verifying archive integrity... All good.
- Uncompressing VirtualBox 6.1.30 Guest Additions for Linux........
- VirtualBox Guest Additions installer
- Removing installed version 6.1.30 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: Building the modules for kernel
- 5.15.0-kali2-686-pae.
-
- VirtualBox Guest Additions: Look at /var/log/vboxadd-setup.log to find out what
- went wrong
- VirtualBox Guest Additions: Running kernel modules will not be replaced until
- the system is restarted
复制代码 最开始是想挂载u盘,发现需要安装增强包,兜兜转转也没弄明白,感谢指点
|
|