VLC 未满足的依赖关系

VLC 未满足的依赖关系

我通过软件更新程序从 LTS 16.04 升级到 18.04

VLC 已被删除,现在安装 VLC 时出现以下错误

    The following packages have unmet dependencies:
 vlc : Depends: vlc-plugin-qt (= 4.0.0~rc1~~git20180803+r77246+157~ubuntu18.04.1) but it is not going to be installed
       Depends: vlc-plugin-video-output (= 4.0.0~rc1~~git20180803+r77246+157~ubuntu18.04.1) but it is not going to be installed
       Recommends: vlc-plugin-skins2 (= 4.0.0~rc1~~git20180803+r77246+157~ubuntu18.04.1) but it is not going to be installed
E: Unable to correct problems, you have held broken packages.

更新

apt-cache policy vlc vlc-plugin-qt vlc-plugin-video-output vlc-plugin-skins2
vlc:
  Installed: (none)
  Candidate: 4.0.0~rc1~~git20180803+r77246+157~ubuntu18.04.1
  Version table:
     4.0.0~rc1~~git20180803+r77246+157~ubuntu18.04.1 500
        500 http://ppa.launchpad.net/videolan/master-daily/ubuntu bionic/main i386 Packages
     3.0.3-1-1ubuntu1 500
        500 http://security.ubuntu.com/ubuntu bionic-security/universe i386 Packages
        500 http://archive.ubuntu.com/ubuntu bionic-updates/universe i386 Packages
     3.0.1-3build1 500
        500 http://archive.ubuntu.com/ubuntu bionic/universe i386 Packages
     2.2.2+git20170721+r59033+56~ubuntu16.04.1 -1
        100 /var/lib/dpkg/status
vlc-plugin-qt:
  Installed: (none)
  Candidate: 4.0.0~rc1~~git20180803+r77246+157~ubuntu18.04.1
  Version table:
     4.0.0~rc1~~git20180803+r77246+157~ubuntu18.04.1 500
        500 http://ppa.launchpad.net/videolan/master-daily/ubuntu bionic/main i386 Packages
     3.0.3-1-1ubuntu1 500
        500 http://security.ubuntu.com/ubuntu bionic-security/universe i386 Packages
        500 http://archive.ubuntu.com/ubuntu bionic-updates/universe i386 Packages
     3.0.1-3build1 500
        500 http://archive.ubuntu.com/ubuntu bionic/universe i386 Packages
vlc-plugin-video-output:
  Installed: (none)
  Candidate: 4.0.0~rc1~~git20180803+r77246+157~ubuntu18.04.1
  Version table:
     4.0.0~rc1~~git20180803+r77246+157~ubuntu18.04.1 500
        500 http://ppa.launchpad.net/videolan/master-daily/ubuntu bionic/main i386 Packages
     3.0.3-1-1ubuntu1 500
        500 http://security.ubuntu.com/ubuntu bionic-security/universe i386 Packages
        500 http://archive.ubuntu.com/ubuntu bionic-updates/universe i386 Packages
     3.0.1-3build1 500
        500 http://archive.ubuntu.com/ubuntu bionic/universe i386 Packages
vlc-plugin-skins2:
  Installed: (none)
  Candidate: 4.0.0~rc1~~git20180803+r77246+157~ubuntu18.04.1
  Version table:
     4.0.0~rc1~~git20180803+r77246+157~ubuntu18.04.1 500
        500 http://ppa.launchpad.net/videolan/master-daily/ubuntu bionic/main i386 Packages
     3.0.3-1-1ubuntu1 500
        500 http://security.ubuntu.com/ubuntu bionic-security/universe i386 Packages
        500 http://archive.ubuntu.com/ubuntu bionic-updates/universe i386 Packages
     3.0.1-3build1 500
        500 http://archive.ubuntu.com/ubuntu bionic/universe i386 Packages

当我使用选项修复损坏的软件包时,来自 synaptic 软件包的消息

E: Unable to correct problems, you have held broken packages.
E: Error, pkgProblemResolver::Resolve generated breaks, this may be caused by held packages.
E: Unable to correct dependencies
E: Error, pkgProblemResolver::Resolve generated breaks, this may be caused by held packages.
E: Error, pkgProblemResolver::Resolve generated breaks, this may be caused by held packages.
E: Unable to correct dependencies
E: Error, pkgProblemResolver::Resolve generated breaks, this may be caused by held packages.
E: Error, pkgProblemResolver::Resolve generated breaks, this may be caused by held packages.
E: Unable to correct dependencies
E: Error, pkgProblemResolver::Resolve generated breaks, this may be caused by held packages.
E: Unable to correct dependencies

答案1

您可以尝试清除VideoLan PPA并使用来自官方存储库的 VLC:

sudo apt-get install ppa-purge
sudo ppa-purge ppa:videolan/master-daily
sudo apt-get install vlc

确保安装所有新的依赖项

sudo apt-get dist-upgrade

如果你安装了 aptitude,你可以尝试

sudo aptitude dist-upgrade

相关内容