OpenMRS SDK (MySQL5.7 Installation)

Tags: #<Tag:0x00007fdb6f2df148>

Hello Devs, I am setting up my working environment but I encountered an error that I’ve been trying to solve but failed. I ran the command sudo apt-get install mysql-server and the error below was displayed.

Reading package lists… Done **Building dependency tree ** Reading state information… Done Some packages could not be installed. This may mean that you have requested an impossible situation or if you are using the unstable distribution that some required packages have not yet been created or been moved out of Incoming. The following information may help to resolve the situation:

The following packages have unmet dependencies: ** mysql-server : Depends: mysql-community-server (= 5.7.30-1debian8) but it is not going to be installed** E: Unable to correct problems, you have held broken packages.

I need your help on this. Thank you

Are you trying to run openmrs-sdk: or installing mysql on your machine, if your running openmrs-sdk can you share the full log you are encounting

I was trying to install MySQL on my machine since its a requirement while installing the OpenMRS SDK. @sharif

Its seems you are trying to install unstable mysql distribution, can you try sharing the all logs that you are getting, orelse try mysql version above that.You may also look through MYSQL 5.7 throws exception during installation, it may be of help

Hi @rad7. IIUC, you can also install/use MySQL through docker. This option is already included in OpenMRS SDK interactive setup, although I personally prefer to use a system installed MySQL.

The issue you are describing seems like a specific issue with your Linux installation; maybe you can try sudo apt-get update --fix-missing and see if it helps fixing broken dependencies.

1 Like

Hello @sharif, @sharif, @samuel34,

I’m glad to inform you that I have successfully managed to install the mysql5.7 with the help you gave me as well as other resources I have been able to find. I also installed the OpenMRS SDK. The next task is for me to learn how I can use it. Any contributions or help on how I can find resources to this is still welcomed.


@rad7 you mean the sdk or mysql?

Hello @gcliff , Thanks for asking. I meant the OpenMRS SDK.

have you had a look at this ?

Yes @gcliff. I looked at it and managed to install it. Infact, I logged in but quite stranded on what to do inside it.

what are you trying to accomplish with all this ?

@gcliff I was following through the Dev Manual you recommended for me. I read through up to the Get Set Up. I was setting up an environment which I thought is a requirement for me to begin contributing. Please, guide me on this.

@rad7 your on the right truck,keep going through all the items and also dont forget to take a look at this