virtualbox guest additions can’t install in ubuntu 16.04

By Hakop Hakopian

I can’t install virtualbox guest additions in ubuntu 16.04 LTS

    Deleting module version: 5.0.24
completely from the DKMS tree.
Unpacking virtualbox-dkms (5.0.24-dfsg-0ubuntu1.16.04.1) over (5.0.24-dfsg-0ubuntu1.16.04.1) ...
Setting up virtualbox-dkms (5.0.24-dfsg-0ubuntu1.16.04.1) ...
Loading new virtualbox-5.0.24 DKMS files...
Building only for 4.4.0-59-generic
Building initial module for 4.4.0-59-generic
ERROR: Cannot create report: [Errno 17] File exists: '/var/crash/virtualbox-dkms.0.crash'
Error! Bad return status for module build on kernel: 4.4.0-59-generic (x86_64)
Consult /var/lib/dkms/virtualbox/5.0.24/build/make.log for more information.
Job for virtualbox.service failed because the control process exited with error code. See "systemctl status virtualbox.service" and "journalctl -xe" for details.
invoke-rc.d: initscript virtualbox, action "restart" failed.

systemctl status virtualbox.service show

 virtualbox.service: Control process exited, code=exited status=1
systemd[1]: Failed to start LSB: VirtualBox Linux kernel module.
systemd[1]: virtualbox.service: Unit entered failed state.
systemd[1]: virtualbox.service: Failed with result 'exit-code'.

log file

DKMS make.log for virtualbox-5.0.24 for kernel 4.4.0-59-generic (x86_64)
середа, 11 січня 2017 13:47:50 +0200
make: Entering directory '/usr/src/linux-headers-4.4.0-59-generic'
Makefile:693: Cannot use CONFIG_CC_STACKPROTECTOR_STRONG: -fstack-protector-strong not supported by compiler
  LD      /var/lib/dkms/virtualbox/5.0.24/build/built-in.o
  LD      /var/lib/dkms/virtualbox/5.0.24/build/vboxdrv/built-in.o
  CC [M]  /var/lib/dkms/virtualbox/5.0.24/build/vboxdrv/linux/SUPDrv-linux.o
gcc: error: unrecognized command line option ‘-fstack-protector-strong'
scripts/ recipe for target '/var/lib/dkms/virtualbox/5.0.24/build/vboxdrv/linux/SUPDrv-linux.o' failed
make[2]: *** [/var/lib/dkms/virtualbox/5.0.24/build/vboxdrv/linux/SUPDrv-linux.o] Error 1
scripts/ recipe for target '/var/lib/dkms/virtualbox/5.0.24/build/vboxdrv' failed
make[1]: *** [/var/lib/dkms/virtualbox/5.0.24/build/vboxdrv] Error 2
Makefile:1420: recipe for target '_module_/var/lib/dkms/virtualbox/5.0.24/build' failed
make: *** [_module_/var/lib/dkms/virtualbox/5.0.24/build] Error 2
make: Leaving directory '/usr/src/linux-headers-4.4.0-59-generic'

intel virtualization technology enable

secure boot off

I fixed when update gcc


Leave a Reply