#1 2016-01-01 11:37:16

Craft4
Member
2016-01-01
2

Uninstall Error - Debian 6 - apt-get

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:

Code:

 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)

Code:

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

 

#2 2016-01-01 12:01:06

nicolas
Former Piwigo Team
2004-12-30
1233

Re: Uninstall Error - Debian 6 - apt-get

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) :

Code:

#!/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 :

Code:

#!/bin/sh
exit 0

Offline

 

#3 2016-01-01 12:12:30

Craft4
Member
2016-01-01
2

Re: Uninstall Error - Debian 6 - apt-get

Thanks!
*thumbs up*

Offline

 

Board footer

Powered by FluxBB

github twitter newsletter Donate Piwigo.org © 2002-2025 · Contact