51Testing软件测试论坛
标题:
为vbox上的kali linux安装增强包时出现问题
[打印本页]
作者:
测试积点老人
时间:
2022-1-17 11:02
标题:
为vbox上的kali linux安装增强包时出现问题
自己琢磨了一下午,不知道问题出在哪里,把全过程打出来
运行vbox自带增强包
./VBoxLinuxAdditions.run
复制代码
显示没有头文件,输入如下
apt-get install gcc make linux-headers-$(uname -r)
复制代码
没有文件,被建议换image,输入
apt-get install linux-image
复制代码
再次尝试安装
./VBoxLinuxAdditions.run
复制代码
失败,仍旧显示没有头文件,找不到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)
复制代码
成功,开始安装增强包
./VBoxLinuxAdditions.run
复制代码
失败,运行结果如下
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盘,发现需要安装增强包,兜兜转转也没弄明白,感谢指点
作者:
qqq911
时间:
2022-1-18 10:26
看vboxadd-setup.log日志,分析原因
欢迎光临 51Testing软件测试论坛 (http://bbs.51testing.com/)
Powered by Discuz! X3.2