package libpq-dev 9.6.6-0ubuntu0.17.04 failed to install/upgrade: package is in a very bad inconsistent state; you should reinstall it before attempting a removal

Bug #1732770 reported by Thangachalam Arunachalam
8
This bug affects 1 person
Affects Status Importance Assigned to Milestone
postgresql-9.6 (Ubuntu)
Invalid
Undecided
Unassigned

Bug Description

Always I get this error when I start the program.

ProblemType: Package
DistroRelease: Ubuntu 17.04
Package: libpq-dev 9.6.6-0ubuntu0.17.04
ProcVersionSignature: Ubuntu 4.10.0-38.42-lowlatency 4.10.17
Uname: Linux 4.10.0-38-lowlatency x86_64
ApportVersion: 2.20.4-0ubuntu4.7
AptOrdering:
 libpq-dev:amd64: Remove
 NULL: ConfigurePending
Architecture: amd64
Date: Thu Nov 16 10:51:33 2017
DuplicateSignature:
 package:libpq-dev:9.6.6-0ubuntu0.17.04
 Unpacking apport-kde (2.20.4-0ubuntu4.7) over (2.20.4-0ubuntu4.5) ...
  Log started: 2017-11-16 10:51:33
 dpkg: error processing package libpq-dev (--remove):
  package is in a very bad inconsistent state; you should
ErrorMessage: package is in a very bad inconsistent state; you should reinstall it before attempting a removal
InstallationDate: Installed on 2017-10-22 (24 days ago)
InstallationMedia: Ubuntu-Studio 17.04 "Zesty Zapus" - Release amd64 (20170412)
RelatedPackageVersions:
 dpkg 1.18.10ubuntu2
 apt 1.4.6~17.04.1
SourcePackage: postgresql-9.6
Title: package libpq-dev 9.6.6-0ubuntu0.17.04 failed to install/upgrade: package is in a very bad inconsistent state; you should reinstall it before attempting a removal
UpgradeStatus: No upgrade log present (probably fresh install)

Revision history for this message
Thangachalam Arunachalam (apthanga) wrote :
tags: removed: need-duplicate-check
Revision history for this message
Christian Ehrhardt  (paelzer) wrote :

Hi,
none of the attached logs suggests that this is an issue in libpq-dev.
Instead it is a generic issue that can happen on I/O corruption (I hope not) or aborted package processing.

There is a good summary on askubuntu [1] about it that I'd recommend to follow.

I'll mark this bug as incomplete assuming you will resolve it with that and that it is more an issue on the configuration or status of your local system than Ubuntu.
If you think it is please set it back to new and explain why you think so. Any more debug information along that will help to find the root cause.

[1]: https://askubuntu.com/questions/148715/how-to-fix-package-is-in-a-very-bad-inconsistent-state-error

Revision history for this message
dino99 (9d9) wrote :
Changed in postgresql-9.6 (Ubuntu):
status: New → Invalid
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.