How to Fix "Package is in a very bad inconsistent state" Error?
by yaobin.wen
Today I encountered the following problem when trying to install a piece of software:
dpkg: error processing package libjpeg62:amd64 (–configure):
package is in a very bad inconsistent state; you should
reinstall it before attempting configuration
Errors were encountered while processing:
libjpeg62:amd64
E: Sub-process /usr/bin/dpkg returned an error code (1)
See this answer to the post for the solution. Basically, I need to remove the reinstallation request first and then try to install the package again to solve the problem.
Tags: Tech