安装 VLC 时如何解决 Ubuntu 16.04 中的依赖问题?

安装 VLC 时如何解决 Ubuntu 16.04 中的依赖问题?

依赖错误.png

我正在尝试通过以下链接安装 VLC 播放器:http://www.omgubuntu.co.uk/2016/06/install-vlc-3-0-ubuntu。我遇到了图中所示的错误。有人能帮我解决这个问题吗?

错误:

praveen@IOT-1124:~/Downloads$ sudo apt install 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:
 libwx-perl:i386 : Depends: perl:i386 (>= 5.22.1-2) but it is not going to be installed
                   Depends: perlapi-5.22.1:i386
                   Depends: libc6:i386 (>= 2.4) but it is not going to be installed
                   Depends: libgcc1:i386 (>= 1:3.0) but it is not going to be installed
                   Depends: libwxbase3.0-0v5:i386 (>= 3.0.2+dfsg) but it is not going to be installed
                   Depends: libwxgtk-media3.0-0v5:i386 (>= 3.0.2+dfsg) but it is not going to be installed
                   Depends: libwxgtk3.0-0v5:i386 (>= 3.0.2+dfsg) but it is not going to be installed
                   Depends: wxperl-gtk2-3-0-2-uni-gcc-3-4:i386
                   Depends: libalien-wxwidgets-perl:i386 (>= 0.65+dfsg~) but it is not going to be installed
 vlc : Depends: vlc-nox (= 2.2.2-5ubuntu0.16.04.4) but it is not going to be installed
       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: 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-5ubuntu0.16.04.4) but it is not going to be installed
       Recommends: vlc-plugin-samba (= 2.2.2-5ubuntu0.16.04.4) but it is not going to be installed
E: Unmet dependencies. Try 'apt-get -f install' with no packages (or specify a solution).

答案1

打开一个新的终端会话并尝试先更新您的系统:

sudo apt-get update

sudo apt-get upgrade

然后从 Ubuntu 存储库安装 VLC:

sudo apt-get install vlc

答案2

首先从以下网址下载适用于 Ubuntu 的 VLC 媒体播放器的 Debian 软件包https://www.videolan.org/vlc/#download

现在您可以按任意方式继续:

    • 使用命令行$ sudo dpkg -i <path/to/package.deb>

或者

    • 从 Ubuntu 软件中心或命令行安装 GDebi 包安装程序。

    • 现在使用 GDebi 软件包安装程序安装下载的 Debian 软件包

相关内容