Take the 2-minute tour ×
Unix & Linux Stack Exchange is a question and answer site for users of Linux, FreeBSD and other Un*x-like operating systems.. It's 100% free, no registration required.

I'm currently running Debian Wheezy (Testing). I want to install virtualbox but when I run the following:

# aptitude install virtualbox

...I get the following result:

The following packages have unmet dependencies:
 libqt4-qt3support : Depends: libqtcore4 (= 4:4.8.2+dfsg-2) but 4:4.8.2+dfsg-6 is to be installed.
                     Depends: libqtgui4 (= 4:4.8.2+dfsg-2) but 4:4.8.2+dfsg-6 is to be installed.
 qdbus : Depends: libqtcore4 (= 4:4.8.2+dfsg-2) but 4:4.8.2+dfsg-6 is to be installed.
 libqt4-script : Depends: libqtcore4 (= 4:4.8.2+dfsg-2) but 4:4.8.2+dfsg-6 is to be installed.
 libqt4-designer : Depends: libqtcore4 (= 4:4.8.2+dfsg-2) but 4:4.8.2+dfsg-6 is to be installed.
                   Depends: libqtgui4 (= 4:4.8.2+dfsg-2) but 4:4.8.2+dfsg-6 is to be installed.
 libqt4-network : Depends: libqtcore4 (= 4:4.8.2+dfsg-2) but 4:4.8.2+dfsg-6 is to be installed.
 libqt4-dbus : Depends: libqtcore4 (= 4:4.8.2+dfsg-2) but 4:4.8.2+dfsg-6 is to be installed.
 qt4-qtconfig : Depends: libqtcore4 (= 4:4.8.2+dfsg-2) but 4:4.8.2+dfsg-6 is to be installed.
                Depends: libqtgui4 (= 4:4.8.2+dfsg-2) but 4:4.8.2+dfsg-6 is to be installed.
 libqt4-sql : Depends: libqtcore4 (= 4:4.8.2+dfsg-2) but 4:4.8.2+dfsg-6 is to be installed.
 libqt4-xml : Depends: libqtcore4 (= 4:4.8.2+dfsg-2) but 4:4.8.2+dfsg-6 is to be installed.
 libqt4-sql-mysql : Depends: libqtcore4 (= 4:4.8.2+dfsg-2) but 4:4.8.2+dfsg-6 is to be installed.

Aptitude then gives me a list of solutions, none of which seem very appealing. It seems to want to install packages from unstable rather than testing, but I don't really want to do this. Why is this a problem if the packages have the correct version numbers?

This is the contents of my /etc/apt/source.list:

deb http://debian.man.ac.uk/debian/ wheezy main non-free contrib
deb-src http://debian.man.ac.uk/debian/ wheezy main non-free contrib

deb http://security.debian.org/ wheezy/updates main contrib non-free
deb-src http://security.debian.org/ wheezy/updates main contrib non-free

deb http://debian.man.ac.uk/debian/ wheezy-updates main contrib non-free
deb-src http://debian.man.ac.uk/debian/ wheezy-updates main contrib non-free

# The following line is required for iceweasel in wheezy
deb http://debian.man.ac.uk/debian experimental main

# The following line is required for icedove in wheezy
deb http://debian.man.ac.uk/debian unstable main
share|improve this question
1  
the packages do NOT have the correct numbers? you have ....-2, the version you try to install needs ....-6 . Try to install a lower version or edit your sources.list to only fetch non-unstable releases. –  Olivier Dulac Dec 31 '12 at 11:53
    
Run apt-get update again. –  warl0ck Dec 31 '12 at 13:29
2  
Hm do you have pinning otherwise you are not running wheezy but sid –  Ulrich Dangel Dec 31 '12 at 14:20

2 Answers 2

It seems that the version conflict with repo you have used for virtualbox.

You can better use the repo provided by the virtualbox in their official download link.

share|improve this answer
up vote 0 down vote accepted

Ulrich Dangel's comment was correct. I had the repos specified in sources.list but hadn't set up pinning correctly, so I had conflicting packages being pulled from unstable that I didn't want.

This blog helped me configure the pinning correctly and now virtualbox installs correctly.

share|improve this answer

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.