![如何关闭 etckeeper。它阻止我升级 Ubuntu](https://linux22.com/image/553808/%E5%A6%82%E4%BD%95%E5%85%B3%E9%97%AD%20etckeeper%E3%80%82%E5%AE%83%E9%98%BB%E6%AD%A2%E6%88%91%E5%8D%87%E7%BA%A7%20Ubuntu.png)
我正在尝试从 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
则会失败。我重新注释了该行,一切正常。