Bonjour,
Je viens de terminer la mise a jour de ma debian de 9 vers 10, depuis je n’arrive plus a demarer mariadb.
J’ai ce message qui m’indique qu’une librairie « libpthread.so.0
» (libc6
je pense) n’est plus la:
/usr/sbin/mysqld: error while loading shared libraries: libpthread.so.0: cannot open shared object file: No such file or directory
Mais elle est bien installé, je n’ai pour le moment pas vue d’autres soucis, seul mysql
(mariadb
) semble être affecté.
J’ai essayer de supprimer l’insallation de mariadb
et de le reinstaller ce qui ne change rien.
Voila quelques informations sur mon installation:
root@zarniwoop:~# cat /etc/debian_version
10.3
root@zarniwoop:~#
root@zarniwoop:~# uname -r
4.19.0-8-amd64
root@zarniwoop:~#
root@zarniwoop:~# service mysql start
Job for mariadb.service failed because the control process exited with error code.
See "systemctl status mariadb.service" and "journalctl -xe" for details.
root@zarniwoop:~#
root@zarniwoop:~# systemctl status mariadb.service
● mariadb.service - MariaDB 10.3.22 database server
Loaded: loaded (/lib/systemd/system/mariadb.service; enabled; vendor preset: enabled)
Active: failed (Result: exit-code) since Wed 2020-04-15 09:41:26 CEST; 6s ago
Docs: man:mysqld(8)
https ://mariadb.com/kb/en/library/systemd/
Process: 13939 ExecStartPre=/usr/bin/install -m 755 -o mysql -g root -d /var/run/mysqld (code=exited, status=0/SUCCESS)
Process: 13940 ExecStartPre=/bin/sh -c systemctl unset-environment _WSREP_START_POSITION (code=exited, status=0/SUCCESS)
Process: 13942 ExecStartPre=/bin/sh -c [ ! -e /usr/bin/galera_recovery ] && VAR= || VAR=`/usr/bin/galera_recovery`; [ $? -eq 0 ] && systemctl set-environment _WSREP_START_POSITION=$VAR || exit 1 (code=exited, status=0/SUCCESS)
Process: 14012 ExecStart=/usr/sbin/mysqld $MYSQLD_OPTS $_WSREP_NEW_CLUSTER $_WSREP_START_POSITION (code=exited, status=127)
Main PID: 14012 (code=exited, status=127)
Apr 15 09:41:25 zarniwoop systemd[1]: Starting MariaDB 10.3.22 database server...
Apr 15 09:41:26 zarniwoop mysqld[14012]: /usr/sbin/mysqld: error while loading shared libraries: libpthread.so.0: cannot open shared object file: No such file or directory
Apr 15 09:41:26 zarniwoop systemd[1]: mariadb.service: Main process exited, code=exited, status=127/n/a
Apr 15 09:41:26 zarniwoop systemd[1]: mariadb.service: Failed with result 'exit-code'.
Apr 15 09:41:26 zarniwoop systemd[1]: Failed to start MariaDB 10.3.22 database server.
root@zarniwoop:~#
root@zarniwoop:~# ldd /usr/sbin/mysqld
linux-vdso.so.1 (0x00007ffc1fff8000)
libpthread.so.0 => /lib/x86_64-linux-gnu/libpthread.so.0 (0x00007fe7c4c3c000)
liblz4.so.1 => /usr/lib/x86_64-linux-gnu/liblz4.so.1 (0x00007fe7c4c1d000)
libsnappy.so.1 => /usr/lib/x86_64-linux-gnu/libsnappy.so.1 (0x00007fe7c4a15000)
libaio.so.1 => /usr/lib/x86_64-linux-gnu/libaio.so.1 (0x00007fe7c4a10000)
libz.so.1 => /lib/x86_64-linux-gnu/libz.so.1 (0x00007fe7c47f2000)
libpcre.so.3 => /lib/x86_64-linux-gnu/libpcre.so.3 (0x00007fe7c4580000)
libcrypt.so.1 => /lib/x86_64-linux-gnu/libcrypt.so.1 (0x00007fe7c4544000)
libsystemd.so.0 => /lib/x86_64-linux-gnu/libsystemd.so.0 (0x00007fe7c44a3000)
libdl.so.2 => /lib/x86_64-linux-gnu/libdl.so.2 (0x00007fe7c449e000)
libstdc++.so.6 => /usr/lib/x86_64-linux-gnu/libstdc++.so.6 (0x00007fe7c431a000)
libm.so.6 => /lib/x86_64-linux-gnu/libm.so.6 (0x00007fe7c4197000)
libc.so.6 => /lib/x86_64-linux-gnu/libc.so.6 (0x00007fe7c3fd6000)
/lib64/ld-linux-x86-64.so.2 (0x00007fe7c68bc000)
libgcc_s.so.1 => /lib/x86_64-linux-gnu/libgcc_s.so.1 (0x00007fe7c3fba000)
librt.so.1 => /lib/x86_64-linux-gnu/librt.so.1 (0x00007fe7c3fb0000)
liblzma.so.5 => /lib/x86_64-linux-gnu/liblzma.so.5 (0x00007fe7c3f88000)
libgcrypt.so.20 => /lib/x86_64-linux-gnu/libgcrypt.so.20 (0x00007fe7c3e6a000)
libgpg-error.so.0 => /lib/x86_64-linux-gnu/libgpg-error.so.0 (0x00007fe7c3e47000)
root@zarniwoop:~#
root@zarniwoop:~# ls -ila /lib/x86_64-linux-gnu/libpthread.so.0
3586 lrwxrwxrwx 1 root root 18 May 1 2019 /lib/x86_64-linux-gnu/libpthread.so.0 -> libpthread-2.28.so
root@zarniwoop:~#
root@zarniwoop:~# ls -ila /lib/x86_64-linux-gnu/libpthread-2.28.so
1265 -rwxr-xr-x 1 root root 146968 May 1 2019 /lib/x86_64-linux-gnu/libpthread-2.28.so
root@zarniwoop:~#
root@zarniwoop:~# apt policy mariadb-server
mariadb-server:
Installed: 1:10.3.22-0+deb10u1
Candidate: 1:10.3.22-0+deb10u1
Version table:
*** 1:10.3.22-0+deb10u1 500
500 http://deb.debian.org/debian buster/main amd64 Packages
100 /var/lib/dpkg/status
root@zarniwoop:~#
root@zarniwoop:~# apt policy
Package files:
100 /var/lib/dpkg/status
release a=now
500 http://deb.debian.org/debian buster-updates/main amd64 Packages
release o=Debian,a=stable-updates,n=buster-updates,l=Debian,c=main,b=amd64
origin deb.debian.org
500 http://deb.debian.org/debian-security buster/updates/non-free amd64 Packages
release v=10,o=Debian,a=stable,n=buster,l=Debian-Security,c=non-free,b=amd64
origin deb.debian.org
500 http://deb.debian.org/debian-security buster/updates/main amd64 Packages
release v=10,o=Debian,a=stable,n=buster,l=Debian-Security,c=main,b=amd64
origin deb.debian.org
500 http://deb.debian.org/debian buster/non-free amd64 Packages
release v=10.3,o=Debian,a=stable,n=buster,l=Debian,c=non-free,b=amd64
origin deb.debian.org
500 http://deb.debian.org/debian buster/contrib amd64 Packages
release v=10.3,o=Debian,a=stable,n=buster,l=Debian,c=contrib,b=amd64
origin deb.debian.org
500 http://deb.debian.org/debian buster/main amd64 Packages
release v=10.3,o=Debian,a=stable,n=buster,l=Debian,c=main,b=amd64
origin deb.debian.org
Pinned packages:
Merci pour votre aide.