não é capaz de desinstalar postsql-xc

2

A instalação do Postgressql foi interrompida assim que instalei o postgres-xc e o postgres-xc-client. Eu tentei desinstalar, mas não consegui fazê-lo. O registro das atividades segue:

postgres@ashUbuntu:~$ sudo apt-get remove --purge postgres-xc-client postgres-xc
[sudo] password for postgres: 
postgres is not in the sudoers file.  This incident will be reported.

Tentou adicionar ao grupo sudo, mas não ajudou.

postgres@ashUbuntu:~$ sudo usermod -a -G sudo postgres
[sudo] password for postgres: 
postgres is not in the sudoers file.  This incident will be reported.

Agora estou impressionado, por favor ajude.

@ A.B. solução funcionou, capaz de desinstalar:

ashutosh@ashUbuntu:~$ su ashutosh
Password: 
ashutosh@ashUbuntu:~$ dpkg --purge postgres-xc
dpkg: error: requested operation requires superuser privilege
ashutosh@ashUbuntu:~$ sudo dpkg --purge postgres-xc
[sudo] password for ashutosh: 
(Reading database ... 792513 files and directories currently installed.)
Removing postgres-xc (1.1-2ubuntu2) ...
 * Stopping Postgres-XC datanode                                         [ OK ] 
 * Stopping Postgres-XC coordinator                                      [ OK ] 
 * Stopping Postgres-XC gtm                                              [ OK ] 
Purging configuration files for postgres-xc (1.1-2ubuntu2) ...
Processing triggers for man-db (2.6.7.1-1ubuntu1) ...
ashutosh@ashUbuntu:~$ sudo dpkg --purge postgres-xc-client
(Reading database ... 792301 files and directories currently installed.)
Removing postgres-xc-client (1.1-2ubuntu2) ...
Processing triggers for man-db (2.6.7.1-1ubuntu1) ...
ashutosh@ashUbuntu:~$ 
    
por Ashutosh Nigam 28.07.2015 / 07:22

1 resposta

1

Suponho que sua conta de usuário não é postgres . Portanto, mude para sua conta com

su - your_user_name

e inicie a desinstalação novamente

    
por A.B. 28.07.2015 / 07:31