Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

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?

Edit:

** 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

1 Answer 1

up vote 2 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
    
That did it Bittrance. Thanks for actually answering my question instead of saying it-works-for-me and criticizing. –  mclin Jun 28 '11 at 8:37

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.