Dear Christian,
Thanks for your process.
I did it carefully, but I'm still stuck with the same error.
I then delete /usr/share/mysql and /usr/share/mysql-common and try an 
install/reinstall of mysql-server (without any version ... as it stuck):

"sudo apt install --reinstall mysql-server-8.0
Lecture des listes de paquets... Fait
Construction de l'arbre des dépendances       
Lecture des informations d'état... Fait
0 mis à jour, 0 nouvellement installés, 1 réinstallés, 0 à enlever et 0 non mis 
à jour.
1 partiellement installés ou enlevés.
Il est nécessaire de prendre 0 o/1 228 ko dans les archives.
Après cette opération, 0 o d'espace disque supplémentaires seront utilisés.
Préconfiguration des paquets...
(Lecture de la base de données... 296137 fichiers et répertoires déjà installés.
)
Préparation du dépaquetage de .../mysql-server-8.0_8.0.20-0ubuntu0.20.04.1_amd64
.deb ...
grep: /etc/mysql/: Aucun fichier ou dossier de ce type
Dépaquetage de mysql-server-8.0 (8.0.20-0ubuntu0.20.04.1) sur (8.0.20-0ubuntu0.2
0.04.1) ...
Paramétrage de mysql-server-8.0 (8.0.20-0ubuntu0.20.04.1) ...
Failed to stop mysql.service: Unit mysql.service not loaded.
invoke-rc.d: initscript mysql, action "stop" failed.
update-alternatives: erreur: le chemin alternatif /etc/mysql/mysql.cnf n'existe 
pas
dpkg: erreur de traitement du paquet mysql-server-8.0 (--configure) :
 installed mysql-server-8.0 package post-installation script subprocess returned
 error exit status 2
Traitement des actions différées (« triggers ») pour systemd (245.4-4ubuntu3.1) 
...
Des erreurs ont été rencontrées pendant l'exécution :
 mysql-server-8.0
E: Sub-process /usr/bin/dpkg returned an error code (1)
"


Following the reinstall, the error.log of mysql has not been created. I've 
check the error log of dpkg that return me only the following :

/var/log/dpkg.log :
"
2020-06-05 10:42:04 startup archives unpack
2020-06-05 10:42:05 install mysql-server:all <aucune> 8.0.20-0ubuntu0.20.04.1
2020-06-05 10:42:05 status half-installed mysql-server:all 
8.0.20-0ubuntu0.20.04.1
2020-06-05 10:42:05 status unpacked mysql-server:all 8.0.20-0ubuntu0.20.04.1
"
Any ideas ?
Christian.

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1881667

Title:
  package mysql-server-8.0 8.0.20-0ubuntu0.20.04.1 failed to
  install/upgrade: package is in a very bad inconsistent state; you
  should  reinstall it before attempting configuration

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/mysql-8.0/+bug/1881667/+subscriptions

-- 
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to