依赖问题(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

似乎什么都不起作用。我该如何修复依赖项?这似乎是一个相关文件,我没有安装任何软件。

我发现我有一个有问题的购电协议,我可以禁用它,并且没有任何问题。

**PPA:**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

相关内容