无法在ubuntu 16.04 LTS中安装vlc媒体播放器

Reading package lists... Done Building dependency tree Reading state information... Done You might want to run 'apt-get -f install' to correct these: The following packages have unmet dependencies: vlc : Depends: vlc-nox (= 2.2.2+git20160830+r58831+56~ubuntu16.04.1) but it is not going to be installed Depends: libavcodec-ffmpeg56 (>= 7:2.4) but it is not going to be installed or libavcodec-ffmpeg-extra56 (>= 7:2.4) but it is not going to be installed Depends: libavutil-ffmpeg54 (>= 7:2.4) but it is not going to be installed Depends: libgles1-mesa (>= 7.8.1) but it is not going to be installed or libgles1 Depends: libgles2-mesa (>= 7.8.1) but it is not going to be installed or libgles2 Depends: libqt5x11extras5 (>= 5.1.0) but it is not going to be installed Depends: libsdl-image1.2 (>= 1.2.10) but it is not going to be installed Depends: libsdl1.2debian (>= 1.2.11) but it is not going to be installed Depends: libva-drm1 (>= 1.1.0) but it is not going to be installed Depends: libva-x11-1 (>= 1.0.3) but it is not going to be installed Depends: libva1 (>= 1.2.0) but it is not going to be installed Depends: libvlccore8 (>= 2.2.0) but it is not going to be installed Depends: libxcb-composite0 but it is not going to be installed Depends: libxcb-xv0 (>= 1.2) but it is not going to be installed Recommends: vlc-plugin-notify (= 2.2.2+git20160830+r58831+56~ubuntu16.04.1) but it is not going to be installed Recommends: vlc-plugin-samba (= 2.2.2+git20160830+r58831+56~ubuntu16.04.1) but it is not going to be installed Conflicts: vlc:i386 but 2.1.4-1 is to be installed vlc:i386 : Depends: vlc-nox:i386 (= 2.1.4-1) but it is not going to be installed Depends: libaa1:i386 (>= 1.4p5) but it is not going to be installed Depends: libc6:i386 (>= 2.15) but it is not going to be installed Depends: libcaca0:i386 (>= 0.99.beta17-1) but it is not going to be installed Depends: libfreetype6:i386 (>= 2.2.1) but it is not going to be installed Depends: libfribidi0:i386 (>= 0.19.2) but it is not going to be installed Depends: libgcc1:i386 (>= 1:4.1.1) but it is not going to be installed Depends: libgl1-mesa-glx:i386 but it is not going to be installed or libgl1:i386 Depends: libqtcore4:i386 (>= 4:4.8.0) but it is not going to be installed Depends: libqtgui4:i386 (>= 4:4.8.0) but it is not going to be installed Depends: libsdl-image1.2:i386 (>= 1.2.10) but it is not going to be installed Depends: libsdl1.2debian:i386 (>= 1.2.11) but it is not going to be installed Depends: libstdc++6:i386 (>= 4.6) but it is not going to be installed Depends: libtar0:i386 but it is not going to be installed Depends: libva-x11-1:i386 (> 1.3.0~) but it is not going to be installed Depends: libva1:i386 (> 1.3.0~) but it is not going to be installed Depends: libvlccore7:i386 (>= 2.1.0) but it is not installable Depends: libx11-6:i386 but it is not going to be installed Depends: libxcb-composite0:i386 but it is not going to be installed Depends: libxcb-keysyms1:i386 (>= 0.3.9) but it is not going to be installed Depends: libxcb-randr0:i386 (>= 1.1) but it is not going to be installed Depends: libxcb-shm0:i386 but it is not going to be installed Depends: libxcb-xv0:i386 (>= 1.2) but it is not going to be installed Depends: libxcb1:i386 (>= 1.6) but it is not going to be installed Depends: libxext6:i386 but it is not going to be installed Depends: libxinerama1:i386 but it is not going to be installed Depends: libxpm4:i386 but it is not going to be installed Depends: zlib1g:i386 (>= 1:1.2.3.3) but it is not going to be installed Recommends: vlc-plugin-notify:i386 (= 2.1.4-1) but it is not going to be installed Recommends: vlc-plugin-pulse:i386 (= 2.1.4-1) but it is not installable Conflicts: vlc but 2.2.2+git20160830+r58831+56~ubuntu16.04.1 is to be installed E: Unmet dependencies. Try 'apt-get -f install' with no packages (or specify a solution). 

我试过eveything -f -f install

但似乎没有任何效果。 这不是我尝试sudo apt upgrade

我收到以下错误

 Reading package lists... Done Building dependency tree Reading state information... Done You might want to run 'apt-get -f install' to correct these. The following packages have unmet dependencies: vlc:i386 : Depends: vlc-nox:i386 (= 2.1.4-1) but it is not installed Depends: libaa1:i386 (>= 1.4p5) but it is not installed Depends: libc6:i386 (>= 2.15) but it is not installed Depends: libcaca0:i386 (>= 0.99.beta17-1) but it is not installed Depends: libfreetype6:i386 (>= 2.2.1) but it is not installed Depends: libfribidi0:i386 (>= 0.19.2) but it is not installed Depends: libgcc1:i386 (>= 1:4.1.1) but it is not installed Depends: libgl1-mesa-glx:i386 but it is not installed or libgl1:i386 Depends: libqtcore4:i386 (>= 4:4.8.0) but it is not installed Depends: libqtgui4:i386 (>= 4:4.8.0) but it is not installed Depends: libsdl-image1.2:i386 (>= 1.2.10) but it is not installed Depends: libsdl1.2debian:i386 (>= 1.2.11) but it is not installed Depends: libstdc++6:i386 (>= 4.6) but it is not installed Depends: libtar0:i386 but it is not installed Depends: libva-x11-1:i386 (> 1.3.0~) but it is not installed Depends: libva1:i386 (> 1.3.0~) but it is not installed Depends: libvlccore7:i386 (>= 2.1.0) but it is not installable Depends: libx11-6:i386 but it is not installed Depends: libxcb-composite0:i386 but it is not installed Depends: libxcb-keysyms1:i386 (>= 0.3.9) but it is not installed Depends: libxcb-randr0:i386 (>= 1.1) but it is not installed Depends: libxcb-shm0:i386 but it is not installed Depends: libxcb-xv0:i386 (>= 1.2) but it is not installed Depends: libxcb1:i386 (>= 1.6) but it is not installed Depends: libxext6:i386 but it is not installed Depends: libxinerama1:i386 but it is not installed Depends: libxpm4:i386 but it is not installed Depends: zlib1g:i386 (>= 1:1.2.3.3) but it is not installed Recommends: vlc-plugin-notify:i386 (= 2.1.4-1) but it is not installed Recommends: vlc-plugin-pulse:i386 (= 2.1.4-1) but it is not installable E: Unmet dependencies. Try using -f. 

我甚至尝试过-f但是没有任何事情发生。

请帮忙

这个问题的唯一解决方案是添加padoka mesa stable repository ..

https://launchpad.net/~paulo-miguel-dias/+archive/ubuntu/pkppa

然后跑

 sudo apt-get install vlc 

它肯定会工作因为上面的存储库有vlc所需的libgles1-mesa和libgles2-mesa。

尝试:

 sudo apt-get remove vlc* sudo apt-get autoremove sudo apt-get update sudo apt-get upgrade sudo apt-get install vlc 

您可以使用以下命令尝试遵循相同的操作

 sudo apt-get install aptitude sudo aptitude install vlc 

我有完全相同的库问题(由于libgles1-mesa和libgles2-mesa库依赖项的问题,无法安装vlc)。 我可以使用aptitude解决问题。

但是由于库依赖问题,我无法立即安装vlc。

首先,我必须使用$ sudo aptitude install libgles1-mesa更新libgles1-mesa

对提出的解决方案的问题(保持未安装的库)答案:否

然后接受替代提议:将libgl1-mesa-glx和libglapi-mesa恢复到以前的版本

然后我继续使用libgles2-mesa:$ sudo aptitude install libgles2-mesa

这次提议的解决方案没有问题并安装了库

此时,我可以使用$ sudo apt-get install vlc安装vlc

和vlc一起运行Hove它也适合你!

你有两个选择:

1)您可以直接从“软件中心”安装它。 转到ubuntu软件并在搜索框中键入“VLC”。 在那里你可以找到播放器,你可以点击“安装”来安装它。

2)在终端中逐步尝试此命令:

 sudo apt-get update sudo apt-get install vlc sudo apt-get install vlc browser-plugin-vlc (embedded in Mozilla Firefox) 

为每日预发布的VLC 版本添加PPA并安装它:

 sudo add-apt-repository ppa:videolan/master-daily sudo apt update sudo apt install vlc 

现在从Unity Dash(或等效的应用程序启动器)打开VLC。

这对我有用

sudo apt-get update --fix-missing

sudo dpkg --configure -a

sudo apt-get install -f

然后尝试使用安装vlc

sudo apt install vlc