I am using Ubuntu 18.04.4 LTS, and I am attempting to install libgpgme-dev
. Here is the command and output.
$ 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.
I have the dependency libgpgme11
installed, but the version is 1.10.0-1ubuntu2
, whereas my desired package requires 1.10.0-1ubuntu1
.
$ dpkg --list | grep libgpgme11
ii libgpgme11:amd64 1.10.0-1ubuntu2 amd64 GPGME - GnuPG Made Easy (library)
How can I install libgpgme-dev
given my current state?
I searched the installed reverse dependencies of libgpgme11
, and this is what I find.
$ apt-cache rdepends --installed libgpgme11
libgpgme11
Reverse Depends:
libgpgmepp6
fwupd
seahorse
libvolume-key1
libgpgmepp6
fwupd
libgmime-3.0-0
Here are the outputs of apt-cache policy
for the relevant packages.
$ 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
apt-cache policy libgpgme11 libgpgme-dev
to your question please? – nobody Aug 11 '21 at 13:14sudo apt install --reinstall libgpgme11=1.10.0-1ubuntu1
Then try again. – nobody Aug 11 '21 at 13:25sudo apt update
) before attempting the install? If not (or not sure) please do so now and re-runapt-cache policy libgpgme11 libgpgme-dev
– steeldriver Aug 11 '21 at 13:46sudo apt update
before all of this. Would installinglibgpgme11=1.10.0-1ubuntu1
potentially cause problems? This is a shared computer. – jkr Aug 11 '21 at 15:18sudo apt -s install --reinstall libgpgme11=1.10.0-1ubuntu1
– nobody Aug 11 '21 at 15:24libgpgme11
will be modified. if you want to submit this as an answer, i'm happy to accept it – jkr Aug 11 '21 at 15:42bionic-updates
repository in your sources.list when you installedlibgpgme11
but now have onlybionic
... – steeldriver Aug 11 '21 at 15:44bionic-updates
? – jkr Aug 11 '21 at 15:47bionic-updates
and re-runsudo apt update
then you will see version1.10.0-1ubuntu2
of both packages – steeldriver Aug 11 '21 at 15:51bionic-updates
was not included, and now when I try to install my desired packages (in simulation), I don't get the hold errors. Thank you very much. – jkr Aug 11 '21 at 18:06