• Serveurs
  • Debian Wheezy + install Mysql Server [error]

Bonjour à tous ! J’espère que vous allez bien en cette veille de week end

Je pense que ce post risque d'avoir de la visite (étant donné les nombreux posts sur le net à ce sujet) et donc je vais tenter d'être le plus clair possible.

Sujet : Installation impossible de Mysql server 5.5 / 5.6 sur une Debian Wheezy

Ma config : Machine de chez Online (Version classic). Esxi Vmware 5.5 (dernière mise à jour/fix installé)

Mon problème :

J'ai installé en VM (donc sous Esxi) un Wheezy dernière version
Distributor ID: Debian
Description:    Debian GNU/Linux 7.8 (wheezy)
Release:        7.8
Codename:       wheezy
Je modifie les sources list via le générator http://debgen.simplylinux.ch/
Pour ma version, j'ai donc cette liste :
deb http://ftp.fr.debian.org/debian stable main contrib non-free
deb http://ftp.debian.org/debian/ wheezy-updates main contrib non-free
deb http://security.debian.org/ wheezy/updates main contrib non-free
Via les repos de cette liste, la version dispo de Mysql server est en 5.5
J'ai tenté ma chance (vu mon problème) avec la version 5.6 mais je coince au même endroit.

Je précise que mon install est neuve/propre

J'attaque donc l'install après un aptitude update && aptitude upgrade de mon Sql Server :
apt-get install mysql-client mysql-server
Dès la fin de l'install, au moment de son reboot/restart, j'ai cette erreur :
Paramétrage de mysql-server-5.5 (5.5.41-0+wheezy1) ...
[ ok ] Stopping MySQL database server: mysqld.
150306 17:38:23 [Warning] Using unique option prefix key_buffer instead of key_buffer_size is deprecated and will be removed in a future release. Please use the full name instead.
150306 17:38:23 [Warning] Using unique option prefix myisam-recover instead of myisam-recover-options is deprecated and will be removed in a future release. Please use the full name instead.
150306 17:38:23 [Note] Plugin 'FEDERATED' is disabled.
150306 17:38:23 InnoDB: The InnoDB memory heap is disabled
150306 17:38:23 InnoDB: Mutexes and rw_locks use GCC atomic builtins
150306 17:38:23 InnoDB: Compressed tables use zlib 1.2.7
150306 17:38:23 InnoDB: Using Linux native AIO
150306 17:38:23 InnoDB: Initializing buffer pool, size = 128.0M
150306 17:38:23 InnoDB: Completed initialization of buffer pool
150306 17:38:23 InnoDB: highest supported file format is Barracuda.
150306 17:38:23  InnoDB: Waiting for the background threads to start
150306 17:38:24 InnoDB: 5.5.41 started; log sequence number 1595675
150306 17:38:24  InnoDB: Starting shutdown...
150306 17:38:25  InnoDB: Shutdown completed; log sequence number 1595675
[FAIL] Starting MySQL database server: mysqld . . . . . . . . . . . . . . failed!
invoke-rc.d: initscript mysql, action "start" failed.
dpkg: erreur de traitement de mysql-server-5.5 (--configure) :
 le sous-processus script post-installation installé a retourné une erreur de sortie d'état 1
Si je tente ma chance avec la version 5.6 (en modifiant les sources list), j'ai cette erreur :
Paramétrage de mysql-server-5.6 (5.6.23-1~dotdeb.1)
[Warning] TIMESTAMP with implicit DEFAULT value is deprecated. Please use --explicit_defaults_for_timestamp server option (see documentation for more details).
[....] Starting MySQL database server: mysqldPas de répertoire, connexion avec HOME=/
J'ai bon retourner le net avec les infos que je dispose et je ne trouve rien qui puisse m'aider sur cette erreur.

Mon but est de reinstaller une version propre d'ISP Config mais si je passe par une install de wheezy DVD et que j'inclus SQL à son install, je me retrouve avec postgresql....

Avez-vous rencontré le même problème et si oui, l'avez vous résolu?
D'avance merci aux lecteurs !
Cordialement,
Kéro
Bonsoir,

il y a peu, Ayenon a eu un problème similaire (VM + MySQL cf cette discussion). Oui il l'a résolu, il provenait de la configuration de l'interface réseau.
De rien Kéro.
Salut Wagner !

Effectivement ca y ressemble très fortement !
Par contre, il stipule que c'est réglé :
Bon après une après-midi entière à la fin de mes partiels yikes
J'ai trouvé le problème, c'est la configuration de l'interface réseau de la VM qui bloquer le démarrage de MySql... Maintenant il me reste plus qu'à tous réinstaller big_smile
Par contre il dit pas ou est son erreur dans sa config de la carte....

De mon coté, la VM est sous VMXNET3 avec la config suivante :
/etc/network/interfaces
auto eth0
iface eth0 inet static
address xxx.xxx.xxx.xxx #mon IPFO
netmask 255.255.255.255
broadcast xxx.xxx.xxx.xxx #mon IPFO
post-up route add xxx.xxx.xxx.1 dev eth0 #Ip serveur dedie 
post-up route add default gw xxx.xxx.xxx.1 #Ip serveur dedie
post-down route del xxx.xxx.xxx.1 dev eth0 #Ip serveur dedie
post-down route del default gw xxx.xxx.xxx.1 #Ip serveur dedie
La solution (dans le cas présent)

Bon j'avais modifiés deux choses dans ma carte reseau, la première est son "adaptateur' qui était en VMXNET3 . Je l'ai passé en E1000 histoire de tester.
En même temps, j'ai modifié mon
/etc/network/interfaces
Comme ceci :
auto lo
iface lo inet loopback

auto eth0
iface eth0 inet static
address xxx.xxx.xxx.xxx #mon IPFO
netmask 255.255.255.255
broadcast xxx.xxx.xxx.xxx #mon IPFO
post-up route add xxx.xxx.xxx.1 dev eth0 #Ip serveur dedie 
post-up route add default gw xxx.xxx.xxx.1 #Ip serveur dedie
post-down route del xxx.xxx.xxx.1 dev eth0 #Ip serveur dedie
post-down route del default gw xxx.xxx.xxx.1 #Ip serveur dedie
J'ai reinstallé SQL-Server et miracle, tout passe nikel
J'ai ensuite re-modifié mon interface car d'après les infos suivantes, le fait d'utiliser VMXNET3 en place de E1000 apporte une très sérieuse amélioration !
Voir le sujet ici (surtout la page 2!) : http://rickardnobel.se/vmxnet3-vs-e1000e-and-e1000-part-1/

Donc la solution semble être uniquement la config de la carte en elle même, sous entendu de ne pas oublier d'ajouter
auto lo
iface lo inet loopback
Encore un grand merci ! Une journée pour ça.....jamais je n'y aurais pensé.


@Wagner : Excellent ton story board ! C'est exactement ca !!! 😀😀😀
C'est vrai, ça reste un peu évasif... Navré Kéro, je ne pourrais t'en dire plus. Avec un peu de chance, Ayenon passera et t'aiguillera mieux. Du moins, si jamais tu n'avais pas trouvé. D'accord à plus tard.

HS : Toujours dans le domaine : ca y ressemble et même très fortement ! On dirait une prédiction (contraire) ce CommitStrip (date du 3)
Salut Kéro

Pour ma part, le problème était lié à la config réseaux... Pourquoi je ne sais pas mais bon, maintenant ça marche !

Pour OVH (soyoustart)
allow-hotplug eth0 
iface eth0 inet static 
	address TON.IP.FAIL.OVER
	netmask 255.255.255.0 
	gateway IP.FAIL.OVER.254 
	dns-nameservers 208.67.222.222 208.67.220.220
Par contre, j'ai un problème avec la mise à jour de mysql-apt-config... (la mise à jour bloque a setting up) Et sur 2 serveurs, 1 virtualisé et l'autre non... Obliger de killer le processus pour débloquer la bête ^^
De rien et merci de ton retour (complet) Kéro (et oui je trouve aussi excellent 😀).

D'accord Ayenon, c'est le plus important. En revanche, ce mysql-apt-config m'est inconnu... J'aurais (ou quelqu'un d'autre aura) peut-être une idée avec plus de détails ? Du moins, si tu le souhaite.
En gros, lors d'un beau jour d'hiver... J'ai eu une envie de faire une petite mise à jour de mon serveur :
aptitude update && aptitude safe-upgrade
Puis une mise à jour des dépendances d'owncloud et de mysql plus tard... un truc me chiffonne... la console bloque sur :
Setting up mysql-apt-config (0.3.3-1debian7) ...
Rien à faire ! Seule solution trouvée : killer le processus à partir d'une autre session ssh.

Et dans les logs d'aptitude, pas beaucoup d'explication...
[UNCONFIGURED] mysql-apt-config:amd64
J'ai le problème sur mon Debian virtualisé sur un Esxi et une Debian sur un serveur dédié Kimsufi...

Je ne comprends pas trop d'où vient le problème... Et une aide est la bienvenue
Je comprends que ça te chiffonne, je vais essayé 😛 A priori, ce serait dkpg qui fut interrompu. Pour le savoir :
dpkg --status mysql-server
# Tu devras peut-être adapter le nom du paquet
J'imagine, tu obtiendras une erreur. Un autre biais, ce serait que tu récupère le(s) paquet(s) dans le cadre de cette commande :
dpkg -i NomPaquet.deb
Autrement, lorsque tu (re)lance la mise à jour, tu as (eu) des indications à la fin. Rien de particulier ? Par exemple, un chiffre autre que 0 ?
Tu as pensé à regarder du côté de deborphan ?
Je présume, tu as du essayé un reboot, non ? Comme certaines (mises à jour) le requiert dès fois. De plus, tu t'es servi de safe-upgrade à chaque fois ?
Alors :
root@AyenonBox:~# dpkg --status mysql-apt-config
Package: mysql-apt-config
Status: install ok half-configured
Priority: optional
Section: database
Installed-Size: 35
Maintainer: Oracle MySQL Release Engineering <mysql-build@oss.oracle.com>
Architecture: all
Version: 0.3.3-1debian7
Config-Version: 0.3.2-1debian7
Pre-Depends: debconf (>= 0.2.17), dpkg (>= 1.15)
Description: Auto configuration for MySQL APT Repo.
 MySQL is a fast, stable and true multi-user, multi-threaded SQL database
 server. SQL (Structured Query Language) is the most popular database query
 language in the world. The main goals of MySQL are speed, robustness and
 ease of use.
Homepage: http://dev.mysql.com/
root@AyenonBox:~# aptitude update
E: Could not get lock /var/lib/dpkg/lock - open (11: Resource temporarily unavailable)
E: Unable to lock the administration directory (/var/lib/dpkg/), is another process using it?
W: Could not lock the cache file; this usually means that dpkg or another apt tool is already installing packages.  Opening in read-only mode; any changes you make to the states of packages will NOT be preserved!
Hit http://packages.dotdeb.org wheezy-php56 Release.gpg
Hit http://ftp.fr.debian.org stable Release.gpg
Hit http://packages.dotdeb.org wheezy-php56 Release
Hit http://ftp.debian.org wheezy-updates Release.gpg
Hit http://ftp.fr.debian.org stable Release
Hit http://repo.ajenti.org main Release.gpg
Hit http://download.opensuse.org  Release.gpg
Hit http://ftp.debian.org wheezy-updates Release
Hit http://packages.dotdeb.org wheezy-php56/all Sources
Hit http://repo.ajenti.org main Release
Hit http://ftp2.fr.debian.org wheezy Release.gpg
Hit http://download.opensuse.org  Release
Hit http://packages.dotdeb.org wheezy-php56/all amd64 Packages
Hit http://ftp2.fr.debian.org wheezy Release
Hit http://ftp.fr.debian.org stable/main Sources
Hit http://ftp.debian.org wheezy-updates/main Sources
Hit http://ftp.fr.debian.org stable/contrib Sources
Hit http://repo.ajenti.org main/main amd64 Packages
Hit http://ftp2.fr.debian.org wheezy/main Sources
Hit http://download.opensuse.org  Packages
Hit http://ftp.debian.org wheezy-updates/contrib Sources
Hit http://ftp.fr.debian.org stable/non-free Sources
Hit http://ftp2.fr.debian.org wheezy/non-free Sources
Hit http://ftp2.fr.debian.org wheezy/main amd64 Packages
Hit http://repo.ajenti.org main/debian amd64 Packages
Hit http://ftp.fr.debian.org stable/main amd64 Packages
Hit http://ftp.debian.org wheezy-updates/non-free Sources
Hit http://ftp2.fr.debian.org wheezy/non-free amd64 Packages
Hit http://ftp2.fr.debian.org wheezy/main Translation-en
Hit http://ftp.fr.debian.org stable/contrib amd64 Packages
Hit http://ftp.debian.org wheezy-updates/main amd64 Packages/DiffIndex
Hit http://ftp2.fr.debian.org wheezy/main Translation-fr
Hit http://ftp2.fr.debian.org wheezy/non-free Translation-en
Hit http://ftp.fr.debian.org stable/non-free amd64 Packages
Ign http://packages.dotdeb.org wheezy-php56/all Translation-en
Hit http://ftp.debian.org wheezy-updates/contrib amd64 Packages
Ign http://packages.dotdeb.org wheezy-php56/all Translation-fr
Hit http://ftp.fr.debian.org stable/contrib Translation-en
Hit http://ftp.debian.org wheezy-updates/non-free amd64 Packages
Hit http://ftp.fr.debian.org stable/main Translation-en
Hit http://ftp.debian.org wheezy-updates/contrib Translation-en
Hit http://ftp.fr.debian.org stable/main Translation-fr
Hit http://ftp.debian.org wheezy-updates/main Translation-en/DiffIndex
Hit http://ftp.fr.debian.org stable/non-free Translation-en
Hit http://ftp.debian.org wheezy-updates/non-free Translation-en
Hit http://security.debian.org wheezy/updates Release.gpg
Hit http://apt.newrelic.com newrelic Release.gpg
Ign http://download.opensuse.org  Translation-en
Ign http://download.opensuse.org  Translation-fr
Hit http://nginx.org wheezy Release.gpg
Hit http://apt.newrelic.com newrelic Release
Hit http://security.debian.org wheezy/updates Release
Hit http://apt.newrelic.com newrelic/non-free amd64 Packages
Hit http://security.debian.org wheezy/updates/main Sources
Hit http://nginx.org wheezy Release
Hit http://security.debian.org wheezy/updates/contrib Sources
Hit http://nginx.org wheezy/nginx Sources
Hit http://security.debian.org wheezy/updates/non-free Sources
Hit http://security.debian.org wheezy/updates/main amd64 Packages
Hit http://nginx.org wheezy/nginx amd64 Packages
Hit http://security.debian.org wheezy/updates/contrib amd64 Packages
Hit http://security.debian.org wheezy/updates/non-free amd64 Packages
Hit https://deb.nodesource.com wheezy Release.gpg
Hit http://security.debian.org wheezy/updates/contrib Translation-en
Hit http://security.debian.org wheezy/updates/main Translation-en
Hit https://deb.nodesource.com wheezy Release
Hit http://security.debian.org wheezy/updates/non-free Translation-en
Ign http://apt.newrelic.com newrelic/non-free Translation-en
Hit https://deb.nodesource.com wheezy/main Sources
Ign http://apt.newrelic.com newrelic/non-free Translation-fr
Hit https://deb.nodesource.com wheezy/main amd64 Packages
Ign http://repo.ajenti.org main/debian Translation-en
Ign http://nginx.org wheezy/nginx Translation-en
Ign http://nginx.org wheezy/nginx Translation-fr
Ign http://repo.ajenti.org main/debian Translation-fr
Ign http://repo.ajenti.org main/main Translation-en
Ign http://repo.ajenti.org main/main Translation-fr
Ign https://deb.nodesource.com wheezy/main Translation-en
Ign https://deb.nodesource.com wheezy/main Translation-fr
100% [Working]                                                                                                                         25.2 MB/s 0sE: Could not get lock /var/lib/dpkg/lock - open (11: Resource temporarily unavailable)
E: Unable to lock the administration directory (/var/lib/dpkg/), is another process using it?
E: Couldn't rebuild package cache
E: Could not get lock /var/lib/dpkg/lock - open (11: Resource temporarily unavailable)
E: Unable to lock the administration directory (/var/lib/dpkg/), is another process using it?

W: Could not lock the cache file; this usually means that dpkg or another apt tool is already installing packages.  Opening in read-only mode; any changes you make to the states of packages will NOT be preserved!
root@AyenonBox:~# deborphan
deborphan: The status file is in an improper state.
One or more packages are marked as half-installed, half-configured,
unpacked, triggers-awaited or triggers-pending. Exiting.
Rien que pour l'installation de deborphan, le package mysql-apt-config a encore bloquer...

PS: Reboot inefficace ^^
D'accord alors juste pour vérifier. Par killer le processus, tu fais référence auquel ?
Il serait possible qu'un (voir plusieurs) processus soit encore actif ? Je présume que tu as vérifié via une commande comme celle-ci :
ps -ef
J'utilise htop ^^

Pour le résultat de ta commande :
root@AyenonBox:~# ps -ef
UID        PID  PPID  C STIME TTY          TIME CMD
root         1     0  0 18:19 ?        00:00:00 init [2]
root         2     0  0 18:19 ?        00:00:00 [kthreadd]
root         3     2  0 18:19 ?        00:00:00 [ksoftirqd/0]
root         4     2  0 18:19 ?        00:00:00 [kworker/0:0]
root         5     2  0 18:19 ?        00:00:00 [kworker/u:0]
root         6     2  0 18:19 ?        00:00:00 [migration/0]
root         7     2  0 18:19 ?        00:00:00 [watchdog/0]
root         8     2  0 18:19 ?        00:00:00 [migration/1]
root        10     2  0 18:19 ?        00:00:00 [ksoftirqd/1]
root        11     2  0 18:19 ?        00:00:00 [kworker/0:1]
root        12     2  0 18:19 ?        00:00:00 [watchdog/1]
root        13     2  0 18:19 ?        00:00:00 [migration/2]
root        14     2  0 18:19 ?        00:00:00 [kworker/2:0]
root        15     2  0 18:19 ?        00:00:00 [ksoftirqd/2]
root        16     2  0 18:19 ?        00:00:00 [watchdog/2]
root        17     2  0 18:19 ?        00:00:00 [migration/3]
root        19     2  0 18:19 ?        00:00:00 [ksoftirqd/3]
root        20     2  0 18:19 ?        00:00:00 [watchdog/3]
root        21     2  0 18:19 ?        00:00:00 [cpuset]
root        22     2  0 18:19 ?        00:00:00 [khelper]
root        23     2  0 18:19 ?        00:00:00 [kdevtmpfs]
root        24     2  0 18:19 ?        00:00:00 [netns]
root        25     2  0 18:19 ?        00:00:00 [sync_supers]
root        26     2  0 18:19 ?        00:00:00 [bdi-default]
root        27     2  0 18:19 ?        00:00:00 [kintegrityd]
root        28     2  0 18:19 ?        00:00:00 [kblockd]
root        29     2  0 18:19 ?        00:00:00 [kworker/1:1]
root        31     2  0 18:19 ?        00:00:00 [kworker/3:1]
root        32     2  0 18:19 ?        00:00:00 [khungtaskd]
root        33     2  0 18:19 ?        00:00:00 [kswapd0]
root        34     2  0 18:19 ?        00:00:00 [ksmd]
root        35     2  0 18:19 ?        00:00:00 [khugepaged]
root        36     2  0 18:19 ?        00:00:00 [fsnotify_mark]
root        37     2  0 18:19 ?        00:00:00 [crypto]
root       107     2  0 18:19 ?        00:00:00 [ata_sff]
root       152     2  0 18:19 ?        00:00:00 [scsi_eh_0]
root       167     2  0 18:19 ?        00:00:00 [scsi_eh_1]
root       168     2  0 18:19 ?        00:00:00 [mpt_poll_0]
root       169     2  0 18:19 ?        00:00:00 [kworker/u:1]
root       170     2  0 18:19 ?        00:00:00 [mpt/0]
root       189     2  0 18:19 ?        00:00:00 [kworker/3:2]
root       191     2  0 18:19 ?        00:00:00 [kworker/1:2]
root       192     2  0 18:19 ?        00:00:00 [scsi_eh_2]
root       201     2  0 18:19 ?        00:00:00 [kworker/2:2]
root       214     2  0 18:19 ?        00:00:00 [jbd2/sda1-8]
root       215     2  0 18:19 ?        00:00:00 [ext4-dio-unwrit]
root       358     1  0 18:19 ?        00:00:00 udevd --daemon
root       503   358  0 18:19 ?        00:00:00 udevd --daemon
root       504   358  0 18:19 ?        00:00:00 udevd --daemon
root       537     2  0 18:19 ?        00:00:00 [kpsmoused]
root       541     2  0 18:19 ?        00:00:00 [ttm_swap]
root      1437     2  0 18:19 ?        00:00:00 [jbd2/sda6-8]
root      1438     2  0 18:19 ?        00:00:00 [ext4-dio-unwrit]
root      1822     1  0 18:19 ?        00:00:00 /sbin/rpcbind -w
statd     1856     1  0 18:19 ?        00:00:00 /sbin/rpc.statd
root      1865     2  0 18:19 ?        00:00:00 [rpciod]
root      1885     2  0 18:19 ?        00:00:00 [nfsiod]
root      1901     1  0 18:19 ?        00:00:00 /usr/sbin/rpc.idmapd
root      2342     1  0 18:19 ?        00:00:00 /usr/sbin/rsyslogd -c5
ayenon    2388     1  0 18:19 ?        00:00:00 SCREEN -dm -S rtorrent
ayenon    2408  2388  0 18:19 pts/1    00:00:00 /bin/bash
ayenon    2409  2388  0 18:19 pts/2    00:00:12 rtorrent
newrelic  2410     1  0 18:19 ?        00:00:00 /usr/sbin/nrsysmond -c /etc/newrelic/nrsysmond.cfg -p /var/run/newrelic/nrsysmond.pid
newrelic  2412  2410  0 18:19 ?        00:00:05 /usr/sbin/nrsysmond -c /etc/newrelic/nrsysmond.cfg -p /var/run/newrelic/nrsysmond.pid
root      2414     1  0 18:19 ?        00:00:00 munin-node
root      2489     1  0 18:19 ?        00:00:00 /usr/sbin/acpid
root      2507     2  0 18:19 ?        00:00:00 [flush-8:0]
root      2536     1  0 18:19 ?        00:00:04 /usr/bin/vmtoolsd
daemon    2543     1  0 18:19 ?        00:00:00 /usr/sbin/atd
root      2604     1  0 18:19 ?        00:00:00 /usr/sbin/cron
106       2660     1  0 18:19 ?        00:00:00 /usr/bin/dbus-daemon --system
root      2705     1  0 18:19 ?        00:00:00 php-fpm: master process (/etc/php5/fpm/php-fpm.conf)
www-data  2706  2705  0 18:19 ?        00:00:39 php-fpm: pool www
www-data  2707  2705  0 18:19 ?        00:00:38 php-fpm: pool www
mysql     2713     1  0 18:19 ?        00:00:00 /bin/sh /usr/bin/mysqld_safe
root      2968     1  0 18:19 ?        00:00:00 /usr/bin/python /usr/bin/ajenti-panel -d
root      2990     1  0 18:19 ?        00:00:00 /usr/lib/gamin/gam_server
mysql     3058  2713  0 18:19 ?        00:00:14 /usr/sbin/mysqld --basedir=/usr --datadir=/var/lib/mysql --plugin-dir=/usr/lib/mysql/plugin --log-error=/var/log/mysql/e
ntp       3184     1  0 18:19 ?        00:00:00 /usr/sbin/ntpd -p /var/run/ntpd.pid -g -u 105:107
root      3280     1  0 18:19 ?        00:00:00 /usr/local/bin/prelude-lml -d -q -P /var/run/prelude-lml.pid
root      3297     1  0 18:19 ?        00:00:00 startpar -f -- mysql
101       3680     1  0 18:19 ?        00:00:00 /usr/sbin/exim4 -bd -q30m
root      3763     1  0 18:19 ?        00:00:00 /usr/bin/python2.7 /usr/local/bin/prelude-correlator -d -P /var/run/prelude-correlator.pid
root      3789     1  0 18:19 ?        00:00:01 /usr/bin/python2.7 /usr/local/bin/prewikka-httpd
root      3805     1  0 18:19 ?        00:00:00 /usr/sbin/vsftpd
root      3839     1  0 18:19 ?        00:00:00 /usr/sbin/rngd -r /dev/urandom -W 80% -t 20
root      3847     1  0 18:19 ?        00:00:00 /usr/sbin/xinetd -pidfile /var/run/xinetd.pid -stayalive -inetd_compat -inetd_ipv6
root      3848     1  0 18:19 ?        00:00:00 /usr/sbin/sshd
root      3872     1  0 18:19 tty1     00:00:00 /sbin/getty 38400 tty1
root      3873     1  0 18:19 tty2     00:00:00 /sbin/getty 38400 tty2
root      3874     1  0 18:19 tty3     00:00:00 /sbin/getty 38400 tty3
root      3875     1  0 18:19 tty4     00:00:00 /sbin/getty 38400 tty4
root      3876     1  0 18:19 tty5     00:00:00 /sbin/getty 38400 tty5
root      3877     1  0 18:19 tty6     00:00:00 /sbin/getty 38400 tty6
root      4739     1  0 18:20 ?        00:00:00 nginx: master process /usr/sbin/nginx -c /etc/nginx/nginx.conf
www-data  4740  4739  0 18:20 ?        00:00:00 nginx: worker process
www-data  4741  4739  0 18:20 ?        00:00:00 nginx: worker process
www-data  4742  4739  0 18:20 ?        00:00:00 nginx: worker process
www-data  4743  4739  0 18:20 ?        00:00:00 nginx: worker process
www-data  4744  4739  0 18:20 ?        00:00:00 nginx: cache manager process
root      5047     1  0 18:20 ?        00:00:05 /usr/bin/python /usr/bin/fail2ban-server -b -s /var/run/fail2ban/fail2ban.sock
root      5112     1  0 18:20 ?        00:00:00 /usr/local/bin/prelude-manager -d -P /var/run/prelude-manager.pid
root      5221     1  0 18:20 ?        00:00:00 /var/ossec/bin/ossec-execd
ossec     5225     1  0 18:20 ?        00:00:01 /var/ossec/bin/ossec-analysisd
root      5230     1  0 18:20 ?        00:00:00 /var/ossec/bin/ossec-logcollector
root      5243     1  0 18:20 ?        00:00:15 /var/ossec/bin/ossec-syscheckd
ossec     5248     1  0 18:20 ?        00:00:00 /var/ossec/bin/ossec-monitord
www-data 13126  2705  0 18:59 ?        00:00:25 php-fpm: pool www
root     32019  3848  0 20:45 ?        00:00:00 sshd: root@pts/0
root     32023 32019  2 20:45 pts/0    00:00:00 -bash
root     32539 32023  0 20:45 pts/0    00:00:00 ps -ef
Je n'avais pas pensé à htop. Au fond, j'aurais pu le deviné et ça ne devrait rien changé.
A priori, il semble(rait) arrêté. Après, si tu le souhaite, tu peux t'en assurer via celle-ci :
killall dpkg aptitude apt-get frontend
C'est à toi de voir. Hélas, je ne le peux, ce paquet (mysql-apt-config) ne figure sur le mien... Du moins, je me fis à whereis ainsi que dpkg. En revanche, j'ai pu voir qu'il existe des fichiers en rapport.

D'abord, par précaution, tu devrais peut-être arrêté MySQL.
Ensuite, je crois que tu devrais commencer par cette commande :
dpkg --configure -a
Dès fois, elle seule suffit très bien. Après, il faudrait que tu regarde si le fichier lock existe. Dans ce cas, tu le supprime et (re)lance la commande précédente.
ls -all /var/lib/dpkg/l* && rm /var/lib/dpkg/lock
Une autre solution serait celle-ci :
dpkg --configure -a
echo "exit" >> /var/lib/dpkg/info/mysql-apt-config.postinst
nano /var/lib/dpkg/info/mysql-apt-config.postinst
Place le terme exit au tout début de ce fichier. Ensuite, tu peux essayer de le déinstaller :
dpkg --configure mysql-apt-config
aptitude remove --purge mysql-apt-config
Et le magicien Wagner a encore fait des merveilles !
C'est repartie comme sur des roulettes !

Merci beaucoup, tu m'as encore sorti de la mouise
Parfait, avec plaisir, de rien Ayenon
Répondre…