Ubuntu
如何關閉 etckeeper。它阻止我升級 Ubuntu
我正在嘗試從 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_INSTALL
in/etc/etckeeper/etckeeper.conf
。如果設置為 1do-release-upgrade
則將失敗。我重新評論了那條線,一切都很好。