无法在Ubuntu 16.04 LTS中安装VLC媒体播放器


13
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).

我已经尝试过 -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但是仍然没有任何反应。

请帮忙


1
您尝试-fsudo apt-get -f install吗?因为,从您编写的描述中还不清楚。这很可能是错字,但我还是想问一下。
颚theshark

是的,我遇到了同样的问题,并设法通过解决了sudo ppa-purge xorg-edgers。我相信这是重复问题的特定版本。
Atcold '17

2.2.2+git20160830+r58831+56~ubuntu16.04.1意味着您使用的是VLC的git(测试)版本,而不是发行版的默认VLC版本。因此,第一步是通过运行诸如sudo rm /etc/apt/sources.list.d/videolan*(假设这样的存储库由Videolan拥有)这样的shell终端命令来删除该存储库。然后,运行命令sudo apt-get purge vlc -y; sudo apt-get autoremove -y; sudo apt-get clean; sudo apt-get update; sudo apt-get check; sudo apt-get dist-upgrade -y; sudo apt-get install vlc -y以安装发行版的默认(稳定)VLC。
Yuri Sucupira

Answers:


22

解决此问题的唯一方法是添加padoka mesa稳定存储库。

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

然后跑

sudo apt-get install vlc

它将正常工作,因为上述存储库同时具有vlc所需的libgles1-mesa和libgles2-mesa。


这肯定是救生员。我最近在做一些事情,我需要使用VLC来发现其他东西已将其卸载,并且由于libgles1-mesa问题而无法再次安装。Debian系统存在这样的问题,太多的不同版本的repos以及太多的不同版本,对于Debian软件包来说,这完全是一团糟,因为它喜欢破坏自己。

1
似乎在16.04中解决了libgles1-mesa和libgles2-mesa互斥的一般问题。
cheshirekow

1
完美地工作!
Saurabh Bayani

完善!解决方案仍适用于16.04。
瑞奇大坝

1
我添加了这个ppa。然后运行命令安装vlc,并且依旧是相同的错误:(
user3804598

5

尝试:

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

这行得通-通过使用(*)删除所有版本,然后一步一步运行命令,最后重新安装对我来说又奏效。
Gadgetroid

我完全按照这里的建议做了。花了很多时间(!!),但没有用(出现与依赖项相同的错误):(
user3804598

3

您可以尝试使用以下命令进行以下操作

sudo apt-get install aptitude
sudo aptitude install vlc

1

我遇到了完全相同的库问题(由于libgles1-mesa和libgles2-mesa库依赖关系问题而无法安装vlc)。我可以使用智能解决问题。

但是由于库依赖性问题,我无法立即安装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
就我而言,此解决方案需要删除Skype和Wine。这不是解决方案。
jfneis

和以前一样。似乎损坏的依赖项与我正在使用的xorg-edgers ppa有关系。我将尝试删除PPA。
s3v3n

我已经运行了ppa-purge ppa:xorg-edgers/ppa,它降级了一堆软件包,然后我就可以安装vlc :)。可以看到,如果X重启后😂仍然有效
s3v3n


0

添加用于VLC的每日预发行版本的PPA 并安装它:

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

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


仍然没有依赖进来
Akash Sarpal '16

您是root用户吗?
阿瓦尼·巴德卡

是的,我是管理员
Akash Sarpal '16

尝试重新启动PC,然后重试:sudo apt更新&& sudo apt安装vlc
Avani badheka,2016年

1
我尝试过,但是再次遇到了同样的错误
Akash Sarpal '16

0

您有2个选项:

  1. 从“软件中心”直接安装。转到Ubuntu软件,然后在搜索框中键入“ VLC”。在此可以找到播放器,然后单击可以安装它Install

  2. 在终端中逐步尝试以下命令:

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

1
我尝试了软件中心操作,但安装从未完成,仅停留在启动阶段。
阿卡什·萨帕尔

1
我尝试了一下,但是上述提到的终端命令却什么都没发生
Akash Sarpal '16


从链接下载然后dpkg
Avani badheka '16

dpkg是什么。我是ubuntu的
新手

-1

以下命令对我有用:

sudo apt-get update --fix-missing

sudo dpkg --configure -a

sudo apt-get install -f

然后尝试使用以下方法安装VLC:

sudo apt install vlc

By using our site, you acknowledge that you have read and understand our Cookie Policy and Privacy Policy.
Licensed under cc by-sa 3.0 with attribution required.