I am using "mysql 5.7" in my "gitlab-ci" file and use "apt-get -y install mysql-client" to install sql client but it is always giving me error.
ERROR : "Package mysql-client is not available, but is referred to by another package.
This may mean that the package is missing, has been obsoleted, or
is only available from another source".
This script is running on gitlab pipeline and that is were I am getting this error. When I push the code to my branch, a pipeline runs which installs all the dependencies first where this fails.
I happen to run into the same error. In my case i'm using docker with python:3.7 which used to be based on debian stretch but is now updated to debian buster (10). This newer debian version doesn't have the package mysql-client -> https://packages.debian.org/search?searchon=names&keywords=mysql-client
Could it be that you're using docker to load golang:1.12? They actually use debian instead of ubuntu and have recently moved to debian 10. To fix this error install default-mysql-client instead.
(This should be a comment but I don't have 50 rep points yet and I do believe this helps you out because of the exact timing)