安装"安装增强功能" Insert Guest Additions CD image…时会报错

报错信息如下:
Verifying archive integrity… All good.
Uncompressing VirtualBox 6.1.16 Guest Additions for Linux…
VirtualBox Guest Additions installer
Removing installed version 6.1.16 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 4.18.0-10-generic.
This system is currently not set up to build kernel modules.
Please install the gcc make perl packages from your distribution.
VirtualBox Guest Additions: Running kernel modules will not be replaced until
the system is restarted
Press Return to close this window…
可用以下命令来解决此报错
sudo apt-get update
sudo apt-get install gcc make perl

再次安装"安装增强功能" Insert Guest Additions CD image…
Verifying archive integrity… All good.
Uncompressing VirtualBox 6.1.16 Guest Additions for Linux…
VirtualBox Guest Additions installer
Removing installed version 6.1.16 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 4.18.0-10-generic.
update-initramfs: Generating /boot/initrd.img-4.18.0-10-generic
VirtualBox Guest Additions: Running kernel modules will not be replaced until
the system is restarted
Press Return to close this window…
在尝试安装VirtualBox 6.1.16 Guest Additions时遇到错误,提示缺少gcc、make和perl包。通过运行`sudo apt-get update`和`sudo apt-get install gcc make perl`命令安装所需组件后,成功解决报错,完成Guest Additions的安装。
477

被折叠的 条评论
为什么被折叠?



