[Bug 706354] Re: dpkg-maintscript-helper: warning: environment variable DPKG_MAINTSCRIPT_PACKAGE missing

Daniel Holbach daniel.holbach at ubuntu.com
Tue Sep 20 06:47:11 UTC 2011


In a very quick analysis I found that all the packages (on my system)
that use "if dpkg-maintscript-helper supports ..." are affected.

daniel at daydream:~$ grep dpkg-maintscript-helper /var/lib/dpkg/info/*.postinst  | grep support
/var/lib/dpkg/info/apparmor.postinst:if dpkg-maintscript-helper supports rm_conffile; then
/var/lib/dpkg/info/libreoffice-common.postinst:	if dpkg-maintscript-helper supports rm_conffile; then
/var/lib/dpkg/info/libreoffice-common.postinst:	if dpkg-maintscript-helper supports mv_conffile; then
/var/lib/dpkg/info/lightdm.postinst:if dpkg-maintscript-helper supports mv_conffile; then
/var/lib/dpkg/info/ntpdate.postinst:if dpkg-maintscript-helper supports rm_conffile; then
/var/lib/dpkg/info/ntpdate.postinst:if dpkg-maintscript-helper supports mv_conffile; then
daniel at daydream:~$ sudo dpkg-reconfigure libreoffice-common
dpkg-maintscript-helper: warning: environment variable DPKG_MAINTSCRIPT_NAME missing
dpkg-maintscript-helper: warning: environment variable DPKG_MAINTSCRIPT_PACKAGE missing
dpkg-maintscript-helper: warning: environment variable DPKG_MAINTSCRIPT_NAME missing
dpkg-maintscript-helper: warning: environment variable DPKG_MAINTSCRIPT_PACKAGE missing
daniel at daydream:~$ sudo dpkg-reconfigure ntpdate
dpkg-maintscript-helper: warning: environment variable DPKG_MAINTSCRIPT_NAME missing
dpkg-maintscript-helper: warning: environment variable DPKG_MAINTSCRIPT_PACKAGE missing
dpkg-maintscript-helper: warning: environment variable DPKG_MAINTSCRIPT_NAME missing
dpkg-maintscript-helper: warning: environment variable DPKG_MAINTSCRIPT_PACKAGE missing
daniel at daydream:~$ sudo dpkg-reconfigure apparmor
dpkg-maintscript-helper: warning: environment variable DPKG_MAINTSCRIPT_NAME missing
dpkg-maintscript-helper: warning: environment variable DPKG_MAINTSCRIPT_PACKAGE missing
 * Starting AppArmor profiles                                                                                                                         Skipping profile in /etc/apparmor.d/disable: usr.bin.firefox
                                                                                                                                               [ OK ]
 * Reloading AppArmor profiles                                                                                                                        Skipping profile in /etc/apparmor.d/disable: usr.bin.firefox
                                                                                                                                               [ OK ]
daniel at daydream:~$ 


Package WITHOUT "if dpkg-maintscript-helper supports ..."

daniel at daydream:~$ sudo dpkg-reconfigure gedit
update-alternatives: /usr/bin/gedit wird verwendet, um /usr/bin/gnome-text-editor (gnome-text-editor) im Auto-Modus bereitzustellen.
daniel at daydream:~$ 


** Also affects: lightdm (Ubuntu)
   Importance: Undecided
       Status: New

** Changed in: lightdm (Ubuntu)
       Status: New => Confirmed

** Also affects: ntp (Ubuntu)
   Importance: Undecided
       Status: New

** Changed in: ntp (Ubuntu)
       Status: New => Confirmed

** Also affects: libreoffice (Ubuntu)
   Importance: Undecided
       Status: New

** Changed in: libreoffice (Ubuntu)
       Status: New => Confirmed

-- 
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/706354

Title:
  dpkg-maintscript-helper: warning: environment variable
  DPKG_MAINTSCRIPT_PACKAGE missing

Status in AppArmor Linux application security framework:
  Invalid
Status in “apparmor” package in Ubuntu:
  Confirmed
Status in “debconf” package in Ubuntu:
  Confirmed
Status in “libreoffice” package in Ubuntu:
  Confirmed
Status in “lightdm” package in Ubuntu:
  Confirmed
Status in “ntp” package in Ubuntu:
  Confirmed

Bug description:
  Binary package hint: dpkg

  natty i386 updated

  into a terminal, get this output:

  oem at oem-desktop:~$ sudo dpkg-reconfigure apparmor
  [sudo] password for oem: 
  dpkg-maintscript-helper: warning: environment variable DPKG_MAINTSCRIPT_NAME missing
  dpkg-maintscript-helper: warning: environment variable DPKG_MAINTSCRIPT_PACKAGE missing
   * Starting AppArmor profiles

  ProblemType: Bug
  DistroRelease: Ubuntu 11.04
  Package: dpkg 1.15.8.7ubuntu2
  ProcVersionSignature: Ubuntu 2.6.37-12.26-generic-pae 2.6.37
  Uname: Linux 2.6.37-12-generic-pae i686
  NonfreeKernelModules: nvidia
  Architecture: i386
  Date: Sat Jan 22 18:48:00 2011
  ProcEnviron:
   LANGUAGE=fr_FR:fr:en_GB:en
   LANG=fr_FR.UTF-8
   LC_MESSAGES=fr_FR.utf8
   SHELL=/bin/bash
  SourcePackage: dpkg

To manage notifications about this bug go to:
https://bugs.launchpad.net/apparmor/+bug/706354/+subscriptions




More information about the foundations-bugs mailing list