This question already has an answer here:
I am having a problem trying to install the guest additions for my ubuntu 18.04 and virtualbox 5.2.12
I thought I did something wrong so I tried to install the additions from the CLI, unistalled and installed dkms... I even deleted the virtual machine and installed ubuntu again and it has the same error.
Can anyone help please as I did not find an updated solution to my problem. Here is the message i get when trying to install the addons:
Verifying archive integrity... All good. Uncompressing VirtualBox 5.2.12 Guest Additions for Linux........ VirtualBox Guest Additions installer Copying additional installer modules ... Installing additional modules ... VirtualBox Guest Additions: Building the VirtualBox Guest Additions kernel modules. 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 VirtualBox Guest Additions: Starting. Press Return to close this window...