![Linux Mint 中损坏的软件包](https://linux22.com/image/129017/Linux%20Mint%20%E4%B8%AD%E6%8D%9F%E5%9D%8F%E7%9A%84%E8%BD%AF%E4%BB%B6%E5%8C%85.png)
当我运行apt-get 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:
libvlc5 : Depends: libvlccore9 (>= 4.0.0~rc1~~git20180305+r74659+127~ubuntu16.04.1) but it is not installed
vlc : Depends: vlc-bin (= 4.0.0~rc1~~git20180210+r74136+127~ubuntu16.04.1) but it is not installed
Depends: vlc-plugin-base (= 4.0.0~rc1~~git20180210+r74136+127~ubuntu16.04.1) but it is not installed
Depends: vlc-plugin-qt (= 4.0.0~rc1~~git20180210+r74136+127~ubuntu16.04.1) but it is not installed
Depends: vlc-plugin-video-output (= 4.0.0~rc1~~git20180210+r74136+127~ubuntu16.04.1) but it is not installed
E: Unmet dependencies. Try using -f.
我已经尝试过 apt-get install -f 。这是输出:
(Reading database ... 568381 files and directories currently installed.)
Preparing to unpack .../libvlccore9_4.0.0~rc1~~git20180305+r74659+127~ubuntu16.04.1_amd64.deb ...
Unpacking libvlccore9:amd64 (4.0.0~rc1~~git20180305+r74659+127~ubuntu16.04.1) ...
dpkg: error processing archive /var/cache/apt/archives/libvlccore9_4.0.0~rc1~~git20180305+r74659+127~ubuntu16.04.1_amd64.deb (--unpack):
trying to overwrite '/usr/lib/x86_64-linux-gnu/libvlccore.so.9.0.0', which is also in package libvlccore8:amd64 3.0.0~~git20171210+r73147+99~ubuntu16.04.1
dpkg-deb: error: subprocess paste was killed by signal (Broken pipe)
Processing triggers for libc-bin (2.23-0ubuntu10) ...
Errors were encountered while processing: /var/cache/apt/archives/libvlccore9_4.0.0~rc1~~git20180305+r74659+127~ubuntu16.04.1_amd64.deb
E: Sub-process /usr/bin/dpkg returned an error code (1)
答案1
您正在使用VLC每日主分支构建PPA,其中明确指出
注意:此存档中的构建是完全自动化的,并且不经过任何质量保证。构建中断和功能回归经常发生。
如果您没有准备好应对此类问题,请勿使用此存档。
看来您不应该使用此存档。
您应该从存储库中删除它,运行apt update
、卸载vlc
和所有相关的软件包,然后重新安装它们(这将安装您配置的任何其他存储库中可用的版本)。