Contenu | Rechercher | Menus

Annonce

Si vous avez des soucis pour rester connecté, déconnectez-vous puis reconnectez-vous depuis ce lien en cochant la case
Me connecter automatiquement lors de mes prochaines visites.

À propos de l'équipe du forum.

#1 Le 20/03/2021, à 13:47

totolehero83

Installation Mysql foireuse [resolu]

Bonjour,

J'ai installé Mysql-server et Mysql-client récemment sur WSL(l'Ubuntu de windows 10), mais 'something went wrong!' et je ne parviens pas à faire tourner le moulin, ni à désinstaller l'ensemble pour repartir à zero.

Voici les 3 dernieres tentatives de résolution du problème et leurs retours :

1/ Tentative de réinstallation après nettoyage

$ sudo apt-get install mysql-server
[sudo] password for peanuts:
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following packages were automatically installed and are no longer required:
  libsnappy1v5 mariadb-common
Use 'sudo apt autoremove' to remove them.
The following additional packages will be installed:
  mysql-server-8.0
Suggested packages:
  mailx tinyca
The following NEW packages will be installed:
  mysql-server mysql-server-8.0
0 upgraded, 2 newly installed, 0 to remove and 0 not upgraded.
Need to get 0 B/1284 kB of archives.
After this operation, 1592 kB of additional disk space will be used.
Do you want to continue? [Y/n] y
Preconfiguring packages ...
Selecting previously unselected package mysql-server-8.0.
(Reading database ... 43035 files and directories currently installed.)
Preparing to unpack .../mysql-server-8.0_8.0.23-0ubuntu0.20.04.1_amd64.deb ...
invoke-rc.d: could not determine current runlevel
 * Stopping MySQL database server mysqld                                                                                mysqld: Can't read dir of '/etc/mysql/conf.d/' (OS errno 2 - No such file or directory)
mysqld: [ERROR] Fatal error in defaults handling. Program aborted!
mysqld: Can't read dir of '/etc/mysql/conf.d/' (OS errno 2 - No such file or directory)
mysqld: [ERROR] Fatal error in defaults handling. Program aborted!
                                                                                                                 [ OK ]
Unpacking mysql-server-8.0 (8.0.23-0ubuntu0.20.04.1) ...
Selecting previously unselected package mysql-server.
Preparing to unpack .../mysql-server_8.0.23-0ubuntu0.20.04.1_all.deb ...
Unpacking mysql-server (8.0.23-0ubuntu0.20.04.1) ...
Setting up mysql-server-8.0 (8.0.23-0ubuntu0.20.04.1) ...
invoke-rc.d: could not determine current runlevel
 * Stopping MySQL database server mysqld                                                                                mysqld: Can't read dir of '/etc/mysql/conf.d/' (OS errno 2 - No such file or directory)
mysqld: [ERROR] Fatal error in defaults handling. Program aborted!
mysqld: Can't read dir of '/etc/mysql/conf.d/' (OS errno 2 - No such file or directory)
mysqld: [ERROR] Fatal error in defaults handling. Program aborted!
                                                                                                                 [ OK ]
update-alternatives: error: alternative path /etc/mysql/mysql.cnf doesn't exist
dpkg: error processing package mysql-server-8.0 (--configure):
 installed mysql-server-8.0 package post-installation script subprocess returned error exit status 2
dpkg: dependency problems prevent configuration of mysql-server:
 mysql-server depends on mysql-server-8.0; however:
  Package mysql-server-8.0 is not configured yet.

dpkg: error processing package mysql-server (--configure):
 dependency problems - leaving unconfigured
Processing triggers for systemd (245.4-4ubuntu3.5) ...
Errors were encountered while processing:
 mysql-server-8.0
 mysql-server
No apport report written because the error message indicates its a followup error from a previous failure.
                                                                                                          E: Sub-process /usr/bin/dpkg returned an error code (1)

2/ Re-tentative de nettoyage

$ sudo dpkg --purge --force-all mysql-*
[sudo] password for peanuts:
dpkg: warning: ignoring request to remove mysql-files which isn't installed
dpkg: warning: ignoring request to remove mysql-keyring which isn't installed
dpkg: warning: ignoring request to remove mysql-upgrade which isn't installed
$ sudo apt-get autoremove --purge
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following packages will be REMOVED:
  libsnappy1v5* mariadb-common*
0 upgraded, 0 newly installed, 2 to remove and 0 not upgraded.
2 not fully installed or removed.
After this operation, 134 kB disk space will be freed.
Do you want to continue? [Y/n] y
(Reading database ... 43061 files and directories currently installed.)
Removing libsnappy1v5:amd64 (1.1.8-1build1) ...
Removing mariadb-common (1:10.3.25-0ubuntu0.20.04.1) ...
Setting up mysql-server-8.0 (8.0.23-0ubuntu0.20.04.1) ...
invoke-rc.d: could not determine current runlevel
 * Stopping MySQL database server mysqld                                                                                                                                                                                                                                         [ OK ]
update-alternatives: error: alternative path /etc/mysql/mysql.cnf doesn't exist
dpkg: error processing package mysql-server-8.0 (--configure):
 installed mysql-server-8.0 package post-installation script subprocess returned error exit status 2
dpkg: dependency problems prevent configuration of mysql-server:
 mysql-server depends on mysql-server-8.0; however:
  Package mysql-server-8.0 is not configured yet.

dpkg: error processing package mysql-server (--configure):
 dependency problems - leaving unconfigured
Processing triggers for libc-bin (2.31-0ubuntu9.2) ...
No apport report written because the error message indicates its a followup error from a previous failure.
                                                                                                          Errors were encountered while processing:
 mysql-server-8.0
 mysql-server
E: Sub-process /usr/bin/dpkg returned an error code (1)

Plus je tente des trucs et plus je m'enfonce, je préfère demander à ceux qui savent...

Dernière modification par totolehero83 (Le 22/03/2021, à 19:28)


-------------
Totolehero83 // jardinier amateur de boutures en tous genres...
-------------

Hors ligne

#2 Le 22/03/2021, à 19:28

totolehero83

Re : Installation Mysql foireuse [resolu]

A force de ré-installation et de configuration, je m'en suis sorti, sans trop pouvoir dire à quel moment ça a vraiment marché, sujet clos...


-------------
Totolehero83 // jardinier amateur de boutures en tous genres...
-------------

Hors ligne