1. $ sudo sh ./VBoxLinuxAdditions.run
  2. Verifying archive integrity... All good.
  3. Uncompressing VirtualBox 5.0.40 Guest Additions for Linux............
  4. VirtualBox Guest Additions installer
  5. Removing installed version 5.0.40 of VirtualBox Guest Additions...
  6. Removing existing VirtualBox non-DKMS kernel modules ...done.
  7. update-initramfs: Generating /boot/initrd.img-4.13.0-16-generic
  8. Copying additional installer modules ...
  9. Installing additional modules ...
  10. Removing existing VirtualBox non-DKMS kernel modules ...done.
  11. Building the VirtualBox Guest Additions kernel modules
  12. The headers for the current running kernel were not found. If the following
  13. module compilation fails then this could be the reason.
  14. Building the main Guest Additions module ...fail!
  15. (Look at /var/log/vboxadd-install.log to find out what went wrong)
  16. Doing non-kernel setup of the Guest Additions ...done.