Server Fault is a question and answer site for system and network administrators. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

Trying to do an upgrade on an Ubuntu machine I inherited from someone, and it hangs whenever it has to configure console-setup. Any ideas why?

share|improve this question

Probably the best thing to do is to find out what command it's running. You can do this by editing the post-install script. Edit /var/lib/dpkg/info/ and add

set -x

as the second line, just after the



Now run

# dpkg --configure --pending

and you should be able to see what command it is running. This should give you a better clue what to fix.

If you can not work out how to fix it, you can place

exit 0

on the second line of the post-install script, run the dpkg command again and the package will install without doing the configure stage, which may leave your system broken, so only do this if you know what you're doing.

share|improve this answer

Upgrading my kernel fixed it

share|improve this answer

Your Answer


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.