[pkg-gnupg-maint] Bug#801177: gnupg-agent: Default server install includes GTK through pinentry-gtk2 dependency

Simon Sapin simon-debian-bugs at exyr.org
Wed Oct 7 07:16:07 UTC 2015

Package: gnupg-agent
Version: 2.0.26-6
Severity: normal

Steps to reproduce:

* Install Debian on a new system with the installer
* In tasksel, do not choose any of the "desktop" tasks
* Finish the installation and boot into the new system
* Look which packages are installed

Expected results: no package that is typically not needed on a headless 
server system is installed by default.

Actual result: libgtk2.0-0 and its dependencies (cairo, pango, some
X11-related libraries, some fonts, an icon theme, ...) are installed.
This turns out to be because tasksel's "default" task installed
packages with "Priority: standard",
which includes mutt,
which depends on libgpgme11,
which depends on gnupg2,
which depends on gnupg-agent,
which depends on pinentry-gtk2 | pinentry-curses | pinentry.
It seems that the first alternative is picked.

Fix: run either 'apt-get purge pinentry-gtk2' (which installs
pinentry-curses instead) or 'apt-get purge mutt',
then run 'apt-get autoremove'.

Should gnupg-agent's dependencies be changed to list pinentry-curses first?

-- System Information:
Debian Release: 8.2
  APT prefers stable-updates
  APT policy: (500, 'stable-updates'), (500, 'stable')
Architecture: armhf (armv7l)

Kernel: Linux 3.16.0-4-armmp-lpae (SMP w/2 CPU cores)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Init: systemd (via /run/systemd/system)

More information about the pkg-gnupg-maint mailing list