GNU/Linux >> Znalost Linux >  >> Debian

Debian – Nelze upgradovat Postfix z 2.9.6-2 na 3.2.2-1?

Zavřeno. Tato otázka je mimo téma. Momentálně nepřijímá odpovědi.

Chcete zlepšit tuto otázku? Aktualizujte otázku, aby byla aktuální pro Unix a Linux Stack Exchange.

Zavřeno před 3 lety.


Vylepšete tuto otázku

Nemohu provést apt-get upgrade protože mám chybu s postfix verze.

Pokud se pokusím nainstalovat pouze postfix, zobrazí se mi níže uvedená chyba balíček, ale nerozumím tomu, jak tento problém vyřešit?

 [email protected]:~# 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)
    [email protected]:~#

Verze mého serveru je:

Související:Postgresql upgrade generovaný vaccumdb skript nevysává?

Linux servername 3.2.0-4-amd64 #1 SMP Debian 3.2.89-1 x86_64 GNU/Linux
with ISPconfig3
nainstalované a aktuální

Také jsem zkusil níže:

  • clear apt-get
  • purge postfix install
  • Zkontrolujte závislosti postfixu a použijte aktualizaci

ale žádný z nich mi nefungoval.

A zkusil apt-get -f install ale nefungovalo to.

[email protected]:~# clear
[email protected]:~# 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)
[email protected]:~#

Toto je výstup pro postfix zásad apt-cache (pardon, ve francouzštině)

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

Opravdu zvláštní :

Související:Jak zkopírovat soubor ze vzdáleného serveru na místní počítač?

Udělal jsem novou aktualizaci apt-get a upgrade apt-get a vše je v pořádku, nechápu proč!

děkuji mnohokrát za vaši pomoc.

Přijatá odpověď:

Domnívám se, že tento problém je způsoben https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=848686, kde bylo do předinstalačních háčků přidáno „-x“.

Dokázal jsem to obejít tak, že jsem nejprve upgradoval postfix na verzi 2.11.3-1+deb8u2 z jessie (oldstable) a poté roztáhl (stable).


Debian
  1. Jak upgradovat z Debianu 10 na Debian 11

  2. Upgrade z Debian 6 Squeeze pomocí ISPConfig a courier/postfix na Debian 7 Wheezy

  3. Upgradujte na CentOS 6.4 z CentOS 6.3

  1. Upgradujte z Ubuntu 13.10 na Ubuntu 14.04

  2. Upgradujte z Ubuntu 13.04 na Ubuntu 13.10

  3. Debian 9:Po upgradu z 8 již Mysql (mariadb) nefunguje?

  1. Jak upgradovat systém Debian Linux z Wheezy na stabilní verzi Jessie

  2. Upgradujte na CentOS 6.2 z CentOS 6.1 / CentOS 6.0

  3. Jak upgradovat Debian 8 na Debian 9 Stretch