mandos-client fails to install gpg-agent into intiramfs

Bug #2068014 reported by Christian Rusa
10
This bug affects 2 people
Affects Status Importance Assigned to Milestone
mandos (Ubuntu)
Confirmed
Undecided
Unassigned

Bug Description

# lsb_release -rd
No LSB modules are available.
Description: Ubuntu 24.04 LTS
Release: 24.04

# apt-cache policy mandos-client
mandos-client:
  Installed: 1.8.16-1ubuntu4
  Candidate: 1.8.16-1ubuntu4
  Version table:
 *** 1.8.16-1ubuntu4 500
        500 http://mirror.hetzner.com/ubuntu/packages noble/universe amd64 Packages
        500 http://archive.ubuntu.com/ubuntu noble/universe amd64 Packages
        100 /var/lib/dpkg/status

mandos-client is able to fetch password from server in running system, but fails in initrams with error

Mandos plugin mandos-client: bad gpgme_op_decrypt: GnuPG: No secret key

The reason why mandos-client is not working is that initramfs is missing the gpg-agent binary.

The reason why gpg-agent binary is not copied to initramfs is that the package libgpgme11 has been renamed to libgpgme11t64.

The fix is:
# diff /usr/share/initramfs-tools/hooks/mandos.orig /usr/share/initramfs-tools/hooks/mandos
183c183
< libgpgme11_version="`dpkg-query --showformat='${Version}' --show libgpgme11`"
---
> libgpgme11_version="`dpkg-query --showformat='${Version}' --show libgpgme11t64`"

As I think creation of intiramfs is part of the distro I address this here.
Please let me know when I am wrong.

Kind regards
Christian Rusa

Revision history for this message
Launchpad Janitor (janitor) wrote :

Status changed to 'Confirmed' because the bug affects multiple users.

Changed in mandos (Ubuntu):
status: New → Confirmed
Revision history for this message
José Dapena Paz (jdapena) wrote :

Confirming the change proposed by Christian works.

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.