
dovecot을 제거하는 데 문제가 있습니다. 그리고 그것을 고치려고 노력하는 동안 나는 상황을 더욱 악화시켰습니다. 다음은 "로그"입니다.
Errors were encountered while processing:
dovecot-imapd
dovecot-pop3d
E: Sub-process /usr/bin/dpkg returned an error code (1)
root@gasimzada:/usr/lib# apt-get remove -f dovecot-imapd
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following packages will be REMOVED:
dovecot-imapd dovecot-pop3d
0 upgraded, 0 newly installed, 2 to remove and 0 not upgraded.
2 not fully installed or removed.
After this operation, 976 kB disk space will be freed.
Do you want to continue [Y/n]? y
(Reading database ... 43903 files and directories currently installed.)
Removing dovecot-imapd ...
doveconf: error while loading shared libraries: libdovecot.so.0: cannot open shared object file: No such file or directory
[....] Starting IMAP/POP3 mail server: dovecot/usr/sbin/dovecot: error while loading shared libraries: libdovecot.so.0: cannot open shared object file: No such file or directory
failed!
invoke-rc.d: initscript dovecot, action "start" failed.
dpkg: error processing dovecot-imapd (--remove):
subprocess installed post-removal script returned error exit status 1
Removing dovecot-pop3d ...
doveconf: error while loading shared libraries: libdovecot.so.0: cannot open shared object file: No such file or directory
[....] Starting IMAP/POP3 mail server: dovecot/usr/sbin/dovecot: error while loading shared libraries: libdovecot.so.0: cannot open shared object file: No such file or directory
failed!
invoke-rc.d: initscript dovecot, action "start" failed.
dpkg: error processing dovecot-pop3d (--remove):
subprocess installed post-removal script returned error exit status 1
Errors were encountered while processing:
dovecot-imapd
dovecot-pop3d
E: Sub-process /usr/bin/dpkg returned an error code (1)
오류가 발생하는 이유는 끔찍한 생각이었던 /usr/lib에서 dovecot 폴더를 제거했기 때문입니다. 패키지를 실행하지 않고 패키지를 제거하는 대안은 무엇입니까?
감사해요,
답변1
이렇게 하면 데비안에서 dovecot이 제거됩니다.
systemctl stop dovecot
systemctl disable dovecot
apt-get purge dovecot-core
apt-get autoremove dovecot-core
답변2
옵션 가)
패키지를 다시 설치한 후 즉시 제거하십시오.
옵션 b)
doveconf를 호출하지 않도록 post-rm 스크립트 파일을 조정하십시오.
옵션 c)
doveconf 자체를 조정하여 /bin/true의 복제본이 되도록 합니다.
답변3
재설치/제거/제거가 작동하지 않았습니다. 이 작업은 다음과 같습니다.
이것은 나에게 효과적이었습니다.
sudo nano /etc/init.d/dovecot
종료 0을 맨 윗줄에 입력하고(주석 다음 두 번째 줄에 입력할 수 있음) 저장하고 aptitude-remove를 시도하여 손상된 설치를 제거합니다.
:-)