Corrigido pela limpeza deste pacote
sudo apt-get purge postgresql-common
Estou tentando desinstalar o postgresql, mas está realmente reclamando. Eu suspeito que algo está quebrado. Eu estou no 12.04, instalado via apt-get.
sudo apt-get remove postgresql
retorna:
Reading package lists... Done
Building dependency tree Reading state information... Done
Package postgresql is not installed, so not removed 0 upgraded, 0 newly installed, 0 to remove and 9 not upgraded.
2 not fully installed or removed. After this operation, 0 B of
additional disk space will be used. Setting up postgresql-common
(129ubuntu1) ... * Starting PostgreSQL 9.1 database server
* The PostgreSQL server failed to start. Please check the log output: 2013-07-12 11:13:30
BST FATAL: private key file "server.key" has
group or world access 2013-07-12 11:13:30
BST DETAIL: File must be
owned by the database user or root, must have no write permission for
"group", and must have no permissions for "other".
invoke-rc.d: initscript postgresql, action "start" failed.
dpkg: error processing postgresql-common (--configure):
subprocess installed post-installation script returned error exit status 1
dpkg: dependency problems prevent configuration of postgresql-9.1:
postgresql-9.1 depends on postgresql-common (>= 115~); however:
Package postgresql-common is not configured yet.
dpkg: error processing postgresql-9.1 (--configure):
dependency problems - leaving unconfigured
Agora eu tentei consertar o arquivo server.key; Eu copiei o arquivo de óleo de cobra para /var/lib/postgresql/9.1/main/server.key
e modifiquei:
chmod 700 server.key
chown postgres:postgres server.key
teste de integridade:
ls -l server.key
-rwx------ 1 postgres postgres 887 Jul 12 10:07 server.key
Mas ainda reclama que o arquivo tem acesso de grupo.
Agradecemos qualquer ajuda para remover isso, a reinstalação forçada com install -f
não ajuda. : (
Corrigido pela limpeza deste pacote
sudo apt-get purge postgresql-common