首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >“子进程安装前删除脚本返回错误退出状态2”错误,同时试图删除postgresql客户端-公共

“子进程安装前删除脚本返回错误退出状态2”错误,同时试图删除postgresql客户端-公共
EN

Ask Ubuntu用户
提问于 2013-06-19 06:59:12
回答 1查看 4.1K关注 0票数 0

我正在使用Ubuntu10.04,并试图从我的计算机中删除postgresql客户端--常见,但我得到了以下错误:

代码语言:javascript
复制
E: postgresql-9.2: subprocess installed pre-removal script returned error exit status 2
E: postgresql-client-9.2: subprocess installed pre-removal script returned error exit status 2
E: postgresql-common: subprocess installed pre-removal script returned error exit status 2

我尝试过:sudo apt-get -f install,但也失败了:

代码语言:javascript
复制
lucid@ubuntu:~$ sudo apt-get -f install
Reading package lists... Done
Building dependency tree       
Reading state information... Done
Correcting dependencies... Done
The following packages will be REMOVED:
  postgresql-9.2 postgresql-client-9.2 postgresql-client-common
  postgresql-common
0 upgraded, 0 newly installed, 4 to remove and 561 not upgraded.
4 not fully installed or removed.
After this operation, 23.6MB disk space will be freed.
Do you want to continue [Y/n]? y
(Reading database ... 131347 files and directories currently installed.)
Removing postgresql-9.2 ...
dpkg (subprocess): unable to execute installed pre-removal script: Exec format error
dpkg: error processing postgresql-9.2 (--remove):
 subprocess installed pre-removal script returned error exit status 2
dpkg (subprocess): unable to execute installed post-installation script: Exec format error
dpkg: error while cleaning up:
 subprocess installed post-installation script returned error exit status 2
Removing postgresql-client-9.2 ...
dpkg (subprocess): unable to execute installed pre-removal script: Exec format error
dpkg: error processing postgresql-client-9.2 (--remove):
 subprocess installed pre-removal script returned error exit status 2
Removing postgresql-common ...
dpkg (subprocess): unable to execute installed pre-removal script: Exec format error
dpkg: error processing postgresql-common (--remove):
 subprocess installed pre-removal script returned error exit status 2
Removing postgresql-client-common ...
dpkg (subprocess): unable to execute installed post-removal script: Exec format error
dpkg: error processing postgresql-client-common (--remove):
 subprocess installed post-removal script returned error exit status 2
No apport report written because MaxReports is reached already

Errors were encountered while processing:
 postgresql-9.2
 postgresql-client-9.2
 postgresql-common
 postgresql-client-common
E: Sub-process /usr/bin/dpkg returned an error code (1)

我怎么解决这个问题?

EN

回答 1

Ask Ubuntu用户

回答已采纳

发布于 2013-06-19 07:28:47

我描述了一个类似问题的解决方案。也许它也能解决你的问题。

如何解决安装QtOctave失败后收到的包问题?

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

https://askubuntu.com/questions/310030

复制
相关文章

相似问题

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