remove lighttpd

Bug #46200 reported by YannTech
16
Affects Status Importance Assigned to Milestone
lighttpd (Ubuntu)
Fix Released
Medium
Jérémie Corbier

Bug Description

Binary package hint: lighttpd

I can't remove the latest version of lighttpd (1.4.11-3ubuntu 3 dapper)

$ remove lighttpd
Lecture des listes de paquets... Fait
Construction de l'arbre des dépendances... Fait
Les paquets suivants seront ENLEVÉS :
  lighttpd
0 mis à jour, 0 nouvellement installés, 1 à enlever et 0 non mis à jour.
Il est nécessaire de prendre 0o dans les archives.
Après dépaquetage, 848ko d'espace disque seront libérés.
Souhaitez-vous continuer [O/n] ?
(Lecture de la base de données... 88526 fichiers et répertoires déjà installés.)
Suppression de lighttpd ...
 * Stopping web server lighttpd [fail]
invoke-rc.d: initscript lighttpd, action "stop" failed.
dpkg : erreur de traitement de lighttpd (--remove) :
 le sous-processus pre-removal script a retourné une erreur de sortie d'état 1
 * Starting web server lighttpd [ ok ]
Des erreurs ont été rencontrées pendant l'exécution :
 lighttpd
E: Sub-process /usr/bin/dpkg returned an error code (1)

Revision history for this message
Ethan Lofton (eleaf) wrote :

I have this problem too whenever I try and remove lighttpd. The only way I could fix it was to add 'exit 0' on a new line in the /etc/init.d/lighttpd init script after #!/bin/sh ...

And then I had to remove all lighttpd related files manually. Extremely annoying, horrific package to a great project. The package also fails to do things such as creating the user "www" and group "www" , causing havoc.

Absolutely horrible, this needs to be fixed urgently!! ;S

Revision history for this message
Pete Crosier (pjcrosier-deactivatedaccount) wrote :

I've "fixed" this by editing /var/lib/dpkg/info/lighttpd.prerm .. commenting out everything within/including the if.. statement and then running apt-get remove as normal.

Revision history for this message
Jérémie Corbier (jcorbier) wrote :

Fix uploaded to edgy.

Changed in lighttpd:
assignee: nobody → jcorbier
status: Unconfirmed → Fix Committed
Revision history for this message
Jérémie Corbier (jcorbier) wrote :

lighttpd (1.4.11-7ubuntu1) edgy; urgency=low

  * Merge from debian unstable:
    -> Restore B-D on libmemcache-dev.
    -> Keep the additional dependency on libterm-readline-perl-perl.
  * debian/patches:
    -> Add 02_mod_ssl_post_fix.dpatch: fix a stall with POST requests between
       8317 and 16381 bytes long when mod_ssl is enabled.

lighttpd (1.4.11-7) unstable; urgency=low

  * debian/create-mime.assign.pl - catchup error when /etc/mime.types is not
    readable (closes: #375347)

lighttpd (1.4.11-6) unstable; urgency=low

  * debian/control:
   - Recommends: Changed to alternative: php4-cgi | php5-cgi (closes: #368215)
  * include-conf-enabled.pl script changed according to patch from
    Tobias Gruetzmacher <email address hidden> (closes: #368352)
  * debian/lighttpd.conf: removed global for local aliases (/images/, /doc/)
    (closes: #366801)

lighttpd (1.4.11-5) unstable; urgency=low

  * debian/init.d:
   - --oknodo added to section "stop" to close finally #35979
   - --retry 30 added to section "reload", to prevents problems with
     logrotating (closes: #366366)
  * debian/control:
   Standards-Version: increased to 3.7.2 without additional changes

lighttpd (1.4.11-4) unstable; urgency=low

  [ Krzysztof Krzyzaniak (eloy) ]
  * debian/init.d:
   - "exit 1" after failed actions removed (closes: #359792)
  * debian/conf-available/10-fastcgi.conf updated (closes: #362827)
    thanks to Joerg Rieger <a.mailinglists#lumrix.net>

  [ Torsten Marek ]
  * Change my email address to <email address hidden>
  * Remove --background from the start action, since it
    breaks the error checking of start-stop-daemon.
    The behaviour described in #355865 is not reproducable
    any more.
  * make reload action in initscript more well-behaved

Changed in lighttpd:
status: Fix Committed → Fix Released
Revision history for this message
Kevin Smith (ubuntu-qualitycode) wrote :

I'm running 7.04 Feisty Fawn and just had the same problem.

Tried to apt-get remove lighttpd, but the prerem script tries to stop the service, and the service is not running, so the remove fails. Since I have a different web service running already, it would be somewhat difficult to get lighttpd started.

I had to follow the instructions at http://www.urbanpuddle.com/articles/2007/05/05/fixing-lighttpd-update-problem-on-ubuntu which are:

  Go to /var/lib/dpkg/info directory and edit the lighttpd.prerm file. What you want to do is comment out everything except the set -e.

Quite frustrating, especially for something that supposedly was fixed earlier.

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Duplicates of this bug

Other bug subscribers

Remote bug watches

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