Vous ne pouvez pas faire ça maintenant car dpkg/apt semble avoir laissé des choses non configurées

Bonjour à tous, je sollicite votre aide pour résoudre le problème qui est déjà dans le titre.
Mon serveur fonctionne correctement (sauf pour postfix qui ne démarre pas, je suis derrière une livebox5, je n’utilise pas le mail sur le serveur) , j’y accède sans problème mais je ne parviens plus à faire de MaJ, j’obtiens les indications suivantes:
""Vous ne pouvez pas faire ça maintenant car dpkg/apt (le gestionnaire de paquets du système) semble avoir laissé des choses non configurées. Vous pouvez essayer de résoudre ce problème en vous connectant via SSH et en exécutant sudo apt install --fix-broken et/ou `sudo dpkg --configure -a’.
Le catalogue des applications a été mis à jour !
Mise à jour du catalogue d’applications…
Des erreurs se sont produites lors de la mise à jour du cache APT (gestionnaire de paquets Debian). Voici un extrait des lignes du fichier sources.list qui pourrait vous aider à identifier les lignes problématiques :
sources.list:deb http://ftp.debian.org/debian stretch main contrib
sources.list:deb-src http://ftp.debian.org/debian stretch main contrib
sources.list:deb http://forge.yunohost.org/debian/ stretch stable
sources.list:deb http://security.debian.org/debian-security stretch/updates main contrib non-free
sources.list:deb-src http://security.debian.org/debian-security stretch/updates main contrib non-free
sources.list:deb http://ftp.debian.org/debian stretch-updates main contrib non-free
sources.list:deb-src http://ftp.debian.org/debian stretch-updates main contrib non-free
sources.list.d/php7.list:deb https://packages.sury.org/php/ stretch main
sources.list.d/extra_php_version.list:deb https://packages.sury.org/php/ stretch main

W: Target Translations (main/i18n/Translation-fr) is configured multiple times in /etc/apt/sources.list.d/extra_php_version.list:1 and /etc/apt/sources.list.d/php7.list:1""
J’ai bien sur tenté les cdes proposées en SSH sans succés.
Auriez vous une méthode de résolution…
Merci d’avance.

Si ça ne marche pas alors qu’est-ce que ça dit …

Pour ce problème tu peux faire un :

rm /etc/apt/sources.list.d/php7.list

Bonsoir, merci pour votre premier message, si j’utilise la cde: sudo apt install --fix-broken
J obtient cette réponse sur la console:
admin@xxxx56:~$ sudo apt install --fix-broken
Lecture des listes de paquets… Fait
Construction de l’arbre des dépendances
Lecture des informations d’état… Fait
Correction des dépendances… Fait
The following additional packages will be installed:
postfix-ldap postfix-pcre
Les paquets suivants seront mis à jour :
postfix-ldap postfix-pcre
2 mis à jour, 0 nouvellement installés, 0 à enlever et 177 non mis à jour.
2 partiellement installés ou enlevés.
Il est nécessaire de prendre 0 o/663 ko dans les archives.
Après cette opération, 0 o d’espace disque supplémentaires seront utilisés.
Souhaitez-vous continuer ? [O/n] o
Lecture des fichiers de modifications (« changelog »)… Terminé
Paramétrage de postfix (3.1.15-0+deb9u1) …
postconf: warning: /etc/postfix/main.cf, line 169: overriding earlier entry: relayhost=
postconf: fatal: /etc/postfix/main.cf, line 170: missing ‘=’ after attribute name: “service postfix restart”
Use of uninitialized value $destinations in scalar chomp at /var/lib/dpkg/info/postfix.config line 221.
Use of uninitialized value $[1] in join or string at /usr/share/perl5/Debconf/Client/ConfModule.pm line 121.
postconf: warning: /etc/postfix/main.cf, line 169: overriding earlier entry: relayhost=
postconf: fatal: /etc/postfix/main.cf, line 170: missing ‘=’ after attribute name: “service postfix restart”
Use of uninitialized value $mynetworks in scalar chomp at /var/lib/dpkg/info/postfix.config line 285.
Use of uninitialized value $
[1] in join or string at /usr/share/perl5/Debconf/Client/ConfModule.pm line 121.
postconf: warning: /etc/postfix/main.cf, line 169: overriding earlier entry: relayhost=
postconf: fatal: /etc/postfix/main.cf, line 170: missing ‘=’ after attribute name: “service postfix restart”
Use of uninitialized value $protos in scalar chomp at /var/lib/dpkg/info/postfix.config line 387.
Use of uninitialized value $_[1] in join or string at /usr/share/perl5/Debconf/Client/ConfModule.pm line 121.

Postfix (main.cf) configuration was not changed. If you need to make changes,
edit /etc/postfix/main.cf (and others) as needed. To view Postfix
configuration values, see postconf(1).

After modifying main.cf, be sure to run ‘service postfix reload’.

Running newaliases
postconf: warning: /etc/postfix/main.cf, line 169: overriding earlier entry: relayhost=
postconf: fatal: /etc/postfix/main.cf, line 170: missing ‘=’ after attribute name: “service postfix restart”
newaliases: warning: /etc/postfix/main.cf, line 169: overriding earlier entry: relayhost=
newaliases: fatal: /etc/postfix/main.cf, line 170: missing ‘=’ after attribute name: “service postfix restart”
dpkg: erreur de traitement du paquet postfix (–configure) :
le sous-processus script post-installation installé a retourné une erreur de sortie d’état 75
Des erreurs ont été rencontrées pendant l’exécution :
postfix
E: Sub-process /usr/bin/dpkg returned an error code (1)

Et si j’utilise celle ci
j’obtiens:
Using username “admin”.
Debian GNU/Linux 9
admin@192.168.1.18’s password:
Linux xxxx56.ovh 4.9.0-12-amd64 #1 SMP Debian 4.9.210-1+deb9u1 (202 0-06-07) x86_64

The programs included with the Debian GNU/Linux system are free software;
the exact distribution terms for each program are described in the
individual files in /usr/share/doc/*/copyright.

Debian GNU/Linux comes with ABSOLUTELY NO WARRANTY, to the extent
permitted by applicable law.
Last login: Tue Sep 8 20:38:18 2020 from 192.168.1.35
admin@xxxx56:~$ sudo dpkg --configure -a
Paramétrage de php7.2-fpm (7.2.32-1+0~20200710.46+debian9~1.gbp625eb5) …
Job for php7.2-fpm.service failed because the control process exited with error code.
See “systemctl status php7.2-fpm.service” and “journalctl -xe” for details.
invoke-rc.d: initscript php7.2-fpm, action “restart” failed.
● php7.2-fpm.service - The PHP 7.2 FastCGI Process Manager
Loaded: loaded (/lib/systemd/system/php7.2-fpm.service; enabled; vendor prese t: enabled)
Active: failed (Result: exit-code) since Tue 2020-09-08 20:48:39 CEST; 17ms a go
Docs: man:php-fpm7.2(8)
Process: 19012 ExecStopPost=/usr/lib/php/php-fpm-socket-helper remove /run/php /php-fpm.sock /etc/php/7.2/fpm/pool.d/www.conf 72 (code=exited, status=0/SUCCESS )
Process: 19010 ExecStart=/usr/sbin/php-fpm7.2 --nodaemonize --fpm-config /etc/ php/7.2/fpm/php-fpm.conf (code=exited, status=78)
Main PID: 19010 (code=exited, status=78)

sept. 08 20:48:39 xxxx56.ovh systemd[1]: Starting The PHP 7.2 Fa……
sept. 08 20:48:39 xxxx56.ovh php-fpm7.2[19010]: [08-Sep-2020 20:…ry
sept. 08 20:48:39 xxxx56.ovh php-fpm7.2[19010]: [08-Sep-2020 20:…on
sept. 08 20:48:39 xxxx56.ovh php-fpm7.2[19010]: [08-Sep-2020 20:…ed
sept. 08 20:48:39 xxxx56.ovh systemd[1]: php7.2-fpm.service: Mai…/a
sept. 08 20:48:39 xxxx56.ovh systemd[1]: Failed to start The PHP…r.
sept. 08 20:48:39 xxxx56.ovh systemd[1]: php7.2-fpm.service: Uni…e.
sept. 08 20:48:39 xxxx56.ovh systemd[1]: php7.2-fpm.service: Fai…’.
Hint: Some lines were ellipsized, use -l to show in full.
dpkg: erreur de traitement du paquet php7.2-fpm (–configure) :
le sous-processus script post-installation installé a retourné une erreur de so rtie d’état 1
Paramétrage de postfix (3.1.15-0+deb9u1) …
postconf: warning: /etc/postfix/main.cf, line 169: overriding earlier entry: rel ayhost=
postconf: fatal: /etc/postfix/main.cf, line 170: missing ‘=’ after attribute nam e: “service postfix restart”
Use of uninitialized value $destinations in scalar chomp at /var/lib/dpkg/info/p ostfix.config line 221.
Use of uninitialized value $[1] in join or string at /usr/share/perl5/Debconf/C lient/ConfModule.pm line 121.
postconf: warning: /etc/postfix/main.cf, line 169: overriding earlier entry: rel ayhost=
postconf: fatal: /etc/postfix/main.cf, line 170: missing ‘=’ after attribute nam e: “service postfix restart”
Use of uninitialized value $mynetworks in scalar chomp at /var/lib/dpkg/info/pos tfix.config line 285.
Use of uninitialized value $
[1] in join or string at /usr/share/perl5/Debconf/C lient/ConfModule.pm line 121.
postconf: warning: /etc/postfix/main.cf, line 169: overriding earlier entry: rel ayhost=
postconf: fatal: /etc/postfix/main.cf, line 170: missing ‘=’ after attribute nam e: “service postfix restart”
Use of uninitialized value $protos in scalar chomp at /var/lib/dpkg/info/postfix .config line 387.
Use of uninitialized value $_[1] in join or string at /usr/share/perl5/Debconf/C lient/ConfModule.pm line 121.

Postfix (main.cf) configuration was not changed. If you need to make changes,
edit /etc/postfix/main.cf (and others) as needed. To view Postfix
configuration values, see postconf(1).

After modifying main.cf, be sure to run ‘service postfix reload’.

Running newaliases
postconf: warning: /etc/postfix/main.cf, line 169: overriding earlier entry: rel ayhost=
postconf: fatal: /etc/postfix/main.cf, line 170: missing ‘=’ after attribute nam e: “service postfix restart”
newaliases: warning: /etc/postfix/main.cf, line 169: overriding earlier entry: r elayhost=
newaliases: fatal: /etc/postfix/main.cf, line 170: missing ‘=’ after attribute n ame: “service postfix restart”
dpkg: erreur de traitement du paquet postfix (–configure) :
le sous-processus script post-installation installé a retourné une erreur de so rtie d’état 75
Des erreurs ont été rencontrées pendant l’exécution :
php7.2-fpm
postfix

L’interprétation de ces indications dépassent mes compétences, merci d’avance pour votre aide à la résolution de cette difficultées.

Ça semble indiquer un problème dans la conf postfix … Est-ce que tu l’aurais modifié manuellement …?

Sinon tu peux tenter un sudo yunohost tools regen-conf postfix --force

Tu sembles avoir un deuxième problème qui concerne php7.2-fpm … pour corriger ça on va commencer par regarder la sortie de :

journalctl -u php7.2-fpm -n 100 --no-hostname --no-pager

This topic was automatically closed 15 days after the last reply. New replies are no longer allowed.