Trying to install virtualbox - unmet dependencies

So I am trying to install virtualbox 6.0 on Ubuntu 18.04.1 LTS and it seems to be having dependency problems.

I've confirmed the sources.list file contains

deb bionic contrib

and I have used update multiple times with nothing showing up to be updated.

Also apt-get -f install did not help either. Here is what I get when i run sudo apt-get install virtualbox-6.0:

The following packages have unmet dependencies: virtualbox-6.0 : Depends: libqt5x11extra5 (>= 5.6.0) but it is not installable Recommends: libsdl-ttf2.0-0 but it is not installable Recommends: pdf-viewer
E: Unable to correct problems, you have held broken packages.

And dpkg --get-selections | grep hold doesn't return anything.

Any ideas?

5

2 Answers

got mine working by changing sources.list line

deb xenial contrib

to

deb [arch=amd64] bionic contrib

I'm running Ubuntu and ran into this dependency problem. Only difference is I'm using xenial distrubution. So here's what fixed it. From this forum.

User scottgus1 stated the following "I'm going to guess that unless you have specifically pointed your repository for Virtualbox to official Virtualbox via the command on , then you're pulling a fork of Virtualbox, and an old fork at that. Forks may be modified from the official version and we don't know what modifications were made. We recommend official Virtualbox for Linux."

So I literally changed the command:

sudo apt-get install virtualbox-6.1

to:

sudo apt-get install virtualbox

Worked instantly for me.

Your Answer

Sign up or log in

Sign up using Google Sign up using Facebook Sign up using Email and Password

Post as a guest

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

You Might Also Like