K1596357 2022-01-16 19:01
浏览 22
已结题

为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盘,发现需要安装增强包,兜兜转转也没弄明白,感谢指点

  • 写回答

0条回答 默认 最新

    报告相同问题?

    问题事件

    • 系统已结题 1月24日
    • 创建了问题 1月16日

    悬赏问题

    • ¥100 有人会搭建GPT-J-6B框架吗?有偿
    • ¥15 求差集那个函数有问题,有无佬可以解决
    • ¥15 【提问】基于Invest的水源涵养
    • ¥20 微信网友居然可以通过vx号找到我绑的手机号
    • ¥15 寻一个支付宝扫码远程授权登录的软件助手app
    • ¥15 解riccati方程组
    • ¥15 display:none;样式在嵌套结构中的已设置了display样式的元素上不起作用?
    • ¥15 使用rabbitMQ 消息队列作为url源进行多线程爬取时,总有几个url没有处理的问题。
    • ¥15 Ubuntu在安装序列比对软件STAR时出现报错如何解决
    • ¥50 树莓派安卓APK系统签名