Hello,
tried searching for a solution how to fix my issue but haven´t found anything that could help me so far.
I have installed Piwigo via apt-get from the Debian repository (Using Debian 6.0.10) - upgrading Debian is not an option currently for me.
When i try to remove piwigo from my system i always get the same error:
apt-get remove piwigo Reading package lists... Done Building dependency tree Reading state information... Done The following packages were automatically installed and are no longer required: smarty libphp-pclzip libjs-jquery Use 'apt-get autoremove' to remove them. The following packages will be REMOVED: piwigo 0 upgraded, 0 newly installed, 1 to remove and 0 not upgraded. After this operation, 12.7 MB disk space will be freed. Do you want to continue [Y/n]? Y (Reading database ... 37768 files and directories currently installed.) Removing piwigo ... dpkg: error processing piwigo (--remove): subprocess installed pre-removal script returned error exit status 10 configured to not write apport reports Errors were encountered while processing: piwigo E: Sub-process /usr/bin/dpkg returned an error code (1)
dpkg --force-all --purge piwigo (Reading database ... 37768 files and directories currently installed.) Removing piwigo ... dpkg: error processing piwigo (--purge): subprocess installed pre-removal script returned error exit status 10 Errors were encountered while processing: piwigo
Is there any option to solve this or a list of files that i can remove manually?
Thanks in advance.
Offline
I don't remember exactly what is the problem but you can fix the problem by emptied the pre-removal script.
The content of the pre-removal (/var/lib/dpkg/info/piwigo.prerm) script is probably something like that (depending of piwigo version installed) :
#!/bin/sh # postrm script for piwigo set -e . /usr/share/debconf/confmodule if [ -f /usr/share/dbconfig-common/dpkg/prerm ]; then . /usr/share/dbconfig-common/dpkg/prerm dbc_go piwigo $@ fi db_stop # #DEBHELPER# exit 0
I don't know what the problem is but if you only want to remove piwigo you can just replace that script by an empty one :
#!/bin/sh exit 0
Offline