Bug#895170: desktop-file-utils: won't configure because of XDG_DATA_DIRS

Francois-Rene Rideau fahree at gmail.com
Sun Apr 8 03:26:34 UTC 2018

Package: desktop-file-utils
Version: 0.23-3
Severity: important

Dear Maintainer,

   * What led up to the situation?
I was installing debian in a chroot.
The installation of desktop-file-utils failed at the configuration step.

   * What exactly did you do (or not do) that was effective (or
dpkg --configure desktop-file-utils would fail without explaining the
reason, except to say that the configuration script failed.

I ran the /var/lib/dpkg/info/desktop-file-utils.postinst script manually
without the -q option to update-desktop-database and found out that it
was complaining about paths from the environment, then used env | grep
to identify the culprit: the environment variable XDG_DATA_DIRS
had an inappropriate value inherited from outside the chroot.
Note that XDG defines several environment variables, and that
system configuration scripts should ignore all such user variables.

-- System Information:
Debian Release: buster/sid
  APT prefers testing
  APT policy: (500, 'testing')
Architecture: amd64 (x86_64)

Kernel: Linux 4.9.86 (SMP w/4 CPU cores)
Locale: LANG=C, LC_CTYPE=C (charmap=ANSI_X3.4-1968), LANGUAGE=C (charmap=ANSI_X3.4-1968)
Shell: /bin/sh linked to /bin/dash
Init: unable to detect

Versions of packages desktop-file-utils depends on:
ii  libc6         2.27-3
ii  libglib2.0-0  2.56.0-4

desktop-file-utils recommends no packages.

desktop-file-utils suggests no packages.

-- no debconf information

More information about the Pkg-freedesktop-maintainers mailing list