依賴問題(gir 1.2)無法安裝VLC(有問題的PPA)

依賴問題(gir 1.2)無法安裝VLC(有問題的PPA)

就在軟體更新程式完成定期更新後,我收到一個錯誤,從此我無法手動升級軟體和 Ubuntu。

當我跑步時

sudo apt upgrade
[sudo] password for gaj: 
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:
 gir1.2-peas-1.0 : Depends: libpeas-1.0-0 (>= 1.18.0) but 1.16.0-1ubuntu2 is installed
E: Unmet dependencies. Try using -f.

運行sudo-apt -f install返回:

The following packages will be upgraded:
  libpeas-1.0-0
1 upgraded, 0 newly installed, 0 to remove and 5 not upgraded.
2 not fully installed or removed.
Need to get 0 B/197 kB of archives.
After this operation, 43,0 kB of additional disk space will be used.
Do you want to continue? [Y/n] y
(Reading database ... 297813 files and directories currently installed.)
Preparing to unpack .../libpeas-1.0-0_1.18.0-2~ubuntu16.04.1~ppa1_amd64.deb ...
Unpacking libpeas-1.0-0 (1.18.0-2~ubuntu16.04.1~ppa1) over (1.16.0-1ubuntu2) ...
dpkg: error processing archive /var/cache/apt/archives/libpeas-1.0-0_1.18.0-2~ubuntu16.04.1~ppa1_amd64.deb (--unpack):
 trying to overwrite '/usr/lib/libpeas-1.0/loaders/libpython3loader.so', which is also in package libpeas-1.0-0-python3loader 1.16.0-1ubuntu2
dpkg-deb: error: subprocess paste was killed by signal (Broken pipe)
Processing triggers for libc-bin (2.23-0ubuntu3) ...
Errors were encountered while processing:
 /var/cache/apt/archives/libpeas-1.0-0_1.18.0-2~ubuntu16.04.1~ppa1_amd64.deb
E: Sub-process /usr/bin/dpkg returned an error code (1)

現在,我已經嘗試過這些:

sudo dpkg -- configure -a
sudo apt-get install -f
sudo apt-get update
sudo apt-get upgrade
sudo apt-get upgrade -f

似乎什麼都不起作用。如何修復依賴關係?這似乎是一個相關文件,我沒有安裝任何軟體。

我發現我有一個有問題的購電協議,我可以禁用它並且沒有任何問題。

**購電協議:**http://ppa.launchpad.net/nicola-onorata/desktop/ubuntu****

但是,如果停用它,我將無法安裝 VLC。我收到缺少以​​下依賴項:

vlc : Depends: libgles1-mesa (>= 7.8.1) but it is not going to be installed or
                libgles1

有什麼建議嗎?謝謝。

答案1

您可以嘗試以下方法,但請注意,您有可能破壞您的系統

sudo dpkg --purge --pending
sudo apt-get install -f

相關內容