package postgres-xc 1.0.0-2 failed to install/upgrade: subprocess installed pre-removal script returned error exit status 1

Bug #1084849 reported by Mani Sidhu
68
This bug affects 14 people
Affects Status Importance Assigned to Milestone
postgres-xc (Ubuntu)
Confirmed
Undecided
Unassigned

Bug Description

installed postgres with apt-get install
tried to install postgres-xc It failed
tried do remove postgres-xc if ailed
so far postgres is unuasable

ProblemType: Package
DistroRelease: Ubuntu 12.10
Package: postgres-xc 1.0.0-2
ProcVersionSignature: Ubuntu 3.5.0-18.29-generic 3.5.7
Uname: Linux 3.5.0-18-generic x86_64
ApportVersion: 2.6.1-0ubuntu6
Architecture: amd64
Date: Thu Nov 29 18:47:48 2012
ErrorMessage: subprocess installed pre-removal script returned error exit status 1
InstallationDate: Installed on 2012-11-19 (11 days ago)
InstallationMedia: Ubuntu 12.10 "Quantal Quetzal" - Release amd64 (20121017.5)
MarkForUpload: True
SourcePackage: postgres-xc
Title: package postgres-xc 1.0.0-2 failed to install/upgrade: subprocess installed pre-removal script returned error exit status 1
UpgradeStatus: No upgrade log present (probably fresh install)

Revision history for this message
Mani Sidhu (anyoldlogin) wrote :
Revision history for this message
Vasil Krstevski (vasil-krstevski) wrote :

I think I have the same problem, I can't uninstall postgres-xc. It says:
postgres-xc: subprocess installed pre-removal script returned error exit status 1

In the details it says:
Removing postgres-xc ...
 * Stopping Postgres-XC datanodes [OK]
 * Stopping Postgres-XC coordinators >> [fail] <<
invoke-rc.d: initscript postgres-xc, action "stop" failed.

It looks like it can't stop the coordinators ...

Thanks,
V.

Revision history for this message
Launchpad Janitor (janitor) wrote :

Status changed to 'Confirmed' because the bug affects multiple users.

Changed in postgres-xc (Ubuntu):
status: New → Confirmed
Revision history for this message
linuxlab (linuxlab-nz) wrote :

sudo apt-get --purge postgres-xc Fails

Revision history for this message
linuxlab (linuxlab-nz) wrote :

work around for now, so to continue installing other packages and apt-get not get jammed

$ sudo apt-get install -m <new package>

will skip the failed postgres-xc problem and carry on installing desired package. IE: <new package>

Revision history for this message
llanitedave@veawb.coop (llanitedave-c) wrote :

I manually removed the postgres-xc folder from usr/share. Then I attempted both...

$ sudo dpkg --purge postges-xc

followed by
$ sudo apt-get remove postgres-xc

then repeated the first command.
All returned the same error: "invoke-rc.d: initscript postgres-xc, action "stop" failed."

The postgres-xc folder is still absent. Entering "$ sudo initdb -D /usr/local/pgsql/data" continues to return the "initdb: Postgres-XC node name is mandatory" error.

As far as I can get, Postgresql is still unusable for me.

Revision history for this message
Pedro Muñoz del Rio (pmunoz-h) wrote :

Hi

A work around that is fine to remove postgres-xc is:

sudo vim /var/lib/dpkg/info/postgres-xc.prerm

Add "exit 0" after first line (#/bin/sh -e)

It works!

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.