Ubuntu – How can i fix this vlc problem

vlc

I use ubuntu 14.04LTS, when I type in:

sudo apt-get install vlc    

I receive this error:

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:
   vlc : Depends: vlc-nox (= 3.0.0~~git20150319+r59816+33~ubuntu14.04.1) but it is not going to be installed
   Depends: libavcodec55 (>= 6:9.1-1) but it is not installable or
            libavcodec-extra-55 (>= 6:10~~git20131218.b3189af~ubuntu14.04.1) but it is not installable
   Depends: libavutil53 (>= 6:9.1-1) but it is not installable
   Recommends: vlc-plugin-notify (= 3.0.0~~git20150319+r59816+33~ubuntu14.04.1) but it is not going to be installed
   Recommends: vlc-plugin-samba (= 3.0.0~~git20150319+r59816+33~ubuntu14.04.1) but it is not going to be installed
E: Unable to correct problems, you have held broken packages.    

Best Answer

According to your issue you had to disable unstable ppa/repos as instructed here

Then open a terminal and run:

sudo apt-get remove --purge vlc-nox
sudo apt-get autoclean
sudo dpkg --configure -a
sudo apt-get -f install
sudo apt-get autoremove
sudo apt-get update
sudo apt-get dist-upgrade
sudo apt-get install vlc

If you want to use more fresh version of VLC media player rather than in official Ubuntu repos, you can use Videolan official stable-daily PPA:

sudo add-apt-repository ppa:videolan/stable-daily
sudo apt-get update && sudo apt-get upgrade
sudo apt-get install vlc

Addition:

Just for the others who face an issue upgrading vlc to 2.2.0 on 14.04LTS even occured to me with ppa:videolan/stable-daily it still had 2.1.6 version installed. To upgrade it to 2.2.0 version add this trusty-media PPA:

sudo add-apt-repository ppa:mc3man/trusty-media
sudo apt-get update
sudo apt-get install --reinstall vlc

P.S.

Do remember this ppa contains also other media updates to see what exactly will be changed if you run an upgrade check with this command:

cat /var/lib/apt/lists/ppa.launchpad.net_mc3man_trusty-media_*_Packages | grep "Package:" | sort | uniq

If you want to purge it after you have installed vlc then:

sudo ppa-purge ppa:mc3man/trusty-media
sudo apt-get update
Related Question