[SRU] If /usr/sbin/apache2 is set -x, upgrades fail
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Ubuntu Server papercuts |
Fix Released
|
Medium
|
Serge Hallyn | ||
apache2 (Ubuntu) |
Fix Released
|
Low
|
Unassigned | ||
Hardy |
Fix Released
|
Low
|
Unassigned |
Bug Description
Binary package hint: apache2
Setting up apache2.2-common (2.2.8-1ubuntu0.16) ...
chmod: invalid mode: `root'
Try `chmod --help' for more information.
dpkg: error processing apache2.2-common (--configure):
subprocess installed post-installation script returned error exit status 1
dpkg: dependency problems prevent configuration of apache2-
apache2-
Package apache2.2-common is not configured yet.
dpkg: error processing apache2-mpm-prefork (--configure):
dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of apache2:
apache2 depends on apache2-mpm-worker (>= 2.2.8-1ubuntu0.16) | apache2-mpm-prefork (>= 2.2.8-1ubuntu0.16) | apache2-mpm-event (>= 2.2.8-1ubuntu0.16); however:
Package apache2-mpm-worker is not installed.
Package apache2-mpm-prefork is not configured yet.
Package apache2-mpm-event is not installed.
dpkg: error processing apache2 (--configure):
dependency problems - leaving unconfigured
The problem lies here:
if [ -e /usr/sbin/apache2 ]; then
if [ "`dpkg-statoverride --list /usr/sbin/apache2`" = "" ]; then
chmod +x /usr/sbin/apache2
else
chmod `dpkg-statoverride --list /usr/sbin/apache2 | cut -f 3` /usr/sbin/apache2
fi
fi
$ dpkg-statoverride --list /usr/sbin/apache2
root root 644 /usr/sbin/apache2
$ dpkg-statoverride --list /usr/sbin/apache2 | cut -f 3
root root 644 /usr/sbin/apache2
With “set -x” added to /var/lib/
Setting up apache2.2-common (2.2.8-1ubuntu0.16) ...
+ [ configure != configure ]
+ NETSTAT=netstat
+ [ -e /usr/sbin/apache2 ]
+ dpkg-statoverride --list /usr/sbin/apache2
+ [ root root 644 /usr/sbin/apache2 = ]
+ dpkg-statoverride --list /usr/sbin/apache2
+ cut -f 3
+ chmod root root 644 /usr/sbin/apache2 /usr/sbin/apache2
chmod: invalid mode: `root'
[…]
Related branches
Changed in apache2 (Ubuntu): | |
importance: | Undecided → Critical |
tags: | added: regression-proposed |
summary: |
- If /usr/sbin/apache2 is set -x, upgrades fail + [SRU] If /usr/sbin/apache2 is set -x, upgrades fail |
Changed in server-papercuts: | |
importance: | Undecided → Medium |
milestone: | none → maverick-beta |
status: | New → Confirmed |
Changed in server-papercuts: | |
assignee: | nobody → Serge Hallyn (serge-hallyn) |
Changed in server-papercuts: | |
status: | Confirmed → Fix Released |
Hrm, so now how do I set the severity in LP? This is critical.
If this wents from proposed to updates, we have a problem.