On an up to date stretch, I want to install libmysqlclient-dev libmysqld-dev, but apt tells me it was not available in my sources.

/etc/opt/sources.list looks like this:

deb http://raspbian.raspberrypi.org/raspbian/ stretch main contrib non-free rpi
 deb-src http://raspbian.raspberrypi.org/raspbian/ stretch main contrib non-free rpi
 deb https://download.webmin.com/download/repository sarge contrib
 deb-src http://raspbian.raspberrypi.org/raspbian/ jessie main contrib non-free rpi
 deb-src http://mirrordirector.raspbian.org/raspbian/ wheezy main contrib non-free rpi

I wonder what could be wrong?

  • using apt search libmysqlclient-dev results in finding default-libmysqlclient-dev ... searching for libmysqld nothing is found - but then, I can't find anything that matches libmysqld on ANY Debian based system (amd64 or arm) - so it seems you want to install something, in that case, that doesn't exist at all Feb 28, 2019 at 12:00
  • apt-get already fails at libmysqlclient-dev, it didn't even get to the second lib. That's probably even more trouble on the road ahead.
    – Jan
    Feb 28, 2019 at 12:05
  • Not sure how relevant that is, of course it failed, because it doesn't exist Feb 28, 2019 at 12:08

1 Answer 1


Debian Stretch changed libmysqlclient-dev to libmariadbclient-dev.

MariaDB is a fork of MySQL that's more friendly in the open source world. It's compatible as a drop-in replacement, although you might find the setup steps have changed. It's covered in this guide to installing WordPress on a Raspberry Pi.


Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.