首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >Postgres-xc不会卸载(停止协调器失败)

Postgres-xc不会卸载(停止协调器失败)
EN

Ask Ubuntu用户
提问于 2013-01-30 20:12:38
回答 1查看 5.5K关注 0票数 7

我在做一些rails开发,意外地安装了postres,而不是普通的postgres包。我立即去删除postgres-xc,但apt-get不会卸载它。我也尝试过安装普通的postgres,但失败的方式是一样的。

sudo apt-获取删除postgres-xc输出:

代码语言:javascript
复制
  Reading package lists... Done
Building dependency tree       
Reading state information... Done
The following packages were automatically installed and are no longer required:
  comerr-dev krb5-multidev libgraphics-magick-perl libgraphicsmagick++1-dev libgraphicsmagick++3 libgraphicsmagick1-dev libgraphicsmagick3 libgssrpc4 libkadm5clnt-mit8 libkadm5srv-mit8
  libkdb5-6 libkrb5-dev libpq-dev libpq5 libssl-dev libssl-doc linux-headers-3.5.0-17
Use 'apt-get autoremove' to remove them.
The following packages will be REMOVED:
  postgres-xc
0 upgraded, 0 newly installed, 1 to remove and 0 not upgraded.
1 not fully installed or removed.
After this operation, 17.1 MB disk space will be freed.
Do you want to continue [Y/n]? Y
(Reading database ... 217256 files and directories currently installed.)
Removing postgres-xc ...
 * Stopping Postgres-XC datanodes                                                                                                                                                  [ OK ] 
 * Stopping Postgres-XC coordinators                                                                                                                                               [fail] 
invoke-rc.d: initscript postgres-xc, action "stop" failed.
dpkg: error processing postgres-xc (--remove):
 subprocess installed pre-removal script returned error exit status 1
 * Starting Postgres-XC global transaction management daemons                                                                                                                      [ OK ] 
 * Starting Postgres-XC coordinators                                                                                                                                               [ OK ] 
 * Starting Postgres-XC datanodes                                                                                                                                                  [ OK ] 
dpkg: error while cleaning up:
 subprocess installed post-installation script returned error exit status 1
Errors were encountered while processing:
 postgres-xc
E: Sub-process /usr/bin/dpkg returned an error code (1)

编辑

我发现它至少是部分卸载,因为如果不使用apt-get -f安装来修复它,我就无法安装其他任何东西。

似乎也是一个众所周知的问题

( Postgres-xc不会卸载(停止协调器失败) https://bugs.launchpad.net/ubuntu/+source/postgres-xc/+bug/1084849

不管怎么说,我可以手动把它从我的安装中取下来。

编辑2

修好了。解决方案是dpkg --清除postgres-xc。

EN

回答 1

Ask Ubuntu用户

发布于 2013-03-28 17:43:48

对我有效的解决办法是:

  1. 修改postgres-xc.presm: sudo /var/lib/dpkg/info/postgres-xc.presm在第一行(#/bin/sh -e)后面添加"exit 0“
  2. 然后正常删除: sudo apt-获取删除postgres-xc

(我在:https://bugs.launchpad.net/ubuntu/+source/postgres-xc/+bug/1084849找到了这个解决方案)

票数 8
EN
页面原文内容由Ask Ubuntu提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://askubuntu.com/questions/249531

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档