Lior Kaplan | 9 Aug 2012 15:25
Picon
Favicon

Bug#684266: #684266 php5-xdebug: package removal fails

On Thu, Aug 9, 2012 at 10:31 AM, Patrik Lembke <patrik.lembke <at> nodeone.se> wrote:
This is the new output:

Removing php5-xdebug ...
+ set -e
+ dpkg-maintscript-helper
mv_conffile /etc/php5/conf.d/xdebug.ini /etc/php5/mods-available/xdebug.ini
2.2.0-1~ -- remove
+ php5dismod xdebug
dpkg: error processing php5-xdebug (--remove):
 subprocess installed pre-removal script returned error exit status 1
Errors were encountered while processing:
 php5-xdebug
E: Sub-process /usr/bin/dpkg returned an error code (1)

Thanks, I've been doing some test of my own, and the problem is that the mv_conffile shouldn't be present in the prerm but in the preinst. This doesn't create any problems when the file is there, but fail when the file isn't present.

Thanks for reporting, it will be fixed in the coming upload.

Kaplan
Lior Kaplan | 10 Aug 2012 01:09
Picon
Favicon

Bug#684266: #684266 php5-xdebug: package removal fails

On Thu, Aug 9, 2012 at 4:25 PM, Lior Kaplan <kaplan <at> debian.org> wrote:
Thanks, I've been doing some test of my own, and the problem is that the mv_conffile shouldn't be present in the prerm but in the preinst. This doesn't create any problems when the file is there, but fail when the file isn't present.

That's postrm instead of prerm (taken from the dpkg-maintscript-helper manpage), but the problem isn't solved due to another issue on the php5{dis,en}mod command when the conffile isn't present.

Any way, it seems that creating the file manually (e.g. with touch) will let you later remove the package (although I would also purge it).

Kaplan

Gmane