-3

When i have to install something then this appears:

dpkg: error processing package libgtk2-gladexml-perl (--purge):

 package is in a very bad inconsistent state; you should
 reinstall it before attempting a removal
Errors were encountered while processing:

libgtk2-gladexml-perl 

E: Sub-process /usr/bin/dpkg returned an error code (1)
.
2
  • Why did you remove sources.list? Sounds counterproductive. Jul 1, 2016 at 10:00
  • How are you trying to install it? Jul 1, 2016 at 10:27

1 Answer 1

0

Reinstall the package from the .deb-file directly:

sudo dpkg -i /var/cache/apt/archives/libgtk2-gladexml-perl_version.deb

Use tab completion, because the .deb-file is additionally named with a version number!


Now, update your system:

sudo apt-get update
sudo apt-get upgrade

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .