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.

I'm running into an issue when trying a apt-get update && apt-get upgrade

It fails with the following error:

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

I try to do a force install of systemd-services, and get the exact same error

How can I fix this?

share|improve this question
add comment

1 Answer 1

up vote 1 down vote accepted

You should stop trying to force things. dpkg is telling you that the package is in very bad state and you should reinstall it. The best way to do so is using apt-get:

sudo apt-get clean
sudo apt-get --reinstall install systemd-services

The first command will clear the package cache so when you run the next it downloads from the servers the package again.

share|improve this answer
    
thank you! That did the trick –  o7th Web Design Sep 20 '13 at 12:10
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.