Take the 2-minute tour ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

zramswap-enabler has put my package manage in an "inconsistent state."

I tried forcibly removing it with this commend:

dpkg --remove --force-remove-reinstreq

But it seems to freeze and doesn't complete operation.

I tried modifying my dpkg status file as recommended here, but that didn't work either. When I tried upgrading my other files, zramswap still showed up, and stopped it from completing.

Are there any other ways I can force remove this file, or will I have to reinstall Ubuntu?

share|improve this question
add comment

1 Answer

I figured it out.

I killed dpkg from the background.

sudo killall -9 dpkg

Removed zram swap references from the dpkg status file.

sudo cp /var/lib/dpkg/status /var/lib/dpkg/status.bkup
sudo gedit /var/lib/dpkg/status

Removed the zram sources from the package manager.

I used the gui.

Than ran this.

sudo dpkg --configure -a
sudo apt-get update
sudo apt-get upgrade
share|improve this answer
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.