package postgresql-8.4 8.4.16-0ubuntu12.04 failed to install/upgrade: subprocess installed pre-removal script returned error exit status 1
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
postgresql-8.4 (Ubuntu) |
New
|
Undecided
|
Unassigned |
Bug Description
I am trying to uninstall postgrsql along with its other dependedent packages by running the following command:
sudo apt-get --purge remove postgresql-8.4 postgresql-
But get the below error:
Reading state information... Done
The following packages will be REMOVED:
postgresql-8.4* postgresql-
0 upgraded, 0 newly installed, 4 to remove and 0 not upgraded.
3 not fully installed or removed.
After this operation, 20.8 MB disk space will be freed.
Do you want to continue [Y/n]? y
(Reading database ... 270860 files and directories currently installed.)
Removing postgresql-8.4 ...
/var/lib/
dpkg: error processing postgresql-8.4 (--purge):
subprocess installed pre-removal script returned error exit status 1
Removing postgresql-
Purging configuration files for postgresql-
dpkg: postgresql-common: dependency problems, but removing anyway as you requested:
postgresql-8.4 depends on postgresql-common (>= 129~); however:
Package postgresql-common is to be removed.
Removing postgresql-common ...
* Stopping PostgreSQL 8.4 database server [ OK ]
Removing 'diversion of /usr/bin/pg_config to /usr/bin/
Purging configuration files for postgresql-common ...
dpkg: warning: while removing postgresql-common, directory '/var/lib/
dpkg: postgresql-
postgresql-8.4 depends on postgresql-
Package postgresql-
Removing postgresql-
/var/lib/
dpkg: error processing postgresql-
subprocess installed pre-removal script returned error exit status 1
/var/lib/
dpkg: error while cleaning up:
subprocess installed post-installation script returned error exit status 1
Processing triggers for man-db ...
Processing triggers for ureadahead ...
ureadahead will be reprofiled on next reboot
Errors were encountered while processing:
postgresql-8.4
postgresql-
E: Sub-process /usr/bin/dpkg returned an error code (1)
I have a bunch of postgreSQL updates showing up in the update manager , however when I click on Install Updates, the Update Manager also fails. So here I am stuck unable to update or uninstall.
ProblemType: Package
DistroRelease: Ubuntu 12.04
Package: postgresql-8.4 8.4.16-0ubuntu12.04
ProcVersionSign
Uname: Linux 3.5.0-41-generic x86_64
ApportVersion: 2.0.1-0ubuntu17.5
AptOrdering:
postgresql-8.4: Purge
postgresql-
postgresql-common: Purge
postgresql-
hbase: Configure
Architecture: amd64
Date: Sun Oct 20 19:38:08 2013
DpkgTerminalLog:
Removing postgresql-8.4 ...
/var/lib/
dpkg: error processing postgresql-8.4 (--purge):
subprocess installed pre-removal script returned error exit status 1
DuplicateSignature: package:
ErrorMessage: subprocess installed pre-removal script returned error exit status 1
InstallationMedia: Ubuntu 12.04.2 LTS "Precise Pangolin" - Release amd64 (20130214)
MarkForUpload: True
SourcePackage: postgresql-8.4
Title: package postgresql-8.4 8.4.16-0ubuntu12.04 failed to install/upgrade: subprocess installed pre-removal script returned error exit status 1
UpgradeStatus: No upgrade log present (probably fresh install)
tags: | removed: need-duplicate-check |