Here is a clarification of what is happening :

/usr/sbin/a2query has indeed a bug that will generate this error :

usage: fail($reason, $retval) at /usr/sbin/a2query line 168.

This is fixed by https://anonscm.debian.org/cgit/pkg-
apache/apache2.git/patch/debian/a2query.in?id=0e26141c6b013a9c889f02f1e2077834d38228f0
that adds the $retval return value in a few places :

@@ -203,7 +203,7 @@ sub load_defaults
 sub load_modules
 {
        my $conf_dir = $CONFIG_DIR . "/mods-enabled";
-       opendir(DIR, $conf_dir) || fail("$conf_dir: $!");
+       opendir(DIR, $conf_dir) || fail("$conf_dir: $!", 1);
        while( readdir(DIR) )
        {
                my $file = $_;
@@ -214,7 +214,7 @@ sub load_modules
                        $MPM = $1 if $MPM eq 'invalid';
                        if(grep { $_ =~ m/^mpm_/ } @MODULES)
                        {
-                               fail("There is more than one MPM loaded. Do not 
proceed due to undefined results");
+                               fail("There is more than one MPM loaded. Do not 
proceed due to undefined results", 1);
                        }
                }
                push @MODULES, $file;
@@ -230,7 +230,7 @@ sub load_conf
                return;
        }
        my $conf_dir = $CONFIG_DIR . "/conf-enabled";
-       opendir(DIR, $conf_dir) || fail("$conf_dir: $!");
+       opendir(DIR, $conf_dir) || fail("$conf_dir: $!", 1);
        while( readdir(DIR) )
        {
                my $file = $_;
@@ -249,7 +249,7 @@ sub load_sites
                return;
        }
        my $conf_dir = $CONFIG_DIR . "/sites-enabled";
-       opendir(DIR, $conf_dir) || fail("$conf_dir: $!");
+       opendir(DIR, $conf_dir) || fail("$conf_dir: $!", 1);
        while( readdir(DIR) )
        {
                my $file = $_;

So either /etc/apache2/mods-enabled cannot be opened, or it is the error
"There is more than one MPM loaded. Do not proceed due to undefined
results" that is causing a2query to fail.

If a2query was to be fixed, the /var/lib/dpkg/info/libapache2-mpm-
itk.postinst would still fail with the following error :

/var/lib/dpkg/info/libapache2-mpm-itk.postinst: 9: [: !=: unexpected
operator

since a2query sends the fail() error message to stderr.

In all cases, this situation is caused by a problem with the apache2
configuration (either two MPM being configured which should not happen
or problem with /etc/apache2/mods-enabled) and not with the apache2-mpm-
itk package being SRUed.

I am marking this bug as Invalid as this is not a regression caused by
the apache2-mpm-itk SRU.

...Louis

** Changed in: mpm-itk (Ubuntu)
       Status: Incomplete => Invalid

** Tags added: bot-stop-nagging

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1590283

Title:
  package libapache2-mpm-itk 2.4.6-01-1ubuntu1 failed to
  install/upgrade: subprocess installed post-installation script
  returned error exit status 1

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/mpm-itk/+bug/1590283/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to