Linux-Mint

Linux Mint 中損壞的軟體包

  • March 5, 2018

當我執行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)

您正在使用VLC 每日主分支建構 PPA,其中明確指出

注意:此存檔中的建構是完全自動化的,並且不經過任何質量保證。建構中斷和功能回歸經常發生。

如果您不准備應對此類問題,請勿使用此存檔。

看來您不應該使用此存檔。

您應該從您的儲存庫中刪除它,執行apt update、解除安裝vlc和所有相關軟體包,然後重新安裝它們(這將安裝您配置的任何其他儲存庫中可用的版本)。

引用自:https://unix.stackexchange.com/questions/428359