Поврежденный PostFix Installv

Я случайно удалил некоторые файлы, которые нужны postfix, и теперь он не будет устанавливать или удалять:

sudo apt-get purge postfix
sudo apt-get remove postfix
sudo apt-get upgrade
sudo apt-get install postfix
sudo apt-get autoremove postfix
sudo apt-get remore --auto-remove postfix

, независимо от того, что я делаю, я всегда получаю следующую ошибку:

root@GitLab:/# sudo apt-get remove postfix
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following packages will be REMOVED:
  postfix
0 upgraded, 0 newly installed, 1 to remove and 0 not upgraded.
1 not fully installed or removed.
After this operation, 3,361 kB disk space will be freed.
Do you want to continue? [Y/n] y
(Reading database ... 99428 files and directories currently installed.)
Removing postfix (2.11.0-1) ...
invoke-rc.d: unknown initscript, /etc/init.d/postfix not found.
dpkg: error processing package postfix (--remove):
 subprocess installed pre-removal script returned error exit status 100
/var/lib/dpkg/info/postfix.postinst: 13: .: Can't open /usr/share/postfix/postinst.functions
dpkg: error while cleaning up:
 subprocess installed post-installation script returned error exit status 2
Errors were encountered while processing:
 postfix
E: Sub-process /usr/bin/dpkg returned an error code (1)

РЕДАКТИРОВАТЬ: следовал этому руководству, и это было исправлено: http://blog.bodhizazen.com/linux/apt-get-how-to-fix-very-broken-packages/

2
задан 22 August 2017 в 20:20

0 ответов

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

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