Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free.

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 wanted to install virtualbox-4.0 (or any other version)

  • I went to System → Administration → Synaptic Package Manager

  • Then I marked virtualbox-4.0 for installation but i get this error:

      Depends: libqt4-opengl but it is not going to be installed

What should I do?

share|improve this question
up vote 1 down vote accepted

If you do not mind installing the Ubuntu version of VirtualBox 3.2 instead of the latest 4.0, install virtualbox-ose (VirtualBox Open Source Edition) instead of virtualbox-4.0. virtualbox-4.0 isn't in the default repositories, you've possibly added a 3rd party repository which isn't compatible with the standard ones. If you cannot wait and really want the 4.0 version of VirtualBox, follow the instructions at

To install the virtualbox-ose from Ubuntu, you need to remove from your repositories. Run the next command to remove all lines containing "virtualbox":

sudo sed '/virtualbox/d' -i /etc/apt/sources.list

Alternatively, remove the three "virtualbox" lines from your /etc/sources.list manually using a text-editor like gedit:

gksu gedit /etc/apt/sources.list

Related launchpad question: virtualbox-ose 4.0 needs packaging

virtualbox-ose in ubuntu 11.04 Natty and newer comes with version VirtualBox 4, no additional repositories are necessary.

share|improve this answer
I just get the same error even when installing OSE. – AKGMA Jan 29 '11 at 11:07
Can you post the output of find /etc/apt/ -name '*.list' -ls -exec cat {} \; on and add the link to your question? – Lekensteyn Jan 29 '11 at 11:40 – AKGMA Jan 30 '11 at 15:09
You need to remove the unofficial VirtualBox repositories from your sources.list. See the updated answer. – Lekensteyn Jan 30 '11 at 15:58

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.