Ubuntu

如何關閉 etckeeper。它阻止我升級 Ubuntu

  • October 16, 2016

我正在嘗試從 Ubuntu Karmic 升級到 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

正如我所說,它聲稱有變化,即使我剛剛承諾。

鉤子應該在/etc/apt/apt.conf.d/05etckeeper. 將其移開應該可以讓您禁用它。

但是,它似乎不應該阻止升級。你得到什麼樣的錯誤?

我認為問題在於AVOID_COMMIT_BEFORE_INSTALLin /etc/etckeeper/etckeeper.conf。如果設置為 1do-release-upgrade則將失敗。我重新評論了那條線,一切都很好。

引用自:https://serverfault.com/questions/284741