How do I turn off etckeeper. It’s preventing me from upgrading Ubuntu

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.

Answer

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?

Attribution
Source : Link , Question Author : mclin , Answer Author : quanta

Leave a Comment