Ubuntu – VirtualBox Guest Additions won’t install


I'm trying to configure my virtual machine so I can share a folder between my host and guest OS, but when I try to install the Guest Additions I get the following message:
enter image description here

I've already done everything that is describe on:
VirtualBox Guest Additions won't install on Ubuntu Server 12.04

but it's still not working.

[SOLUTION] As said in the comments, all I had to do was install the newest version. After that, it worked perfectly.

Best Answer

Instead of installing the guest additions from virtualbox's virtual CD, you can try installing the pre-built Ubuntu package. Just:

sudo apt-get install virtualbox-guest-dkms

this will compile and install the required module and enable folder sharing, shared clipboards and resizable display with seamless pointer integration.

If you want to continue doing it the hard way:

  1. The message on your screen clearly indicates a log file you can look at to get more details about the problem.
  2. I'm pretty sure this is because you don't have the appropriate development tools and kernel headers installed. You can do this to install them, then retry your process:

    sudo apt-get install linux-headers-$(uname -r) build-essential