Database Import Error on Debian Linux - libtinfo.so.5 Version Mismatch

I’m encountering an error when trying to import a WordPress database into a LocalWP site on my Debian Linux machine. The import fails with the following error message:

Error: Failed to get current SQL modes. Reason: mysql: /home/dwayne/.config/Local/lightning-services/php-7.4.30+6/bin/linux/shared-libs/libtinfo.so.5: version NCURSES_TINFO_6.2.20211010' not found (required by /lib/x86_64-linux-gnu/libncurses.so.5) Error: Importing database failed.

It seems the mysql client used by WP-CLI can’t find the correct version of the libtinfo.so.5 library. I’ve tried the following troubleshooting steps:

  • Updating LocalWP
  • Reinstalling MySQL within LocalWP
  • Searching for the specific library version in Debian repositories

However, I haven’t been able to resolve the issue.

My Setup:

  • OS: Debian GNU/Linux 12 (Bookworm)
  • LocalWP Version: Version 9.0.5+6706
  • MySQL Version: 8.0.16 (within LocalWP)
  • MariaDB Version: 10.11.6 (installed on my system)

Additional Information:

  • Output of ldd /usr/bin/mysql:

linux-vdso.so.1 (0x00007ffe781a3000) libedit.so.2 => /lib/x86_64-linux-gnu/libedit.so.2 (0x00007f1f177b4000) libncurses.so.6 => /lib/x86_64-linux-gnu/libncurses.so.6 (0x00007f1f1778b000) libtinfo.so.6 => /lib/x86_64-linux-gnu/libtinfo.so.6 (0x00007f1f17758000) libssl.so.3 => /lib/x86_64-linux-gnu/libssl.so.3 (0x00007f1f176af000) libcrypto.so.3 => /lib/x86_64-linux-gnu/libcrypto.so.3 (0x00007f1f17200000) libz.so.1 => /lib/x86_64-linux-gnu/libz.so.1 (0x00007f1f17690000) libstdc++.so.6 => /lib/x86_64-linux-gnu/libstdc++.so.6 (0x00007f1f16e00000) libc.so.6 => /lib/x86_64-linux-gnu/libc.so.6 (0x00007f1f1701f000) libbsd.so.0 => /lib/x86_64-linux-gnu/libbsd.so.0 (0x00007f1f16dea000) libm.so.6 => /lib/x86_64-linux-gnu/libm.so.6 (0x00007f1f16d0b000) /lib64/ld-linux-x86-64.so.2 (0x00007f1f17d25000) libgcc_s.so.1 => /lib/x86_64-linux-gnu/libgcc_s.so.1 (0x00007f1f16ceb000) libmd.so.0 => /lib/x86_64-linux-gnu/libmd.so.0 (0x00007f1f16cde000)

  • Output of objdump -p /lib/x86_64-linux-gnu/libtinfo.so.5 | grep "SONAME":

SONAME libtinfo.so.5

Could you please provide guidance on how to resolve this library compatibility issue? Are there any known workarounds or specific configurations for Debian Linux?

Thank you for your time and support!

Hi @dcampbell

I believe this is what you need:

Hi Nick,

Thanks for the suggestion! I tried installing the packages you mentioned (libtinfo5_6.4-2_amd64, libncurses5_6.4-2_amd64, libaio1_0.3.113-4_amd64, and libnss3-tools), but unfortunately, they don’t seem to contain the NCURSES_TINFO_6.2.20211010 files that are causing the issue.

I’ve also run a full system search for the missing dependency using the following command:

sudo find / -name 'libtinfo.so.5' -exec sh -c 'echo -n "{} "; objdump -p "{}" | grep "SONAME" | grep "NCURSES_TINFO_6.2.20211010"' \;

But it didn’t find any files with the required version string.

Do you have any other ideas on where I might find this specific version of libtinfo.so.5 or alternative ways to resolve the dependency issue?

Thanks again for your help!

Best regards,

Dwayne

Hey @dcampbell! I’m not able to test on your OS but I’ll check with the Local devs to see if we can get some more details. I see that you commented on this other post as well so maybe someone from the community can provide some clarity too.