Python relocation error OSMC [SOLVED]

Im still on October 2018 update. My OSMC is still working but python3 and python2 are broken.

The last work I did via SSH was to install the google text to speech python module. Python3 was still working.
Now if I use SSH and start python3 I get: a reloaction error:

python3
python3: relocation error: python3: symbol __libc_current_sigrtmax, version GLIBC_2.4 not defined in file libpthread.so.0 with link time reference

Worse still, it is affecting python2 so I cant post logs:

grab-logs -A
python2: relocation error: python2: symbol __libc_current_sigrtmax, version GLIBC_2.4 not defined in file libpthread.so.0 with link time reference

Below is a recent command history:

sudo apt install python3-pip
1104 python3-pip
1105 pip3
1106 pip3 list
1107 pip3 uninstall gTTS
1108 pip3 uninstall gTTS-token
1109 sudo pip3 uninstall gTTS
1110 sudo pip3 uninstall gTTS-token
1111 pip3 list
1112 sudo pip3 install gTTS
1113 pip3 list

It looks like apt is still working and below I’ve pasted output from
cat /var/log/apt/term.log
(I cannot pipe to paste.log

Setting up systemd-sysv (232-25+deb9u6) ...
Setting up libssh-gcrypt-4:armhf (0.7.3-2+deb9u1) ...
Setting up libfuse2:armhf (2.9.7-1+deb9u2) ...
Setting up linux-libc-dev:armhf (4.9.130-2) ...
Setting up libgnutls30:armhf (3.5.8-5+deb9u4) ...
Setting up samba-common (2:4.5.12+dfsg-2+deb9u4) ...
Setting up libtiff5:armhf (4.0.8-2+deb9u4) ...
Setting up libmariadbclient18:armhf (10.1.37-0+deb9u1) ...
Setting up hdparm (9.51+ds-1+deb9u1) ...
Setting up base-files-osmc (2.7.3) ...
Fixing permissions on busybox.
Setting up libssl1.0.2:armhf (1.0.2q-1~deb9u1) ...
Setting up libx11-xcb1:armhf (2:1.6.4-3+deb9u1) ...
Processing triggers for libc-bin (2.24-11+deb9u3) ...
Setting up libseccomp2:armhf (2.3.1-2.1+deb9u1) ...
Setting up udev (232-25+deb9u6) ...
addgroup: The group `input' already exists as a system group. Exiting.
Setting up rbp2-image-4.14.78-2-osmc (2) ...
Running depmod.
Examining /etc/kernel/postinst.d.
run-parts: executing /etc/kernel/postinst.d/apt-auto-removal 4.14.78-2-osmc /boot/vmlinuz-4.14.78-2-osmc
run-parts: executing /etc/kernel/postinst.d/apt-auto-removal-osmc 4.14.78-2-osmc /boot/vmlinuz-4.14.78-2-osmc
run-parts: executing /etc/kernel/postinst.d/inform-updater 4.14.78-2-osmc /boot/vmlinuz-4.14.78-2-osmc
run-parts: executing /etc/kernel/postinst.d/process-vmlinuz-rbp 4.14.78-2-osmc /boot/vmlinuz-4.14.78-2-osmc
Setting up libtirpc1:armhf (0.2.5-1.2+deb9u1) ...
Setting up rbp-bootloader-osmc (3.1.0-1) ...
Setting up libssl1.1:armhf (1.1.0j-1~deb9u1) ...
Setting up libssh-4:armhf (0.7.3-2+deb9u1) ...
Setting up mediacenter-skin-osmc (17.0.5-5) ...
Setting up openssl (1.1.0j-1~deb9u1) ...
Setting up rbp2-kernel-osmc (3.9.115) ...
Processing triggers for dbus (1.10.26-0+deb9u1) ...
Setting up gnupg-agent (2.1.18-8~deb9u3) ...
Setting up dirmngr (2.1.18-8~deb9u3) ...
Setting up rbp-userland-osmc (3.1.0-1) ...
Setting up libx11-data (2:1.6.4-3+deb9u1) ...
Setting up fuse (2.9.7-1+deb9u2) ...
Setting up libpolkit-gobject-1-0:armhf (0.105-18+deb9u1) ...
Setting up libconfuse-common (3.0+dfsg-2+deb9u1) ...
Setting up samba-libs:armhf (2:4.5.12+dfsg-2+deb9u4) ...
Setting up libpam-systemd:armhf (232-25+deb9u6) ...
Setting up libcurl3:armhf (7.52.1-5+deb9u8) ...
Setting up libpolkit-agent-1-0:armhf (0.105-18+deb9u1) ...
Setting up libcurl3-gnutls:armhf (7.52.1-5+deb9u8) ...
Setting up libconfuse1:armhf (3.0+dfsg-2+deb9u1) ...
Setting up gnupg (2.1.18-8~deb9u3) ...
Setting up libx11-6:armhf (2:1.6.4-3+deb9u1) ...
Setting up wpasupplicant (2:2.4-1+deb9u2) ...
Setting up libsmbclient:armhf (2:4.5.12+dfsg-2+deb9u4) ...
Setting up libpolkit-backend-1-0:armhf (0.105-18+deb9u1) ...
Setting up curl (7.52.1-5+deb9u8) ...
Setting up policykit-1 (0.105-18+deb9u1) ...
Removed /run/systemd/system/polkit.service.
Setting up armv7-network-osmc (1.7.6) ...
Processing triggers for libc-bin (2.24-11+deb9u3) ...
Log ended: 2018-12-27  18:17:07

Log started: 2018-12-27  18:17:43
(Reading database ... 35346 files and directories currently installed.)
Removing rbp2-image-4.14.34-2-osmc (2) ...
Examining /etc/kernel/prerm.d.
Examining /etc/kernel/postrm.d .
(Reading database ... 33434 files and directories currently installed.)
Purging configuration files for rbp2-image-4.14.34-2-osmc (2) ...
Examining /etc/kernel/postrm.d .
Log ended: 2018-12-27  18:17:56

Log started: 2018-12-27  22:16:28
(Reading database ... 33434 files and directories currently installed.)
Preparing to unpack .../rbp2-mediacenter-osmc_17.6.0-49_armhf.deb ...
Unpacking rbp2-mediacenter-osmc (17.6.0-49) over (17.6.0-49) ...
Processing triggers for mime-support (3.60) ...
Setting up rbp2-mediacenter-osmc (17.6.0-49) ...
Log ended: 2018-12-27  22:20:12

Log started: 2018-12-28  13:37:22
(Reading database ... 33434 files and directories currently installed.)
Removing python3-dev (3.5.3-1) ...
Removing python3-stevedore (1.17.1-2) ...
Removing python3-pbr (1.10.0-1) ...
Removing python3-six (1.10.0-3) ...
Removing python3-pip (9.0.1-2) ...
Removing python3-setuptools (33.1.1-1) ...
Removing python3-pkg-resources (33.1.1-1) ...
Removing python3 (3.5.3-1) ...
Removing dh-python (2.20170125) ...
(Reading database ... 33087 files and directories currently installed.)
Purging configuration files for python3-pbr (1.10.0-1) ...
Purging configuration files for python3 (3.5.3-1) ...
Log ended: 2018-12-28  13:37:52

Log started: 2018-12-28  13:38:29
Selecting previously unselected package dh-python.
(Reading database ... 33087 files and directories currently installed.)
Preparing to unpack .../dh-python_2.20170125_all.deb ...
Unpacking dh-python (2.20170125) ...
Selecting previously unselected package python3.
Preparing to unpack .../python3_3.5.3-1_armhf.deb ...
Unpacking python3 (3.5.3-1) ...
Setting up dh-python (2.20170125) ...
Setting up python3 (3.5.3-1) ...
running python rtupdate hooks for python3.5...
running python post-rtupdate hooks for python3.5...
Log ended: 2018-12-28  13:38:45

Log started: 2018-12-28  13:40:29
Selecting previously unselected package python3-dev.
(Reading database ... 33150 files and directories currently installed.)
Preparing to unpack .../python3-dev_3.5.3-1_armhf.deb ...
Unpacking python3-dev (3.5.3-1) ...
Selecting previously unselected package python3-pkg-resources.
Preparing to unpack .../python3-pkg-resources_33.1.1-1_all.deb ...
Unpacking python3-pkg-resources (33.1.1-1) ...
Selecting previously unselected package python3-setuptools.
Preparing to unpack .../python3-setuptools_33.1.1-1_all.deb ...
Unpacking python3-setuptools (33.1.1-1) ...
Setting up python3-dev (3.5.3-1) ...
Setting up python3-pkg-resources (33.1.1-1) ...
Setting up python3-setuptools (33.1.1-1) ...
Log ended: 2018-12-28  13:40:38

Log started: 2019-01-01  14:28:48
Selecting previously unselected package python3-pip.
(Reading database ... 33251 files and directories currently installed.)
Preparing to unpack .../python3-pip_9.0.1-2_all.deb ...
Unpacking python3-pip (9.0.1-2) ...
Setting up python3-pip (9.0.1-2) ...
Log ended: 2019-01-01  14:29:09

Thanks in advance for help on this.
Not sure if the update from OSMC uses python , is thare any other way to update
e.g
sudo apt-get update

or a better way to fix this?

Try sudo apt-get update and sudo apt-get dist-upgrade.
Unfortunately the loggers do use Python; so it may be tricky to upload complete logs.

Sam

If running a dist-upgrade doesn’t fix it, try sudo apt-get install --reinstall libc6

Thanks for replies Guys.
After running Sams command and issuing reboot
at the SSH terminal i got Segmentation fault.

I unplugged, waited a minute and rebooted, all is well again now.
Marking as solved.
Thanks for great support !