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 -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1732770 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 To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/postgresql-9.6/+bug/1732770/+subscriptions -- ubuntu-bugs mailing list [email protected] https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
