Fusiondirectory 和 Apache2 互相干扰

Fusiondirectory 和 Apache2 互相干扰

我想安装 Dolibarr,它需要 LAMP,所以我安装了它。但我遇到了错误,于是想出了一个好主意,卸载了所有东西。

现在,我陷入困境。每次尝试uninstall/ purge/ install -f/autoremove都会导致这种情况:

终端转储 1

终端转储

换句话说,我无法安装/卸载任何事物因为有一个提示优先卸载半安装的fusiondirectory不能apache2被安装/卸载,因为它与不存在的文件存在依赖关系问题。

这是我经常得到的:

Removing fusiondirectory (1.0.8.8-3ubuntu2) ...
/usr/sbin/invoke-rc.d: 607: /usr/sbin/invoke-rc.d: /etc/init.d/apache2: not found
invoke-rc.d: initscript apache2, action "reload" failed.
dpkg: error processing package fusiondirectory (--remove):
 subprocess installed post-removal script returned error exit status 127
Errors were encountered while processing:
 fusiondirectory
E: Sub-process /usr/bin/dpkg returned an error code (1)

我走过的路,(所有的sudo install apache2,,install -f等等)

echo "exit" | sudo tee /etc/init.d/apache2; ls -la /etc/init.d/apache2

echo "exit" | sudo tee /etc/init.d/apache2; sudo apt purge -y fusiondirectory; sudo rm /etc/init.d/apache2

sudo echo "exit" > /etc/init.d/apache2; sudo apt purge -y fusiondirectory; sudo rm /etc/init.d/apache2

我会继续添加我走过的路...

相关内容