[Bug 198421] Re: DPKG_MAINTSCRIPT_PACKAGE not set by dpkg-reconfigure causing dpkg-trigger to fail
Colin Watson
cjwatson at canonical.com
Thu Mar 15 13:13:42 UTC 2012
debconf (1.5.42ubuntu1) precise; urgency=low
* Resynchronise with Debian. Remaining changes:
- Gnome.pm: Do not show "Cancel" or "Close" buttons, to avoid breaking
maintainer scripts.
* Ubuntu's dpkg-query still uses ${PackageSpec} for multiarch support
rather than the newer ${binary:Package}. Support this as well for now.
-- Colin Watson <cjwatson at ubuntu.com> Thu, 15 Mar 2012 12:56:18 +0000
debconf (1.5.42) unstable; urgency=low
[ Joey Hess ]
* File DbDriver now creates the directory for the file if it is missing.
(All other DbDrivers that write files already did this.) Closes: #636621
[ Emmet Hikory ]
* Display error messages in noninteractive frontend (Closes: #367497)
[ Debconf translations ]
* Polish (Michał Kułach). Closes: #657264
[ Manpages translations ]
* German updated.
* Portugese updated (Américo Monteiro).
* Spanish updated. Closes: #636241
* Sinhala; (Danishka Navin). Closes: #641106
* Russian updated. Closes: #656110
[ Programs translations ]
* Norwegian Bokmål updated. Closes: #654798
[ Joey Hess ]
* Add a belt-and-suspenders test that Text::CharWidth::mblen is not
returning bogus values, before using Text::WrapI18n. See #641957
* Avoid an uninitialized value warning when a blank line is received
from the client. Closes: #651642
[ Colin Watson ]
* Remove all hardcoded executable paths, using a new Debconf::Path module.
[ Raphaël Hertzog ]
* Set environment variables expected by maintainer scripts. Closes:
#560317
* Do not hardcode the path of maintainer scripts, in order to support the
multiarch layout.
[ Colin Watson ]
* Process any newly pending triggers after running maintainer scripts.
-- Colin Watson <cjwatson at debian.org> Wed, 14 Mar 2012 09:08:49 +0000
** Changed in: debconf (Ubuntu)
Status: In Progress => 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:
Fix Released
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