Erro no postfix

0

Estou tentando executar sudo apt-get install -f , mas parece que o pacote postfix está corrompido:

$ sudo apt-get install -f
[sudo] password for learner: 
Reading package lists... Done
Building dependency tree       
Reading state information... Done
0 upgraded, 0 newly installed, 0 to remove and 15 not upgraded.
1 not fully installed or removed.
After this operation, 0 B of additional disk space will be used.
Setting up postfix (2.11.0-1ubuntu1) ...
update-rc.d: /etc/init.d/postfix: file does not exist
dpkg: error processing package postfix (--configure):
 subprocess installed post-installation script returned error exit status 1
Processing triggers for libc-bin (2.19-0ubuntu6.6) ...
Errors were encountered while processing:
 postfix
E: Sub-process /usr/bin/dpkg returned an error code (1)

No entanto, não recebo uma saída de:

sudo dkpg --configure -a

Eu também estou recebendo este erro:

$ sudo service postfix status
[sudo] password for learner:
postfix: unrecognized service

Resultados para sudo apt-get purge(or autoremove) postfix:

learner@juggernaut:~$ sudo apt-get purge postfix
Reading package lists... Done
Building dependency tree       
Reading state information... Done
The following extra packages will be installed:
  lsb-invalid-mta
The following packages will be REMOVED:
  postfix*
The following NEW packages will be installed:
  lsb-invalid-mta
0 upgraded, 1 newly installed, 1 to remove and 15 not upgraded.
1 not fully installed or removed.
Need to get 0 B/5,106 B of archives.
After this operation, 3,541 kB disk space will be freed.
Do you want to continue? [Y/n] y
dpkg: postfix: dependency problems, but removing anyway as you requested:
 lsb-core depends on lsb-invalid-mta (>= 4.1+Debian11ubuntu6) | mail-transport-agent; however:
  Package lsb-invalid-mta is not installed.
  Package mail-transport-agent is not installed.
  Package postfix which provides mail-transport-agent is to be removed.

(Reading database ... 228875 files and directories currently installed.)
Removing postfix (2.11.0-1ubuntu1) ...
invoke-rc.d: unknown initscript, /etc/init.d/postfix not found.
dpkg: error processing package postfix (--purge):
 subprocess installed pre-removal script returned error exit status 100
Errors were encountered while processing:
 postfix
E: Sub-process /usr/bin/dpkg returned an error code (1)
learner@juggernaut:~$
    
por juggernauthk108 29.01.2016 / 15:38

1 resposta

-2

Você está executando com sucesso apt-get install -f e está informando que:

% bl0ck_qu0te%

Assim, parece que há duas informações valiosas a serem obtidas aqui; A primeira é que 15 dos seus pacotes atualmente instalados podem ser atualizados; em segundo lugar, você tem um pacote que não está instalado corretamente ou totalmente; Que aparentemente é o postfix.

Primeiras coisas primeiro você deve atualizar seus pacotes ...

sudo apt-get update

seguido por:

sudo apt-get dist-upgrade -u

Talvez agora você possa configurar o postfix tendo corrigido qualquer problema de dependência ...

    
por iain 29.01.2016 / 22:07