K1596357 2022-01-17 17:43
浏览 20
已结题

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


第二日补充,自己看不懂日志,贴上来

img

img

  • 写回答

0条回答 默认 最新

    报告相同问题?

    问题事件

    • 系统已结题 1月25日
    • 创建了问题 1月17日

    悬赏问题

    • ¥15 CCF-CSP 2023 第三题 解压缩(50%)
    • ¥30 comfyui openpose报错
    • ¥20 Wpf Datarid单元格闪烁效果的实现
    • ¥15 图像分割、图像边缘提取
    • ¥15 sqlserver执行存储过程报错
    • ¥100 nuxt、uniapp、ruoyi-vue 相关发布问题
    • ¥15 浮窗和全屏应用同时存在,全屏应用输入法无法弹出
    • ¥100 matlab2009 32位一直初始化
    • ¥15 Expected type 'str | PathLike[str]…… bytes' instead
    • ¥15 三极管电路求解,已知电阻电压和三级关放大倍数