postrm fails if apache2 dependency not present

Bug #583576 reported by Clint Byrum
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
drupal6 (Ubuntu)
Fix Released
Undecided
Unassigned

Bug Description

Binary package hint: drupal6

Because the postrm script assumes apache2 will be installed, If one manually installs the drupal6 .deb by accident, it cannot be removed due to a missing script:

(maverick-amd64)root@ubuntu:~# dpkg -i drupal6_6.16-1_all.deb
Selecting previously deselected package drupal6.
(Reading database ... 13590 files and directories currently installed.)
Unpacking drupal6 (from drupal6_6.16-1_all.deb) ...
dpkg: dependency problems prevent configuration of drupal6:
 drupal6 depends on apache2 | httpd; however:
  Package apache2 is not installed.
  Package httpd is not installed.
 drupal6 depends on php5; however:
  Package php5 is not installed.
 drupal6 depends on php5-mysql | php5-pgsql; however:
  Package php5-mysql is not installed.
  Package php5-pgsql is not installed.
 drupal6 depends on php5-gd; however:
  Package php5-gd is not installed.
 drupal6 depends on exim4 | mail-transport-agent; however:
  Package exim4 is not installed.
  Package mail-transport-agent is not installed.
 drupal6 depends on wwwconfig-common (>= 0.0.37); however:
  Package wwwconfig-common is not installed.
 drupal6 depends on mysql-client | virtual-mysql-client | postgresql-client; however:
  Package mysql-client is not installed.
  Package virtual-mysql-client is not installed.
  Package postgresql-client is not installed.
 drupal6 depends on dbconfig-common; however:
  Package dbconfig-common is not installed.
 drupal6 depends on curl; however:
  Package curl is not installed.
dpkg: error processing drupal6 (--install):
 dependency problems - leaving unconfigured
Errors were encountered while processing:
 drupal6
(maverick-amd64)root@ubuntu:~# dpkg -r drupal6
(Reading database ... 14127 files and directories currently installed.)
Removing drupal6 ...
/var/lib/dpkg/info/drupal6.postrm: line 58: /usr/share/wwwconfig-common/restart.sh: No such file or directory
dpkg: error processing drupal6 (--remove):
 subprocess installed post-removal script returned error exit status 1
Errors were encountered while processing:
 drupal6
(maverick-amd64)root@ubuntu:~#

Note that a proposed patch is being bundled with the fix for LP: #582255

Related branches

Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package drupal6 - 6.16-1ubuntu1

---------------
drupal6 (6.16-1ubuntu1) maverick; urgency=low

  * Changing exim4 to default-mta (LP: #582255)
  * made postrm check for restart.sh in case dependencies
    were not properly installed. (LP: #583576)
 -- Clint Byrum <email address hidden> Tue, 18 May 2010 13:32:55 -0700

Changed in drupal6 (Ubuntu):
status: New → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.