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.

How to install virtualbox-4.1.4 in ubuntu 11.04 fluently?

when apt-get install libqt* unmet dependency. there is a long list of unmet dependency. Where start first and any command to install virtualbox fluently?

You might want to run 'apt-get -f install' to correct these:
The following packages have unmet dependencies:
 virtualbox-4.1 : Depends: libcurl3 (>= 7.16.2-1) but it is not going to be installed
                  Depends: libqt4-network (>= 4:4.5.3) but it is not going to be installed
                  Depends: libqt4-opengl (>= 4:4.7.0~rc1) but it is not going to be installed
                  Depends: libqtcore4 (>= 4:4.7.0~beta1) but it is not going to be installed
                  Depends: libqtgui4 (>= 4:4.7.0~beta1) but it is not going to be installed
                  Recommends: libsdl-ttf2.0-0 but it is not going to be installed
                  Recommends: dkms but it is not going to be installed
                  Recommends: libhal1 (>= 0.5) but it is not going to be installed
E: Unmet dependencies. Try 'apt-get -f install' with no packages (or specify a solution).
share|improve this question
    
Try 'apt-get -f install' –  hhlp Oct 15 '11 at 11:23
    
tried, same error –  M-Askman Oct 15 '11 at 12:34
add comment

2 Answers 2

up vote 5 down vote accepted

Install virtualbox 4.1 on any ubuntu version

You need to edit /etc/apt/sources.list

gksudo gedit /etc/apt/sources.list

Add the following line

Add one of the following lines according to your distribution to your /etc/apt/sources.list:

deb http://download.virtualbox.org/virtualbox/debian oneiric contrib
deb http://download.virtualbox.org/virtualbox/debian natty contrib
deb http://download.virtualbox.org/virtualbox/debian maverick contrib non-free
deb http://download.virtualbox.org/virtualbox/debian lucid contrib non-free
deb http://download.virtualbox.org/virtualbox/debian karmic contrib non-free
deb http://download.virtualbox.org/virtualbox/debian hardy contrib non-free
deb http://download.virtualbox.org/virtualbox/debian squeeze contrib non-free
deb http://download.virtualbox.org/virtualbox/debian lenny contrib non-free

Save and exit the file

wget -q http://download.virtualbox.org/virtualbox/debian/oracle_vbox.asc -O- | sudo apt-key add -

Update source list

sudo apt-get update

Install virtualbox

sudo apt-get install virtualbox-4.1

Note: Ubuntu/Debian users might want to install the dkms package to ensure that the VirtualBox host kernel modules (vboxdrv, vboxnetflt and vboxnetadp) are properly updated if the linux kernel version changes during the next apt-get upgrade. For Debian it is available in Lenny backports and in the normal repository for Squeeze and later. The dkms package can be installed through the Synaptic Package manager or through the following command:

sudo apt-get install dkms
share|improve this answer
    
same error, qt missing –  M-Askman Oct 15 '11 at 11:09
    
@William Is the distribution correct? I had a similar issue then switched to the lucid line. –  James Poulson May 7 '12 at 9:11
add comment

You can also try using a PPA for the latest updates, see http://www.ubuntuupdates.org/ppas/7.

sudo add-apt-repository ppa:debfx/virtualbox 
sudo apt-get update
sudo apt-get install virtualbox
share|improve this answer
    
you should use virtualbox stable repository -> virtualbox.org/wiki/Linux_Downloads –  hhlp Oct 31 '11 at 13:14
    
I had issues using the VirtualBox repositories (lack of virtualbox-ose), but the PPA has been fine for me. –  El Yobo Nov 1 '11 at 13:10
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.