Take the 2-minute tour ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

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:

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

What should I do?

share|improve this question
add comment

1 Answer 1

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 http://www.webupd8.org/2010/12/install-virtualbox-40-stable-in-ubuntu.html.

To install the virtualbox-ose from Ubuntu, you need to remove virtualbox.org 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 paste.ubuntu.com and add the link to your question? –  Lekensteyn Jan 29 '11 at 11:40
    
paste.ubuntu.com/560244 –  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
add comment

Your Answer

 
discard

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.