I'm trying to get owncloud running on a Raspberry Pi 3 to run as a local file server. I'm following some tutorials that are running me through setting up mysql for owncloud, and MySQL installed fine for the most part. I run into an error when trying to install the package php5-mysql:

The following packages have unmet dependencies: 
php5-mysql : Depends: libmysqlclient18 but it is not installable
E: Unable to correct problems, you have held broken packages

This piece is crucial to link MySQL to owncloud, so I can't go farther without this. Raspbian Stretch is installed. I don't know how to proceed and have very little database/MySQL/Apache experience.

  • Possible duplicate of raspberrypi.stackexchange.com/questions/71473/…
    – Bex
    Commented Aug 22, 2017 at 7:45
  • checked, and none of solutions from attached question work. Should this get marked as duplicate? I don't know how I can help on other question since I can't comment. thoughts?
    – NotCras
    Commented Aug 22, 2017 at 21:01
  • If there is no answer that solves your problem, then it should not be marked as duplicate, but you might want to watch the other question as well, in case a helpful answer appears.
    – Bex
    Commented Aug 23, 2017 at 5:03
  • I found an answer here: raspberrypi.stackexchange.com/questions/71473/… "I managed to install with: sudo apt-get install php-mysql It appears that PHP 7 packages are then installed instead of the 5 version. "
    – tgraphic
    Commented Sep 6, 2017 at 1:54

1 Answer 1


php5-mysql is available in the previous version Jessie and NOT in Stretch.

But Owncloud should be able to use php7 (php-mysql)!

Ref.: https://owncloud.org/blog/php-7-is-here-and-owncloud-is-ready/

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.