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 08/01/2017, à 14:11

cardabelle

Installation MySQL impossible [Résolu]

Nouvelle tentative, nouvel échec.
Voici le message :

sudo apt-get install mysql-server
[sudo] password for frf: 
Reading package lists... Done
Building dependency tree       
Reading state information... Done
The following additional packages will be installed:
  mysql-client-5.7 mysql-client-core-5.7 mysql-common mysql-server-5.7
  mysql-server-core-5.7
Suggested packages:
  tinyca
The following NEW packages will be installed:
  mysql-client-5.7 mysql-client-core-5.7 mysql-common mysql-server
  mysql-server-5.7 mysql-server-core-5.7
0 upgraded, 6 newly installed, 0 to remove and 0 not upgraded.
Need to get 19,0 MB of archives.
After this operation, 157 MB of additional disk space will be used.
Do you want to continue? [O/n] 
Get:1 http://fr.archive.ubuntu.com/ubuntu yakkety-updates/main i386 mysql-common all 5.7.16-0ubuntu0.16.10.1 [17,5 kB]
Get:2 http://fr.archive.ubuntu.com/ubuntu yakkety-updates/main i386 mysql-client-core-5.7 i386 5.7.16-0ubuntu0.16.10.1 [6 740 kB]
Get:3 http://fr.archive.ubuntu.com/ubuntu yakkety-updates/main i386 mysql-client-5.7 i386 5.7.16-0ubuntu0.16.10.1 [1 746 kB]
Get:4 http://fr.archive.ubuntu.com/ubuntu yakkety-updates/main i386 mysql-server-core-5.7 i386 5.7.16-0ubuntu0.16.10.1 [7 868 kB]
Get:5 http://fr.archive.ubuntu.com/ubuntu yakkety-updates/main i386 mysql-server-5.7 i386 5.7.16-0ubuntu0.16.10.1 [2 660 kB]
Get:6 http://fr.archive.ubuntu.com/ubuntu yakkety-updates/main i386 mysql-server all 5.7.16-0ubuntu0.16.10.1 [10,2 kB]
Fetched 19,0 MB in 3s (5 294 kB/s)      
Preconfiguring packages ...
Selecting previously unselected package mysql-common.
(Reading database ... 327450 files and directories currently installed.)
Preparing to unpack .../0-mysql-common_5.7.16-0ubuntu0.16.10.1_all.deb ...
Unpacking mysql-common (5.7.16-0ubuntu0.16.10.1) ...
Selecting previously unselected package mysql-client-core-5.7.
Preparing to unpack .../1-mysql-client-core-5.7_5.7.16-0ubuntu0.16.10.1_i386.deb ...
Unpacking mysql-client-core-5.7 (5.7.16-0ubuntu0.16.10.1) ...
Selecting previously unselected package mysql-client-5.7.
Preparing to unpack .../2-mysql-client-5.7_5.7.16-0ubuntu0.16.10.1_i386.deb ...
Unpacking mysql-client-5.7 (5.7.16-0ubuntu0.16.10.1) ...
Selecting previously unselected package mysql-server-core-5.7.
Preparing to unpack .../3-mysql-server-core-5.7_5.7.16-0ubuntu0.16.10.1_i386.deb ...
Unpacking mysql-server-core-5.7 (5.7.16-0ubuntu0.16.10.1) ...
Setting up mysql-common (5.7.16-0ubuntu0.16.10.1) ...
update-alternatives: using /etc/mysql/my.cnf.fallback to provide /etc/mysql/my.cnf (my.cnf) in auto mode
Selecting previously unselected package mysql-server-5.7.
(Reading database ... 327602 files and directories currently installed.)
Preparing to unpack .../0-mysql-server-5.7_5.7.16-0ubuntu0.16.10.1_i386.deb ...
Unpacking mysql-server-5.7 (5.7.16-0ubuntu0.16.10.1) ...
Selecting previously unselected package mysql-server.
Preparing to unpack .../1-mysql-server_5.7.16-0ubuntu0.16.10.1_all.deb ...
Unpacking mysql-server (5.7.16-0ubuntu0.16.10.1) ...
Processing triggers for ureadahead (0.100.0-19) ...
Setting up mysql-server-core-5.7 (5.7.16-0ubuntu0.16.10.1) ...
Processing triggers for systemd (231-9ubuntu2) ...
Processing triggers for man-db (2.7.5-1) ...
Setting up mysql-client-core-5.7 (5.7.16-0ubuntu0.16.10.1) ...
Setting up mysql-client-5.7 (5.7.16-0ubuntu0.16.10.1) ...
Setting up mysql-server-5.7 (5.7.16-0ubuntu0.16.10.1) ...
update-alternatives: using /etc/mysql/mysql.cnf to provide /etc/mysql/my.cnf (my.cnf) in auto mode
Renaming removed key_buffer and myisam-recover options (if present)
mysql_upgrade: Got error: 1524: Plugin 'unix_socket' is not loaded while connecting to the MySQL server
Upgrade process encountered error and will not continue.
mysql_upgrade failed with exit status 11
dpkg: error processing package mysql-server-5.7 (--configure):
 subprocess installed post-installation script returned error exit status 1
dpkg: dependency problems prevent configuration of mysql-server:
 mysql-server depends on mysql-server-5.7; however:
  Package mysql-server-5.7 is not configured yet.

dpkg: error processing package mysql-server (--configure):
 dependency problems - leaving unconfigured
No apport report written because the error message indicates its a followup error from a previous failure.
                          Errors were encountered while processing:
 mysql-server-5.7
 mysql-server
E: Sub-process /usr/bin/dpkg returned an error code (1)
frf@frf:~$ sudo apt-get update 
Hit:1 http://fr.archive.ubuntu.com/ubuntu yakkety InRelease
Hit:2 http://fr.archive.ubuntu.com/ubuntu yakkety-updates InRelease            
Hit:3 http://ppa.launchpad.net/webupd8team/java/ubuntu yakkety InRelease       
Hit:4 http://fr.archive.ubuntu.com/ubuntu yakkety-security InRelease
Reading package lists... Done  

Comment corriger le bug ?
Merci.

Dernière modification par cardabelle (Le 11/01/2017, à 10:35)

Hors ligne

#2 Le 09/01/2017, à 12:50

helias

Re : Installation MySQL impossible [Résolu]

Bonjour Cardabelle,

Tout est marqué, il suffit de lire.
Il t'explique qu'il ne peux pas installer Mysql-server car il y a une dépendance ( mysql-server-5.7 ) qui n'est pas encore configuré.

dpkg: error processing package mysql-server (--configure):
 dependency problems - leaving unconfigured
No apport report written because the error message indicates its a followup error from a previous failure.
                          Errors were encountered while processing:
 mysql-server-5.7
 mysql-server

Je te laisse te renseigner sur cette piste wink
Bonne continuation
Hélias

Hors ligne

#3 Le 09/01/2017, à 13:12

cardabelle

Re : Installation MySQL impossible [Résolu]

Ah que merci , ça j'ai très bien compris, c'est justement ce que je ne sais pas faire. roll

Hors ligne

#4 Le 09/01/2017, à 13:21

helias

Re : Installation MySQL impossible [Résolu]

Décidément la culture du RTFM ce perd ici lol

essaye ceci :

sudo apt-get install mysql-server-5.7

s'il te demande de le configurer, fais le. Sinon :

sudo dpkg-reconfigure mysql-server-5.7

une fois finalisé :

sudo apt-get install mysql-server

si tu as une erreur n'oublies pas de nous en faire part

Hors ligne

#5 Le 09/01/2017, à 13:27

cardabelle

Re : Installation MySQL impossible [Résolu]

1 ->

Reading package lists... Done
Building dependency tree       
Reading state information... Done
mysql-server-5.7 is already the newest version (5.7.16-0ubuntu0.16.10.1).
mysql-server-5.7 set to manually installed.
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
2 not fully installed or removed.
After this operation, 0 B of additional disk space will be used.
Do you want to continue? [O/n] 
Setting up mysql-server-5.7 (5.7.16-0ubuntu0.16.10.1) ...
Renaming removed key_buffer and myisam-recover options (if present)
mysql_upgrade: Got error: 1524: Plugin 'unix_socket' is not loaded while connecting to the MySQL server
Upgrade process encountered error and will not continue.
mysql_upgrade failed with exit status 11
dpkg: error processing package mysql-server-5.7 (--configure):
 subprocess installed post-installation script returned error exit status 1
dpkg: dependency problems prevent configuration of mysql-server:
 mysql-server depends on mysql-server-5.7; however:
  Package mysql-server-5.7 is not configured yet.

dpkg: error processing package mysql-server (--configure):
 dependency problems - leaving unconfigured
No apport report written because the error message indicates its a followup error from a previous failure.
                          Errors were encountered while processing:
 mysql-server-5.7
 mysql-server

Donc, je vois 

Plugin 'unix_socket' is not loaded 

est-ce que cela veut dire qu'il faut que j'installe (lequel ?) , :
libjnr-unixsocket-java
python-requests-unixsocket
python3-requests-unixsocket

Dernière modification par cardabelle (Le 09/01/2017, à 13:33)

Hors ligne

#6 Le 09/01/2017, à 13:32

helias

Re : Installation MySQL impossible [Résolu]

ah mais oui il est déjà installé !
ok alors c'est parti pour faire le ménage

sudo apt-get remove --purge *mysql\*
sudo apt-get autoremove
sudo apt-get autoclean
sudo apt-get install mysql-server

Hors ligne

#7 Le 09/01/2017, à 13:35

cardabelle

Re : Installation MySQL impossible [Résolu]

C'est fait...Et...

Failed to start mysql.service: Unit mysql.service not found.

Dernière modification par cardabelle (Le 09/01/2017, à 13:37)

Hors ligne

#8 Le 09/01/2017, à 13:37

helias

Re : Installation MySQL impossible [Résolu]

pas de message d'erreur ?

Hors ligne

#9 Le 09/01/2017, à 13:38

cardabelle

Re : Installation MySQL impossible [Résolu]

Failed to start mysql.service: Unit mysql.service not found.

Hors ligne

#10 Le 09/01/2017, à 13:42

helias

Re : Installation MySQL impossible [Résolu]

sudo service mysql restart

Hors ligne

#11 Le 09/01/2017, à 14:02

cardabelle

Re : Installation MySQL impossible [Résolu]

Failed to restart mysql.service: Unit mysql.service not found.

Hors ligne

#12 Le 09/01/2017, à 14:03

helias

Re : Installation MySQL impossible [Résolu]

essaye de redémarrer ton pc

Hors ligne

#13 Le 09/01/2017, à 14:11

cardabelle

Re : Installation MySQL impossible [Résolu]

Failed to restart mysql.service: Unit mysql.service not found.

roll:rolleyes::rolleyes:

Hors ligne

#14 Le 09/01/2017, à 14:30

helias

Re : Installation MySQL impossible [Résolu]

très étrange... Que souhaites tu faire avec Mysql ? de la programmation web ?
en attendant tu peux toujours essayé de réécrire par dessus :

sudo apt-get install mysql-server

Hors ligne

#15 Le 09/01/2017, à 14:50

cardabelle

Re : Installation MySQL impossible [Résolu]

J'ai une très grosse base de données en cours de création.
Apparemment ça démarre bien, j'ai créé le mot de passe...:lol:

Hors ligne

#16 Le 09/01/2017, à 15:01

helias

Re : Installation MySQL impossible [Résolu]

Oui Mysql n'est jamais vide
Tiens moi au courant si ça merdouille encore.

Normalement une fois lancé, tu n'auras pas de problème.
Quand tu auras testé un peu tout ça n'hésite pas a modifier le titre en résolu si tu estime que c'est le cas.

Bonne continuation a toi,
Hélias

Dernière modification par helias (Le 09/01/2017, à 15:02)

Hors ligne

#17 Le 09/01/2017, à 15:12

cardabelle

Re : Installation MySQL impossible [Résolu]

Merci beaucoup.

Hors ligne

#18 Le 09/01/2017, à 15:56

helias

Re : Installation MySQL impossible [Résolu]

Avec plaisir, n'hésites pas si tu as d'autres questions.

Hors ligne