Ask Ubuntu is a question and answer site for Ubuntu users and developers. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I am trying to install VitrualBox's Guest Additions on Ubuntu Server 12.04, but keep getting an error. I am using the following command sudo ./ --nox11 and get the following error:

enter image description here

share|improve this question

I had the same problem when running the installer from the vbox additions iso, but running sudo apt-get install virtualbox-guest-utils worked fine. I did an apt-cache search virtualbox to verify the name of the package before attempting the install.

I did however, run the command suggested by Gregory above (as I was trying to get the installer to work from the iso, which it never did), but that may or may not have had an impact.

If you want to avoid the installing X11 dependencies use:

sudo apt-get install --no-install-recommends virtualbox-guest-utils && sudo apt-get install virtualbox-guest-dkms

Edit: See comment below.

share|improve this answer
If I would downvote if I could, installing virtualbox-guest-utils will install all system, not wanted on a server. See Gregory answer for the proper way to install VBox additions. – CharlesB May 27 '13 at 15:52
@CharlesB @JobiCarter Hm, but would apt-get install --no-install-recommends virtualbox-guest-utils && apt-get install virtualbox-guest-dkms work? Because virtualbox-guest-x11 is a recommends not a dependency: see dependencies. – ignis Jul 3 '13 at 19:22
@ignis's solution is the correct one to avoid X dependencies. – thirtythreeforty Sep 24 '13 at 20:29
Worked fine for me too. Mark as correct answer. – Magno C Apr 23 '15 at 16:38

I had the same issue. Install some additional packages and every thing will be fine:

sudo apt-get install build-essential linux-headers-$(uname -r)
share|improve this answer
I will try this. EDIT: Seems legit! – Rubens Mariuzzo Dec 13 '12 at 3:42
You should add dkms package – CharlesB May 27 '13 at 15:53

I had a similar problem and unfortunately none of the previously suggested solutions helped. What I did in the end was uninstall VirtualBox & install the latest version. This also meant that my version of the Guest Additions went from v4.1.18 to v4.2.4. Once I restarted my Virtual Machine created with the previous VirtualBox version, I was able to mount the guest additions ISO & run the VBoxLinuxAdditions script. You still get the error with the Window System drivers but that's to be expected with Ubuntu Server.

So I suggest giving an update of VirtualBox (and therefore the Guest Additions ISO) a try as well.

share|improve this answer
A similar upgrade from 4.1.18 to 4.2.10 worked for me as the other solutions didn't fix the problem. – agxs Apr 23 '13 at 9:42

I would add to @ignis' solution: sudo reboot

After the ubuntu server restarts the Guest Additions will be available to you.

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.