我正在尝试从 Ubuntu Karmic 升级到 Lucid,但失败了,因为 etckeeper 检测到了 apt 运行过程中发生的变化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
正如我所说,尽管我刚刚提交,但它声称有变化。
答案1
钩子应该在 中/etc/apt/apt.conf.d/05etckeeper
。将其移开应该可以禁用它。
但是,它似乎不应该阻止升级。你遇到了什么样的错误?
答案2
我认为问题出AVOID_COMMIT_BEFORE_INSTALL
在 中/etc/etckeeper/etckeeper.conf
。如果设置为 1,do-release-upgrade
则会失败。我重新注释了该行,一切正常。