Server Fault is a question and answer site for system and network administrators. Join them; it only takes a minute:

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

I'm trying to upgrade from Ubuntu Karmic to Lucid, but it fails because etckeeper detects changes which happen during sudo do-release-upgrade and prevents the running of apt. How do I temporarily turn it off?


** etckeeper detected uncommitted changes in /etc prior to apt run
** Aborting apt run. Manually commit and restart.

Exception during pm.DoInstall():  E:Problem executing scripts DPkg::Pre-Invoke 'if [ -x /usr/sbin/etckeeper ]; then etckeeper pre-install; fi', E:Sub-process returned an error code

Could not install the upgrades

As I said, it's claiming there's changes, even though I just committed.

share|improve this question
up vote 4 down vote accepted

The hook should be in /etc/apt/apt.conf.d/05etckeeper. Moving it away should let you disable it.

However, it does not seem that it should prevent upgrades. What sort of error do you get?

share|improve this answer
I've used etckeeper during Ubuntu upgrades without any issues - only if it's failing during the APT hooks is it likely to cause problems. Question is poor quality as it doesn't specify the exact error message. – RichVel Jun 28 '11 at 7:23

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.