shawn@shawn-desktop:~$ sudo sh -v /var/lib/dpkg/info/joomla.postrm purge
Password:
#! /bin/sh -e
get_config() {
db_get joomla/webserver
webserver="$RET"
}
case "$1" in
purge)
. /usr/share/debconf/confmodule
db_version 2.0
get_config
servers="apache apache-ssl apache-perl apache2"
rm -f /etc/${webserver}/conf.d/joomla
restart="${webserver}"
if [ -x /usr/share/wwwconfig-common/restart.sh ] #FIXME
then
. /usr/share/wwwconfig-common/restart.sh
fi
if [ -x /usr/bin/ucf ]
then
ucf --purge /usr/share/joomla/configuration.php
fi
rm -rf /usr/share/joomla
rm -rf /etc/joomla
;;
remove)
. /usr/share/debconf/confmodule
db_version 2.0
get_config
servers="apache apache-ssl apache-perl apache2"
rm -f /etc/${webserver}/conf.d/joomla
restart="${webserver}"
if [ -x /usr/share/wwwconfig-common/restart.sh ] #FIXME
then
. /usr/share/wwwconfig-common/restart.sh
fi
;;
upgrade|failed-upgrade|abort-install|abort-upgrade|disappear)
;;
*)
echo "postrm called with unknown argument \`$1'" >&2
exit 0
esac
#!/bin/sh
# This is a shell library to interface to the Debian configuration management
# system.
###############################################################################
# Initialization.
# Check to see if a FrontEnd is running.
if [ ! "$DEBIAN_HAS_FRONTEND" ]; then
PERL_DL_NONLAZY=1
export PERL_DL_NONLAZY
# Since there is no FrontEnd, this program execs a FrontEnd.
# It will then run a new copy of $0 that can talk to it.
if [ "$DEBCONF_USE_CDEBCONF" ]; then
exec /usr/lib/cdebconf/debconf $0 "$@"
else
exec /usr/share/debconf/frontend $0 "$@"
fi
fi
shawn@shawn-desktop:~$ sudo sh /var/lib/dpkg/info/joomla.postrm purge
shawn@shawn-desktop:~$ sudo apt-get update; sudo apt-get upgrade;
Get:1 http://us.archive.ubuntu.com dapper Release.gpg [189B]
Get:2 http://us.archive.ubuntu.com dapper-updates Release.gpg [191B]
Get:3 http://security.ubuntu.com dapper-security Release.gpg [191B]
Hit http://us.archive.ubuntu.com dapper Release
Hit http://security.ubuntu.com dapper-security Release
Hit http://security.ubuntu.com dapper-security/main Packages
Hit http://us.archive.ubuntu.com dapper-updates Release
Hit http://security.ubuntu.com dapper-security/restricted Packages
Hit http://security.ubuntu.com dapper-security/main Sources
Hit http://us.archive.ubuntu.com dapper/main Packages
Hit http://us.archive.ubuntu.com dapper/restricted Packages
Hit http://security.ubuntu.com dapper-security/restricted Sources
Get:4 http://mirror.noreply.org dapper Release.gpg [189B]
Hit http://us.archive.ubuntu.com dapper/main Sources
Hit http://us.archive.ubuntu.com dapper/restricted Sources
Hit http://us.archive.ubuntu.com dapper-updates/main Packages
Hit http://mirror.noreply.org dapper Release
Err http://mirror.noreply.org dapper Release
Hit http://us.archive.ubuntu.com dapper-updates/restricted Packages
Hit http://us.archive.ubuntu.com dapper-updates/main Sources
Hit http://us.archive.ubuntu.com dapper-updates/restricted Sources
Get:5 http://mirror.noreply.org dapper Release [1930B]
Ign http://mirror.noreply.org dapper Release
Ign http://mirror.noreply.org dapper/main Packages
Ign http://mirror.noreply.org dapper/main Sources
Hit http://mirror.noreply.org dapper/main Packages
Hit http://mirror.noreply.org dapper/main Sources
Fetched 2122B in 2s (889B/s)
Reading package lists... Done
W: GPG error: http://mirror.noreply.org dapper Release: The following signatures couldn't be verified because the public key is not available: NO_PUBKEY CFF71CB3AFA44BDD
W: You may want to run apt-get update to correct these problems
Reading package lists... Done
Building dependency tree... Done
The following packages will be REMOVED:
joomla
0 upgraded, 0 newly installed, 1 to remove and 0 not upgraded.
1 not fully installed or removed.
Need to get 0B of archives.
After unpacking 12.1MB disk space will be freed.
Do you want to continue [Y/n]?
(Reading database ... 82392 files and directories currently installed.)
Removing joomla ...
dpkg: error processing joomla (--remove):
subprocess post-removal script returned error exit status 10
Errors were encountered while processing:
joomla
E: Sub-process /usr/bin/dpkg returned an error code (1)