我一直尝试在 ubuntu 16.04 LTS 上安装 vlc 媒体播放器,但一直遇到这个问题。有人可以给我建议吗?

我一直尝试在 ubuntu 16.04 LTS 上安装 vlc 媒体播放器,但一直遇到这个问题。有人可以给我建议吗?
sudo apt-get 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:
 mysql-server : Depends: mysql-server-5.7 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: 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: 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: 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 -f install

-f修复损坏的依赖项。之后运行以下命令:

sudo dpkg --configure -a

再说一遍

sudo apt-get -f install

相关内容