Не удается удалить / очистить пакет из-за ошибки сценария после удаления

В случае аварии я ранее удалял Apache из установки, пытаясь удалить ненужные пакеты на сервере LDAP. Я не понял, что у меня также был установлен Fusion Directory, и теперь я не могу переустанавливать Apache или Fusion Directory, поскольку получаю сообщение об ошибке при попытке выполнить операцию с помощью apt / dpkg:

ckilgore@ubuntu-ldap-server:/etc/apache2/conf-available$ sudo apt install apache2
Reading package lists... Done
Building dependency tree       
Reading state information... Done
apache2 is already the newest version (2.4.18-2ubuntu3.1).
The following packages will be REMOVED:
  fusiondirectory
0 upgraded, 0 newly installed, 1 to remove and 24 not upgraded.
1 not fully installed or removed.
After this operation, 6,822 kB disk space will be freed.
Do you want to continue? [Y/n] y
(Reading database ... 98501 files and directories currently installed.)
Removing fusiondirectory (1.0.8.8-3ubuntu2) ...
apache2_invoke fusiondirectory postrm: No action required
apache2.service is not active, cannot reload.
invoke-rc.d: initscript apache2, action "reload" failed.
dpkg: error processing package fusiondirectory (--remove):
 subprocess installed post-removal script returned error exit status 1
Errors were encountered while processing:
 fusiondirectory
E: Sub-process /usr/bin/dpkg returned an error code (1)

Мне бы очень хотелось просто удалить Apache и Fusion Directory полностью, переустановить и повторно импортировать мою конфигурацию для Fusion Directory. Однако с этой проблемой я не могу. Каков наилучший подход к устранению этой проблемы?

Ниже приведены записи из syslog и apt log

syslog

Sep 17 09:26:50 ubuntu-ldap-server fusiondirectory: apache2_invoke fusiondirectory postrm: No action required
Sep 17 09:26:50 ubuntu-ldap-server systemd[1]: Reloading.
Sep 17 09:26:51 ubuntu-ldap-server systemd[1]: apt-daily.timer: Adding 8h 34min 29.316164s random time.
Sep 17 09:26:51 ubuntu-ldap-server systemd[1]: Started ACPI event daemon.
Sep 17 09:26:51 ubuntu-ldap-server systemd[1]: apache2.service: Unit cannot be reloaded because it is inactive.
Sep 17 09:29:53 ubuntu-ldap-server fusiondirectory: apache2_invoke fusiondirectory postrm: No action required
Sep 17 09:29:54 ubuntu-ldap-server systemd[1]: Reloading.
Sep 17 09:29:54 ubuntu-ldap-server systemd[1]: apt-daily.timer: Adding 6min 36.572554s random time.
Sep 17 09:29:54 ubuntu-ldap-server systemd[1]: Starting Daily apt activities...
Sep 17 09:29:54 ubuntu-ldap-server systemd[1]: Started ACPI event daemon.
Sep 17 09:29:54 ubuntu-ldap-server systemd[1]: apache2.service: Unit cannot be reloaded because it is inactive.
Sep 17 09:29:55 ubuntu-ldap-server systemd[1]: Started Daily apt activities.
Sep 17 09:29:55 ubuntu-ldap-server systemd[1]: apt-daily.timer: Adding 6h 12min 2.585803s random time.
Sep 17 09:29:55 ubuntu-ldap-server systemd[1]: apt-daily.timer: Adding 9h 49min 31.073000s random time.

term.log

Log started: 2016-09-17  09:29:52
(Reading database ... ^M(Reading database ... 5%^M(Reading database ... 10%^M(Reading database ... 15%^M(Reading database ... 20%^M(Reading database ... 25%^M(Reading database ... 30%^M(Reading database ... 35%^M(Reading database ... 40%^M(Reading database ... 45%^M(Reading database ... 50%^M(Reading database ... 55%^M(Reading database ... 60%^M(Reading database ... 65%^M(Reading database ... 70%^M(Reading database ... 75%^M(Reading database ... 80%^M(Reading database ... 85%^M(Reading database ... 90%^M(Reading database ... 95%^M(Reading database ... 100%^M(Reading database ... 98501 files and directories currently installed.)^M
Removing fusiondirectory (1.0.8.8-3ubuntu2) ...^M
apache2_invoke fusiondirectory postrm: No action required^M
apache2.service is not active, cannot reload.^M
invoke-rc.d: initscript apache2, action "reload" failed.^M
dpkg: error processing package fusiondirectory (--remove):^M
 subprocess installed post-removal script returned error exit status 1^M
Errors were encountered while processing:^M
 fusiondirectory^M
1
задан 17 September 2016 в 16:35

0 ответов

Другие вопросы по тегам:

Похожие вопросы: