1

I am getting this dpkg error when using apt-get upgrade:

dpkg: error processing package bash (--configure):
  package is in a very bad inconsistent state; you should
  reinstall it before attempting configuration
 Errors were encountered while processing:
  bash
 E: Sub-process /usr/bin/dpkg returned an error code (1)

What should I do?

  • See the link, there is similar problem: http://askubuntu.com/questions/422696/package-is-in-a-very-bad-inconsistent-state?rq=1 – Muzaffar Jan 16 '15 at 13:26
  • 1
    Instead of flashplugin on that link you should run: sudo dpkg --remove --force-remove-reinstreq bash and sudo apt-get install bash – Muzaffar Jan 16 '15 at 13:28
  • @Muzaffar both comments together consist of an answer. Please convert to an answer! ;-) (Or I will do it for you!) >:) – Fabby Jan 17 '15 at 21:19

2 Answers2

1

The command that worked for me on Ubuntu 16.04 LTS over SSH was

sudo apt-get install --reinstall bash 

At least that way I wasn't worried of completely removing bash

Carlos487
  • 111
0

Remove bash completely and restart your work:

sudo dpkg --remove --force-remove-reinstreq bash

(This command is forcing to remove bash)

Then you could try to install it again:

sudo apt-get install bash

See also here, there is a similar problem: Package in a very bad inconsistent state

Muzaffar
  • 5,597