Linux – How to solve VLC’s dependency “vlc-nox”

dependencieslinuxUbuntuvlc-media-player

I have installed Ubuntu (Ubuntu 2.6.38-11-generic-pae #50-Ubuntu SMP, i686 Athlon i386 GNU/Linux). I am newcomer in Linux.

I am trying to install VLC media player using command line:

% sudo apt-get update
% sudo apt-get install vlc vlc-plugin-pulse mozilla-plugin-vlc

The first command is executed without problems. Then I tried to run the second line, which gives me following output:

Reading package lists... Done Building dependency tree        Reading state information... Done Some packages could not be installed. This may mean that you have requested an impossible situation or if you are using the unstable distribution that some required packages have not yet been created or been moved out of Incoming. The following information may help to resolve the situation:

The following packages have unmet dependencies:  mozilla-plugin-vlc : Depends: vlc-nox (= 1.1.9-1ubuntu1.3) but it is not going to be installed  vlc : Depends: vlc-nox (= 1.1.9-1ubuntu1.3) but it is not going to be installed
       Depends: libavcodec52 (>= 4:0.6-1~) but it is not going to be installed or
                libavcodec-extra-52 (>= 4:0.6-1~) but it is not going to be installed
       Depends: libqtgui4 (>= 4:4.5.3) but it is not going to be installed
       Depends: libva-x11-1 but it is not installable
       Depends: libva1 but it is not installable
       Depends: libxcb-keysyms1 (>= 0.3.6) but it is not installable
       Depends: libxcb-randr0 (>= 1.1) but it is not installable
       Depends: libxcb-xv0 (>= 1.2) but it is not installable
       Recommends: vlc-plugin-notify (= 1.1.9-1ubuntu1.3) but it is not going to be installed  vlc-plugin-pulse : Depends: vlc-nox (=
1.1.9-1ubuntu1.3) but it is not going to be installed E: Broken packages

How can I resolve this issue?

After that I also tried to install GNOME Media Player from Ubuntu software center. It returned following error message:

The following packages have unmet dependencies:

gnome-media-player: Depends: libatkmm-1.6-1 (>= 2.22.0) but 2.22.5-0ubuntu1 is to be installed
                    Depends: libc6 (>= 2.4) but 2.13-0ubuntu13 is to be installed
                    Depends: libdbus-1-3 (>= 1.0.2) but 1.4.6-1ubuntu6.1 is to be installed
                    Depends: libdbus-glib-1-2 (>= 0.78) but 0.92-0ubuntu1 is to be installed
                    Depends: libgcc1 (>= 1:4.1.1) but 1:4.5.2-8ubuntu4 is to be installed
                    Depends: libgconf2-4 (>= 2.31.1) but 2.32.2-0ubuntu2 is to be installed
                    Depends: libglib2.0-0 (>= 2.12.0) but 2.28.6-0ubuntu1 is to be installed
                    Depends: libglibmm-2.4-1c2a (>= 2.27.3) but 2.28.0-1 is to be installed
                    Depends: libgstreamer-plugins-base0.10-0 (>= 0.10.0) but 0.10.32-1ubuntu5 is to be installed
                    Depends: libgstreamer0.10-0 (>= 0.10.7) but 0.10.32-3ubuntu3.1 is to be installed
                    Depends: libgtk2.0-0 (>= 2.12.0) but 2.24.4-0ubuntu2 is to be installed
                    Depends: libgtkmm-2.4-1c2a (>= 1:2.22.0) but 1:2.24.0-0ubuntu1 is to be installed
                    Depends: libsigc++-2.0-0c2a (>= 2.0.2) but 2.2.4.2-1ubuntu1 is to be installed
                    Depends: libstdc++6 (>= 4.5) but 4.5.2-8ubuntu4 is to be installed
                    Depends: libunique-1.0-0 (>= 1.0.0) but 1.1.6-1.1ubuntu2 is to be installed
                    Depends: libvlc5 (>= 1.1.0) but 1.1.9-1ubuntu1.3 is to be installed
                    Depends: libxine1 (>= 1.1.8-1) but it is not going to be installed

Best Answer

The logs there are telling you that you're missing a bunch of dependencies. You can go the slow route of installing each one individually or separated by a space. However, I'm running ubuntu 11.04 (latest stable version) and have not experienced the same issues. Only difference could be that I did (below) after a new install.

sudo apt-get update && sudo apt-get upgrade && sudo apt-get install build-essential

enter image description here

When I go to install vlc

sudo apt-get install vlc

It tells me that I need to install dependencies. I type Y to install them. The process goes through normally and installs.

Related Question