package can not be cleanly purged

Bug #206414 reported by Pavel Mlčoch
10
This bug affects 1 person
Affects Status Importance Assigned to Milestone
wwwoffle (Debian)
Fix Released
Unknown
wwwoffle (Ubuntu)
Confirmed
Low
Unassigned

Bug Description

When purging wwwoffle dpkg exists with exit status 128:

pavka@ubuntu:~$ sudo dpkg --purge wwwoffle
(Reading database ... 510865 files and directories currently installed.)
Removing wwwoffle ...
Stopping HTTP cache proxy server: wwwoffled ok.
Purging configuration files for wwwoffle ...
/etc/wwwoffle directory removed, including contents
find: /etc/wwwoffle: No such file or directory
find: /etc/wwwoffle: No such file or directory
dpkg: error processing wwwoffle (--purge):
 subprocess post-removal script returned error exit status 128
Errors were encountered while processing:
 wwwoffle
pavka@ubuntu:~$

TO REPRODUCE:
- install wwwoffle
- purge wwwoffle (sudo apt-get purge wwwoffle)
- observe message "subprocess post-removal script returned error exit status 128"

Revision history for this message
timothée ruffenach (timruff) wrote : Re: package isnt uninstallable and stop upgrade packtage wwwoffle in intrepid ibex

A solution it's to find for the bug
The probleme is to return exit code in part on code why don't return error code.

The orinige file is : /var/lib/dpkg/info/wwwoffle.prerm

The error is located in line 11 and 13 :
11 invoke-rc.d wwwoffle stop || exit $?
13 /etc/init.d/wwwoffle stop || exit $?

The modified line for resolve the bugs is :
11 invoke-rc.d wwwoffle stop
13 /etc/init.d/wwwoffle stop

I'm to attach file solution in attachment
The new file could be copied is to /var/dpkg/info/ (sudo cp wwwoffle.prerm /var/lib/dpkg/info/wwwoffle.prerm)
and after type (sudo apt-get install -f) for the upgrade or (soduapt-get remove wwwoffle) for remove it.

Le bug semble être résolu.
Le problème c'est que une partie du code qui doit pas retourner d'erreur en retourne.

Le fichier original est : /var/lib/dpkg/info/wwwoffle.prerm

Les erreurs sont situés à la ligne 11 et 13 :
11 invoke-rc.d wwwoffle stop || exit $?
13 /etc/init.d/wwwoffle stop || exit $?

Les lignes modifiés pour la résolution des bugs sont :
11 invoke-rc.d wwwoffle stop
13 /etc/init.d/wwwoffle stop

Dans l'attache je vous le fichier modifé.
Le nouveau fichier doit être copié dans le répertoire /var/lib/dpkg/info (sudo cp wwwoffle.prerm /var/lib/dpkg/info/wwwoffle.prerm) et après tapez la command (sudo apt-get install -f) pour une mise à jour ou (sudo apt-get remove wwwoffle) pour supprimer le paquet.

Changed in wwwoffle:
status: New → Confirmed
Revision history for this message
nine (niin-deactivatedaccount-deactivatedaccount) wrote : Re: package isnt uninstallable

I can confirm the issue. After install, before uninstall, /etc/wwwoffle/ does exist.

Revision history for this message
timothée ruffenach (timruff) wrote :

Yes but this error don't to stop the remove install package or upgrade or install.

description: updated
Revision history for this message
nine (niin-deactivatedaccount-deactivatedaccount) wrote :

Setting importance to low.

Changed in wwwoffle:
importance: Undecided → Low
Changed in wwwoffle (Debian):
status: Unknown → New
Changed in wwwoffle (Debian):
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.