持有損壞的軟體包 - 取決於舊版本,但要安裝新版本

持有損壞的軟體包 - 取決於舊版本,但要安裝新版本

我正在使用 Ubuntu 18.04.4 LTS,並且我正在嘗試安裝libgpgme-dev.這是命令和輸出。

$ sudo apt install libgpgme-dev
Reading package lists... Done
Building dependency tree       
Reading state information... Done
Some packages could not be installed. This may mean that you have
requested an impossible situation or if you are using the unstable
distribution that some required packages have not yet been created
or been moved out of Incoming.
The following information may help to resolve the situation:

The following packages have unmet dependencies:
 libgpgme-dev : Depends: libgpgme11 (= 1.10.0-1ubuntu1) but 1.10.0-1ubuntu2 is to be installed
E: Unable to correct problems, you have held broken packages.

我安裝了依賴項libgpgme11,但版本是1.10.0-1ubuntu2,而我想要的套件需要1.10.0-1ubuntu1

$ dpkg --list | grep libgpgme11
ii  libgpgme11:amd64  1.10.0-1ubuntu2  amd64  GPGME - GnuPG Made Easy (library)

libgpgme-dev鑑於我目前的狀態,我該如何安裝?

我搜尋了已安裝的反向依賴項libgpgme11,這就是我找到的。

$ apt-cache rdepends --installed libgpgme11
libgpgme11
Reverse Depends:
  libgpgmepp6
  fwupd
  seahorse
  libvolume-key1
  libgpgmepp6
  fwupd
  libgmime-3.0-0

apt-cache policy以下是相關包的輸出。

$ apt-cache policy libgpgme11 libgpgme-dev
libgpgme11:
  Installed: 1.10.0-1ubuntu2
  Candidate: 1.10.0-1ubuntu2
  Version table:
 *** 1.10.0-1ubuntu2 100
        100 /var/lib/dpkg/status
     1.10.0-1ubuntu1 500
        500 http://us.archive.ubuntu.com/ubuntu bionic/main amd64 Packages
libgpgme-dev:
  Installed: (none)
  Candidate: 1.10.0-1ubuntu1
  Version table:
     1.10.0-1ubuntu1 500
        500 http://us.archive.ubuntu.com/ubuntu bionic/main amd64 Packages

相關內容