Ubuntu 16.04 ArangoDB3E 卸載錯誤

Ubuntu 16.04 ArangoDB3E 卸載錯誤

這個問題特定於安裝損壞的 ArangoDB Enterprise 版本所面臨的錯誤,這會阻止進一步安裝其他軟體包,我的目標是解決它。

當我嘗試安裝/刪除軟體包時出現以下錯誤:

dpkg: warning: overriding problem because --force enabled:
dpkg: warning: package is in a very bad inconsistent state; you should
 reinstall it before attempting a removal
(Reading database ... 252333 files and directories currently installed.)
Removing arangodb3e (3.3.3) ...
Failed to stop arangodb3e.service: Unit arangodb3e.service not loaded.
dpkg: error processing package arangodb3e (--remove):
 subprocess installed pre-removal script returned error exit status 5
failed to locate javascript.app-path directory, its neither available in '/var/lib/arangodb3-apps' nor in '//var/lib/arangodb3-apps'
FATAL ERROR: EXIT_FAILED - "exit with error"
dpkg: error while cleaning up:
 subprocess installed post-installation script returned error exit status 1
Errors were encountered while processing:
 arangodb3e

我嘗試了以下方法,仍然沒有運氣:

sudo dpkg --remove --force-remove-reinstreq arangodb3e

答案1

怎麼修:

sudo mv /var/lib/dpkg/info/arangodb3e.* /tmp/
sudo dpkg --remove --force-remove-reinstreq arangodb3e
sudo apt-get remove arangodb3e
sudo apt-get autoremove && sudo apt-get autoclean

現在我可以安裝/重新安裝其他軟體,包括 ArangoDB Enterprise,但安裝結果是一個惡意安裝。

要刪除所有 arango 資料:

cd etc
sudo rm -rf arangodb3

cd /var/run
sudo rm -rf arangodb/


cd /usr/share
sudo rm -rf arangodb3

cd /etc/lib
sudo rm -rf aranogdb3/

cd /var/lib
sudo rm -rf arangodb3/

cd /var/lib
sudo rm -rf arangodb3e/
sudo rm -rf arangdodb3-apps/

cd /var/log
sudo rm -rf arangodb3/

cd /usr/share/doc
sudo rm -rf arangodb3/

cd /var/tmp
sudo rm -rf arangod

相關內容