il problema:
# apt-get remove –purge postgresql-8.1
Reading package lists…
Building dependency tree…
The following packages will be REMOVED
postgresql-8.1*
0 upgraded, 0 newly installed, 1 to remove and 21 not upgraded.
1 not fully installed or removed.
Need to get 0B of archives.
After unpacking 12,8MB disk space will be freed.
Do you want to continue [Y/n]? (Reading database … 32630 files and directories currently installed.)
Removing postgresql-8.1 …
Stopping PostgreSQL 8.1 database server: main* Error: The cluster is owned by group id 119 which does not exist any more
failed!
Starting PostgreSQL 8.1 database server: main* Error: The cluster is owned by group id 119 which does not exist any more
failed!
in pratica lo script /etc/init.d/postgresql-8.1 ritorna false quando tenta di arrestare il servizio (che in realta nel mio caso non è nemmeno attivo)
ho provato ad armeggiate con apt ma senza esito quindi ricorro alla forza bruta.
soluzione:
NOTA: se ci sono dei dati di postgresql vanno backuppati ora!
ps aux| grep postgre
… killo i processi attivi
mv /etc/init.d/postgresql-8.1 /etc/init.d/postgresql-8.1.old
echo “exit 0″ > /etc/init.d/postgresql-8.1 (in queso modo $? di ritorno sara 0 e apt-get potra continuare
apt-get remove –purge postgresql-8.1