package can not be cleanly purged
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"
description: | updated |
Changed in wwwoffle (Debian): | |
status: | Unknown → New |
Changed in wwwoffle (Debian): | |
status: | New → Fix Released |
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 : d/wwwoffle stop || exit $?
11 invoke-rc.d wwwoffle stop || exit $?
13 /etc/init.
The modified line for resolve the bugs is : d/wwwoffle stop
11 invoke-rc.d wwwoffle stop
13 /etc/init.
I'm to attach file solution in attachment dpkg/info/ wwwoffle. prerm)
The new file could be copied is to /var/dpkg/info/ (sudo cp wwwoffle.prerm /var/lib/
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 : d/wwwoffle stop || exit $?
11 invoke-rc.d wwwoffle stop || exit $?
13 /etc/init.
Les lignes modifiés pour la résolution des bugs sont : d/wwwoffle stop
11 invoke-rc.d wwwoffle stop
13 /etc/init.
Dans l'attache je vous le fichier modifé. 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.
Le nouveau fichier doit être copié dans le répertoire /var/lib/dpkg/info (sudo cp wwwoffle.prerm /var/lib/