Acredito que esse problema se deve ao link onde '-x' foi adicionado para os ganchos de pré-instalação.
Consegui resolvê-lo atualizando primeiro o postfix para a versão 2.11.3-1 + deb8u2 de jessie (oldstable) e depois para stretch (estável).
Não consigo executar apt-get upgrade
porque tenho um erro com a minha postfix
version.
Estou recebendo o erro abaixo se eu tentar instalar apenas o pacote postfix
, mas não entendo como resolver esse problema?
root@srv-ispconfig:~# apt-get install postfix
Lecture des listes de paquets... Fait
Construction de l'arbre des dépendances
Lecture des informations d'état... Fait
Les paquets suivants ont été installés automatiquement et ne sont plus nécessaires :
fontconfig-config fonts-droid fonts-liberation gsfonts hicolor-icon-theme imagemagick-common libcupsimage2 libdatrie1 libdjvulibre-text libdjvulibre21 libexiv2-12 libfuse2 libgs9-common
libijs-0.35 libilmbase6 libjasper1 libjbig0 libjbig2dec0 liblcms1 liblcms2-2 liblensfun-data liblensfun0 liblqr-1-0 libnetpbm10 libopenexr6 libpaper-utils libpaper1 libpixman-1-0 libthai-data
libthai0 libtiff4 libxcb-render0 libxcb-shm0 libxrender1 netpbm poppler-data ufraw-batch
Veuillez utiliser « apt-get autoremove » pour les supprimer.
Paquets suggérés :
postfix-mysql postfix-pgsql postfix-ldap postfix-pcre postfix-lmdb postfix-sqlite sasl2-bin resolvconf postfix-cdb ufw
Les paquets suivants seront mis à jour :
postfix
1 mis à jour, 0 nouvellement installés, 0 à enlever et 168 non mis à jour.
2 partiellement installés ou enlevés.
Il est nécessaire de prendre 0 o/1 448 ko dans les archives.
Après cette opération, 471 ko d'espace disque supplémentaires seront utilisés.
Lecture des fichiers de modifications (« changelog »)... Terminé
Préconfiguration des paquets...
postconf: invalid option -- 'x'
postconf: fatal: usage: postconf [-a (server SASL types)] [-A (client SASL types)] [-b (bounce templates)] [-c config_dir] [-C param_class] [-d (defaults)] [-e (edit)] [-f (fold lines)] [-# (comment-out)] [-h (no names)] [-l (lock types)] [-m (map types)] [-M (master.cf)] [-n (non-defaults)] [-v] [name...]
Use of uninitialized value $destinations in scalar chomp at /tmp/postfix.config.418131 line 221.
Use of uninitialized value $_[1] in join or string at /usr/share/perl5/Debconf/Client/ConfModule.pm line 121.
postconf: invalid option -- 'x'
postconf: fatal: usage: postconf [-a (server SASL types)] [-A (client SASL types)] [-b (bounce templates)] [-c config_dir] [-C param_class] [-d (defaults)] [-e (edit)] [-f (fold lines)] [-# (comment-out)] [-h (no names)] [-l (lock types)] [-m (map types)] [-M (master.cf)] [-n (non-defaults)] [-v] [name...]
Use of uninitialized value $mynetworks in scalar chomp at /tmp/postfix.config.418131 line 285.
Use of uninitialized value $_[1] in join or string at /usr/share/perl5/Debconf/Client/ConfModule.pm line 121.
postconf: invalid option -- 'x'
postconf: fatal: usage: postconf [-a (server SASL types)] [-A (client SASL types)] [-b (bounce templates)] [-c config_dir] [-C param_class] [-d (defaults)] [-e (edit)] [-f (fold lines)] [-# (comment-out)] [-h (no names)] [-l (lock types)] [-m (map types)] [-M (master.cf)] [-n (non-defaults)] [-v] [name...]
Use of uninitialized value $protos in scalar chomp at /tmp/postfix.config.418131 line 387.
Use of uninitialized value $_[1] in join or string at /usr/share/perl5/Debconf/Client/ConfModule.pm line 121.
dpkg: avertissement: le fichier contenant la liste des fichiers du paquet « postfix » étant manquant, il est considéré qu'aucun fichier du paquet n'est actuellement installé
(Lecture de la base de données... 69515 fichiers et répertoires déjà installés.)
Préparation du dépaquetage de .../postfix_3.2.2-1_amd64.deb ...
postconf: invalid option -- 'x'
postconf: fatal: usage: postconf [-a (server SASL types)] [-A (client SASL types)] [-b (bounce templates)] [-c config_dir] [-C param_class] [-d (defaults)] [-e (edit)] [-f (fold lines)] [-# (comment-out)] [-h (no names)] [-l (lock types)] [-m (map types)] [-M (master.cf)] [-n (non-defaults)] [-v] [name...]
Use of uninitialized value $destinations in scalar chomp at /var/lib/dpkg/tmp.ci/config line 221.
Use of uninitialized value $_[1] in join or string at /usr/share/perl5/Debconf/Client/ConfModule.pm line 121.
postconf: invalid option -- 'x'
postconf: fatal: usage: postconf [-a (server SASL types)] [-A (client SASL types)] [-b (bounce templates)] [-c config_dir] [-C param_class] [-d (defaults)] [-e (edit)] [-f (fold lines)] [-# (comment-out)] [-h (no names)] [-l (lock types)] [-m (map types)] [-M (master.cf)] [-n (non-defaults)] [-v] [name...]
Use of uninitialized value $mynetworks in scalar chomp at /var/lib/dpkg/tmp.ci/config line 285.
Use of uninitialized value $_[1] in join or string at /usr/share/perl5/Debconf/Client/ConfModule.pm line 121.
postconf: invalid option -- 'x'
postconf: fatal: usage: postconf [-a (server SASL types)] [-A (client SASL types)] [-b (bounce templates)] [-c config_dir] [-C param_class] [-d (defaults)] [-e (edit)] [-f (fold lines)] [-# (comment-out)] [-h (no names)] [-l (lock types)] [-m (map types)] [-M (master.cf)] [-n (non-defaults)] [-v] [name...]
Use of uninitialized value $protos in scalar chomp at /var/lib/dpkg/tmp.ci/config line 387.
Use of uninitialized value $_[1] in join or string at /usr/share/perl5/Debconf/Client/ConfModule.pm line 121.
postconf: invalid option -- 'x'
postconf: fatal: usage: postconf [-a (server SASL types)] [-A (client SASL types)] [-b (bounce templates)] [-c config_dir] [-C param_class] [-d (defaults)] [-e (edit)] [-f (fold lines)] [-# (comment-out)] [-h (no names)] [-l (lock types)] [-m (map types)] [-M (master.cf)] [-n (non-defaults)] [-v] [name...]
postconf: invalid option -- 'x'
postconf: fatal: usage: postconf [-a (server SASL types)] [-A (client SASL types)] [-b (bounce templates)] [-c config_dir] [-C param_class] [-d (defaults)] [-e (edit)] [-f (fold lines)] [-# (comment-out)] [-h (no names)] [-l (lock types)] [-m (map types)] [-M (master.cf)] [-n (non-defaults)] [-v] [name...]
dpkg: erreur de traitement de l'archive /var/cache/apt/archives/postfix_3.2.2-1_amd64.deb (--unpack) :
le sous-processus nouveau script pre-installation a retourné une erreur de sortie d'état 1
Des erreurs ont été rencontrées pendant l'exécution :
/var/cache/apt/archives/postfix_3.2.2-1_amd64.deb
E: Sub-process /usr/bin/dpkg returned an error code (1)
root@srv-ispconfig:~#
Minha versão do servidor é:
Linux servername 3.2.0-4-amd64 #1 SMP Debian 3.2.89-1 x86_64 GNU/Linux
with ISPconfig3
instalado e atualizado
Eu também tentei o seguinte:
clear apt-get
purge postfix install
mas nenhum deles funcionou para mim.
E tentou apt-get -f install
, mas não funcionou.
root@msi-ispconfig:~# clear
root@srv-ispconfig:~# apt-get -f install
Lecture des listes de paquets... Fait
Construction de l'arbre des dépendances
Lecture des informations d'état... Fait
Correction des dépendances... Fait
Les paquets suivants ont été installés automatiquement et ne sont plus nécessaires :
fontconfig-config fonts-droid fonts-liberation gsfonts hicolor-icon-theme html2text imagemagick-common libcupsimage2 libdatrie1 libdjvulibre-text libdjvulibre21 libexiv2-12 libfuse2
libgs9-common libijs-0.35 libilmbase6 libjasper1 libjbig0 libjbig2dec0 liblcms1 liblcms2-2 liblensfun-data liblensfun0 liblqr-1-0 libnetpbm10 libopenexr6 libpaper-utils libpaper1
libpixman-1-0 libthai-data libthai0 libtiff4 libxcb-render0 libxcb-shm0 libxrender1 netpbm poppler-data ufraw-batch
Veuillez utiliser « apt-get autoremove » pour les supprimer.
Les paquets supplémentaires suivants seront installés :
postfix
Paquets suggérés :
postfix-pgsql postfix-ldap postfix-pcre postfix-lmdb postfix-sqlite sasl2-bin resolvconf postfix-cdb ufw
Les paquets suivants seront mis à jour :
postfix
1 mis à jour, 0 nouvellement installés, 0 à enlever et 167 non mis à jour.
1 partiellement installés ou enlevés.
Il est nécessaire de prendre 0 o/1 448 ko dans les archives.
Après cette opération, 471 ko d'espace disque supplémentaires seront utilisés.
Souhaitez-vous continuer [O/n] ? o
Lecture des fichiers de modifications (« changelog »)... Terminé
Préconfiguration des paquets...
postconf: invalid option -- 'x'
postconf: fatal: usage: postconf [-a (server SASL types)] [-A (client SASL types)] [-b (bounce templates)] [-c config_dir] [-C param_class] [-d (defaults)] [-e (edit)] [-f (fold lines)] [-# (comment-out)] [-h (no names)] [-l (lock types)] [-m (map types)] [-M (master.cf)] [-n (non-defaults)] [-v] [name...]
Use of uninitialized value $destinations in scalar chomp at /tmp/postfix.config.72701 line 221.
Use of uninitialized value $_[1] in join or string at /usr/share/perl5/Debconf/Client/ConfModule.pm line 121.
postconf: invalid option -- 'x'
postconf: fatal: usage: postconf [-a (server SASL types)] [-A (client SASL types)] [-b (bounce templates)] [-c config_dir] [-C param_class] [-d (defaults)] [-e (edit)] [-f (fold lines)] [-# (comment-out)] [-h (no names)] [-l (lock types)] [-m (map types)] [-M (master.cf)] [-n (non-defaults)] [-v] [name...]
Use of uninitialized value $mynetworks in scalar chomp at /tmp/postfix.config.72701 line 285.
Use of uninitialized value $_[1] in join or string at /usr/share/perl5/Debconf/Client/ConfModule.pm line 121.
postconf: invalid option -- 'x'
postconf: fatal: usage: postconf [-a (server SASL types)] [-A (client SASL types)] [-b (bounce templates)] [-c config_dir] [-C param_class] [-d (defaults)] [-e (edit)] [-f (fold lines)] [-# (comment-out)] [-h (no names)] [-l (lock types)] [-m (map types)] [-M (master.cf)] [-n (non-defaults)] [-v] [name...]
Use of uninitialized value $protos in scalar chomp at /tmp/postfix.config.72701 line 387.
Use of uninitialized value $_[1] in join or string at /usr/share/perl5/Debconf/Client/ConfModule.pm line 121.
dpkg: avertissement: le fichier contenant la liste des fichiers du paquet « postfix » étant manquant, il est considéré qu'aucun fichier du paquet n'est actuellement installé
(Lecture de la base de données... 69877 fichiers et répertoires déjà installés.)
Préparation du dépaquetage de .../postfix_3.2.2-1_amd64.deb ...
postconf: invalid option -- 'x'
postconf: fatal: usage: postconf [-a (server SASL types)] [-A (client SASL types)] [-b (bounce templates)] [-c config_dir] [-C param_class] [-d (defaults)] [-e (edit)] [-f (fold lines)] [-# (comment-out)] [-h (no names)] [-l (lock types)] [-m (map types)] [-M (master.cf)] [-n (non-defaults)] [-v] [name...]
Use of uninitialized value $destinations in scalar chomp at /var/lib/dpkg/tmp.ci/config line 221.
Use of uninitialized value $_[1] in join or string at /usr/share/perl5/Debconf/Client/ConfModule.pm line 121.
postconf: invalid option -- 'x'
postconf: fatal: usage: postconf [-a (server SASL types)] [-A (client SASL types)] [-b (bounce templates)] [-c config_dir] [-C param_class] [-d (defaults)] [-e (edit)] [-f (fold lines)] [-# (comment-out)] [-h (no names)] [-l (lock types)] [-m (map types)] [-M (master.cf)] [-n (non-defaults)] [-v] [name...]
Use of uninitialized value $mynetworks in scalar chomp at /var/lib/dpkg/tmp.ci/config line 285.
Use of uninitialized value $_[1] in join or string at /usr/share/perl5/Debconf/Client/ConfModule.pm line 121.
postconf: invalid option -- 'x'
postconf: fatal: usage: postconf [-a (server SASL types)] [-A (client SASL types)] [-b (bounce templates)] [-c config_dir] [-C param_class] [-d (defaults)] [-e (edit)] [-f (fold lines)] [-# (comment-out)] [-h (no names)] [-l (lock types)] [-m (map types)] [-M (master.cf)] [-n (non-defaults)] [-v] [name...]
Use of uninitialized value $protos in scalar chomp at /var/lib/dpkg/tmp.ci/config line 387.
Use of uninitialized value $_[1] in join or string at /usr/share/perl5/Debconf/Client/ConfModule.pm line 121.
postconf: invalid option -- 'x'
postconf: fatal: usage: postconf [-a (server SASL types)] [-A (client SASL types)] [-b (bounce templates)] [-c config_dir] [-C param_class] [-d (defaults)] [-e (edit)] [-f (fold lines)] [-# (comment-out)] [-h (no names)] [-l (lock types)] [-m (map types)] [-M (master.cf)] [-n (non-defaults)] [-v] [name...]
postconf: invalid option -- 'x'
postconf: fatal: usage: postconf [-a (server SASL types)] [-A (client SASL types)] [-b (bounce templates)] [-c config_dir] [-C param_class] [-d (defaults)] [-e (edit)] [-f (fold lines)] [-# (comment-out)] [-h (no names)] [-l (lock types)] [-m (map types)] [-M (master.cf)] [-n (non-defaults)] [-v] [name...]
dpkg: erreur de traitement de l'archive /var/cache/apt/archives/postfix_3.2.2-1_amd64.deb (--unpack) :
le sous-processus nouveau script pre-installation a retourné une erreur de sortie d'état 1
Des erreurs ont été rencontrées pendant l'exécution :
/var/cache/apt/archives/postfix_3.2.2-1_amd64.deb
E: Sub-process /usr/bin/dpkg returned an error code (1)
root@srv-ispconfig:~#
Esta é a saída para o postfix da política do apt-cache (desculpe, em francês)
postfix:
Installé : 3.2.2-1
Candidat : 3.2.2-1
Table de version :
*** 3.2.2-1 0
500 http://ftp.debian.org/debian/ sid/main amd64 Packages
100 /var/lib/dpkg/status
2.9.6-2 0
500 http://ftp.fr.debian.org/debian/ wheezy/main amd64 Packages
Realmente estranho:
Eu fiz uma nova atualização do apt-get, e atualizei o apt-get, e tudo está ok, eu não entendo o porquê!
muito obrigado pela sua ajuda.
Acredito que esse problema se deve ao link onde '-x' foi adicionado para os ganchos de pré-instalação.
Consegui resolvê-lo atualizando primeiro o postfix para a versão 2.11.3-1 + deb8u2 de jessie (oldstable) e depois para stretch (estável).
Embora o usuário acima não tenha compartilhado como fazer a atualização real. Isso é o que eu faço com pacotes problemáticos quando tenho certeza de que a próxima versão corrige um problema específico.
Primeiro faça uma lista de pacotes de dependências e tente atualizar todos os pacotes de dependência primeiro, por exemplo, o postfix tem algumas dependências, conflitos, sugestões, etc., o que significa que há escolhas que você deve fazer -
[$] apt-cache depends postfix
postfix
Depends: libc6
Depends: libdb5.3
Depends: libicu57
Depends: libsasl2-2
Depends: libssl1.1
|Depends: debconf
Depends: <debconf-2.0>
cdebconf
debconf
Depends: init-system-helpers
Depends: netbase
Depends: adduser
Depends: dpkg
dpkg:i386
Depends: lsb-base
Depends: ssl-cert
Depends: cpio
cpio:i386
Conflicts: <mail-transport-agent>
citadel-server
courier-mta
dma:i386
dma
esmtp-run
exim4-daemon-heavy
exim4-daemon-light
masqmail
msmtp-mta
nullmailer
opensmtpd
qmail-run
sendmail-bin
ssmtp
Conflicts: <smail>
Recommends: python3
Suggests: procmail
Suggests: postfix-mysql
Suggests: postfix-pgsql
Suggests: postfix-ldap
Suggests: postfix-pcre
Suggests: postfix-lmdb
Suggests: postfix-sqlite
Suggests: sasl2-bin
Suggests: libsasl2-modules
Suggests: <dovecot-common>
dovecot-core
Suggests: resolvconf
openresolv
Suggests: postfix-cdb
Suggests: <mail-reader>
balsa
bsd-mailx
claws-mail:i386
claws-mail
edbrowse
emacs24
emacs24-lucid
emacs24-nox
emacs25
emacs25-lucid
emacs25-nox
evolution
gnumail.app
im
jed
kmail
mailutils
mailutils-mh
mew
mew-beta
mew-beta-bin
mew-bin
mmh
mutt
nmh
s-nail
sup-mail
sylpheed
thunderbird
tkrat
vm
wl
wl-beta
xemacs21-mule
xemacs21-mule-canna-wnn
xemacs21-nomule
xjed
Suggests: ufw
Suggests: postfix-doc
Replaces: <mail-transport-agent>
citadel-server
courier-mta
dma:i386
dma
esmtp-run
exim4-daemon-heavy
exim4-daemon-light
masqmail
msmtp-mta
nullmailer
opensmtpd
postfix
qmail-run
sendmail-bin
ssmtp
Primeiro, faço backup de qualquer arquivo de configuração do postfix, depois, se possível, purgar o postfix -
$ sudo aptitude purge postfix
Se isso funcionar, tente atualizar / atualizar a cadeia de dependência subjacente até onde ela funciona sem um problema.
Em seguida, vá para a página PTR (Package tracking page) packages.debian.org, baixe a versão específica
https://packages.debian.org/jessie/amd64/postfix/download
Faça o download do espelho mais próximo de você e tente instalá-lo via dpkg. O DPKG irá reclamar caso algumas das dependências não sejam da mesma versão. Se você tem jessie em seu /etc/apt/sources.list, então atualize para isso, se você quer pular diretamente de wheezy para alongar, então baixe todos os pacotes de dependência da maneira que eu compartilhei acima, faça isso em shell e fique pronto por qualquer quebrantamento que seja possível ..
Existe apenas uma regra de ouro no Debian, não entre em pânico e tenha um pouco de tempo para mexer. Se você tem uma mente clara e tempo para mexer, então isso pode ser corrigido com bastante facilidade. Lembre-se de fazer todo o seu conserto em um terminal virtual e colocar X off ao fazer coisas como essas. Compartilhe conosco se tiver algum problema ao fazer isso levantando uma nova pergunta e fornecendo um link da pergunta antiga para que as pessoas saibam de onde você é. Espero que sua instalação do postfix seja corrigida. Outra coisa que você pode fazer é também verificar as notas de lançamento da versão postfix para stretch para saber quais alterações foram feitas e se algumas alterações incompatíveis estão lá e corrigir o arquivo de configuração correspondente.