Попытка удалить clamav
и clamav-daemon
, но кажется, что apt
и dpkg
застряли, и ничего не может завершиться без этой ошибки:
dpkg --remove
output:
(Reading database ... 385080 files and directories currently installed.)
Removing clamav-daemon (0.99.2+dfsg-0ubuntu0.16.04.2) ...
Failed to stop clamav-daemon.socket: Unit clamav-daemon.socket not loaded.
dpkg: error processing package clamav-daemon (--remove):
subprocess installed pre-removal script returned error exit status 5
/usr/bin/deb-systemd-helper: error: unable to read clamav-daemon.service
/usr/bin/deb-systemd-helper: error: unable to read clamav-daemon.socket
Errors were encountered while processing:
clamav-daemon
И любая команда apt
добавляет это в конец:
Reading package lists... Done
Building dependency tree
Reading state information... Done
You might want to run 'apt-get -f install' to correct these.
The following packages have unmet dependencies:
clamav-daemon : Depends: clamav-base (= 0.99.2+dfsg-0ubuntu0.16.04.2) but 0.99.3+addedllvm-0ubuntu0.16.04.1 is installed
Recommends: clamdscan but it is not installed
E: Unmet dependencies. Try using -f.
Я пробовал apt -f install
, попробовал dpkg --configure -a
, попытался установить, а затем удалить, попытался создать поддельные файлы с именем clamav-daemon.service / socket
надеяться, что сценарий примет это и продолжит. Ничего не помогло, и у меня нет идей.
Любая помощь приветствуется.
Сценарий предварительного удаления можно найти по следующему пути.
/var/lib/dpkg/info/clamav-daemon.prerm
Вы должны иметь возможность отредактировать этот сценарий, чтобы удалить неисправную часть. В качестве альтернативы можно полностью удалить сценарий, но при этом могут быть пропущены другие шаги очистки.