这个问题特定于安装损坏的 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