Unable to install on Linux Mint 22 or Ubuntu 24

What issue or error are you experiencing?

Unable to use SQL-related features due to outdated dependency on libncurses5


What steps can be taken to replicate the issue? Feel free to include screenshots, videos, etc

Try to run any mysql command from the site shell.


System Details

  • Local Version: Version 9.2.8+6882

  • Operating System (OS) and OS version: Linux Mint 22.2


Local Logs

Attach your Local Logs here (Help Doc - Retrieving Local’s Log) Yes


Security Reminder
Local does a pretty good job of scrubbing private info from the logs and the errors it produces, however there’s always the possibility that something private can come through. Because these are public forums, always review the screenshots you are sharing to make sure there isn’t private info like passwords being displayed.

13 months ago we were told this was on the roadmap: Trying to install locapwp under Mint 22

Hey @Walter!

As of Local v9.2.5 (Releases - Local) we should have this addressed for Ubuntu and Fedora:

Improved Ubuntu 24 and Fedora compatibility by bundling missing dependencies that are no longer included in latest Linux releases. Previously, this was causing issues installing Local and starting nginx on these operating systems.

That said it might still be an issue with Linux Mint 22. I’ll check with our devs regarding that!

As far as Ubuntu, are you still getting the errors with new sites or is this happening on previously created sites? Could you share your full Local Log?

Retrieving Local’s Log File

Thanks for looking into this. I had only tried with a new site since moving to Mint 22.2 from 21.3. I was unable to create a site from a zip, and when I tried to create a blank site and then add the SQL dump, I received the error message, “Failed to get current SQL modes. Reason: mysql: error while loading shared libraries: libncurses.so.5: cannot open shared object file: No such file or directory.” With a bit of effort, I installed libncurse5 and was then able to import the ZIP file normally, but that is obviously not a good long term solution due to potential conflicts with libncurses6.

local-logs.zip (157.0 KB)

Hey @Walter , thanks for your patience with this and I’m glad you found a work around.

It looks like we did “fix” this issue in v9.2.5

  • Improved Ubuntu 24 and Fedora compatibility by bundling missing dependencies that are no longer included in latest Linux releases. Previously, this was causing issues installing Local and starting nginx on these operating systems.

More specifically, there were two rough issues that were addressed in the above release:

  • The Local installer used to require libncurses.so.5 and when an OS couldn’t satisfy that dependency, it refused to install. Technically, Local core (ie, the actual app that you click around) doesn’t require libncurses – it’s MySQL that does. Because of this, we remove that hard requirement on the Local installer

  • Because the actual dependency comes from MySQL, we updated the Lightning Service (roughly the MySQL environment, plus some wrappers so Local Core can manage those processes) to include libncurses.so.5. This was necessary so that when you created a new site using Local, it was able to finish creating a site and importing SQL files.

You didn’t say explicitly, but I think you probably ran into the issue within a site shell – correct?

If that’s true, you’re probably wondering why it’s still broken in the terminal and why it’s preventing you from importing a sql file.

I was able to work around it by updating the LD_LIBRARY_PATH environment variable to point to the lib folder of the MySQL lightning service. This is roughly the fix that we implemented in those other situations.

The specific command was this one, though if new versions of MySQL are released, the path might change:

export LD_LIBRARY_PATH="${LD_LIBRARY_PATH}:${HOME}/.config/Local/lightning-services/mysql-8.0.35+4/bin/linux/lib"

While QA’ing, I did notice that some wpcli db commands are broken, but that’s a known issue with wpcli in our environment: Unable to run some wp-cli DB commands

I’ve added a ticket to our backlog to implement this fix. Anyway, the wp db import command should work again with this workaround and our eventual fix.

Thanks again for finding this issue and letting us know about it!

1 Like

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.