我正在尝试从Ubuntu业力升级到Lucid,但是它失败了,因为etckeeper检测到了在sudo do-release-upgrade期间发生的更改,并且阻止了apt的运行。我怎样才能暂时关掉它?
编辑:
** 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就像我说的,它声称有变化,尽管我刚刚承诺。
发布于 2011-06-28 06:29:25
钩子应该在/etc/apt/apt.conf.d/05etckeeper中。把它移开应该会让你禁用它。
然而,它似乎不应该阻止升级。你犯了什么错误?
发布于 2016-10-16 11:20:57
我认为问题在于AVOID_COMMIT_BEFORE_INSTALL in /etc/etckeeper/etckeeper.conf。如果设置为1,则do-release-upgrade将失败。我重新评论了这句话,一切都很好。
https://serverfault.com/questions/284741
复制相似问题