Ubuntu 安装软件dpkg error code

解决问题链接:https://askubuntu.com/questions/148715/how-to-fix-package-is-in-a-very-bad-inconsistent-state-error

问题描述

dpkg: error processing zramswap-enabler (--remove):
 Package is in a very bad inconsistent state - you should
 reinstall it before attempting a removal.
Errors were encountered while processing:
 zramswap-enabler
E: Sub-process /usr/bin/dpkg returned an error code (1)

问题解决

sudo dpkg --remove --force-remove-reinstreq zramswap-enabler
sudo apt-get install zramswap-enabler

你可能感兴趣的:(Linux,系统,ubuntu)