не удалось удалить postsql-xc

Установка Postgressql была нарушена, как только я установил postgres-xc и postgres-xc-client. Я попытался удалить, но не смог это сделать. Журнал событий:

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.

Пытался добавить к группе sudo, но не помог.

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

Теперь я поражен, пожалуйста, помогите.

@AB Решение было удалено:

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:~$ 
1
задан 28 July 2015 в 08:36

0 ответов

Другие вопросы по тегам:

Похожие вопросы: