[Bug 198421] Re: DPKG_MAINTSCRIPT_PACKAGE not set by dpkg-reconfigure causing dpkg-trigger to fail
Bug Watch Updater
198421 at bugs.launchpad.net
Wed Mar 14 18:38:25 UTC 2012
** Changed in: debconf (Debian)
Status: New => Fix Released
--
You received this bug notification because you are a member of Ubuntu
Foundations Bugs, which is subscribed to debconf in Ubuntu.
https://bugs.launchpad.net/bugs/198421
Title:
DPKG_MAINTSCRIPT_PACKAGE not set by dpkg-reconfigure causing dpkg-
trigger to fail
Status in “debconf” package in Ubuntu:
In Progress
Status in “debconf” package in Debian:
Fix Released
Bug description:
Binary package hint: debconf
When reconfiguring a package that uses dpkg-trigger it fails with:
dpkg-trigger: dpkg-trigger must be called from a maintainer script (or
with a --by-package option)
For instance:
$ sudo dpkg-reconfigure selinux
dpkg-trigger: dpkg-trigger must be called from a maintainer script (or with a --by-package option)
Setting DPKG_MAINTSCRIPT_PACKAGE fixes the problem:
$ sudo DPKG_MAINTSCRIPT_PACKAGE=selinux dpkg-reconfigure selinux
The usage of dpkg-trigger indicates that this is normally setup by dpkg:
$dpkg-trigger --help
...
--by-package=<package> Override trigger awaiter (normally set by dpkg).
...
DISTRIB_ID=Ubuntu
DISTRIB_RELEASE=8.04
DISTRIB_CODENAME=hardy
DISTRIB_DESCRIPTION="Ubuntu hardy (development branch)"
debconf:
Installed: 1.5.19
Candidate: 1.5.19
Version table:
*** 1.5.19 0
500 http://us.archive.ubuntu.com hardy/main Packages
100 /var/lib/dpkg/status
Thanks,
Caleb
To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/debconf/+bug/198421/+subscriptions
More information about the foundations-bugs
mailing list