Beachcasts/doctrine-expressive-example

E: Package 'mysql-client' has no installation candidate

pc-mon opened this issue · 1 comments

Hello
thank you for your good tutorial,
I just got an error when I run docker-compose up -d
the error is:
Building web
Step 1/3 : FROM php:7.2-apache
---> 2aefc00193b5
Step 2/3 : RUN apt-get update && apt-get install -y vim git zlib1g-dev mysql-client libzip-dev && docker-php-ext-install zip mysqli pdo_mysql && pecl install xdebug && docker-php-ext-enable xdebug && echo 'xdebug.remote_enable=on' >> /usr/local/etc/php/conf.d/xdebug.ini && echo 'xdebug.remote_host=host.docker.internal' >> /usr/local/etc/php/conf.d/xdebug.ini && echo 'xdebug.remote_port=9000' >> /usr/local/etc/php/conf.d/xdebug.ini && a2enmod rewrite && sed -i 's!/var/www/html!/var/www/public!g' /etc/apache2/sites-available/000-default.conf && mv /var/www/html /var/www/public &&
curl -sS https://getcomposer.org/installer | php -- --install-dir=/usr/local/bin --filename=composer && echo "AllowEncodedSlashes On" >> /etc/apache2/apache2.conf
---> Running in 285499a20460
Get:1 http://cdn-fastly.deb.debian.org/debian buster InRelease [122 kB]
Get:3 http://security-cdn.debian.org/debian-security buster/updates InRelease [39.1 kB]
Get:2 http://cdn-fastly.deb.debian.org/debian buster-updates InRelease [49.3 kB]
Get:4 http://security-cdn.debian.org/debian-security buster/updates/main amd64 Packages [85.0 kB]
Get:5 http://cdn-fastly.deb.debian.org/debian buster/main amd64 Packages [7899 kB]
Get:6 http://cdn-fastly.deb.debian.org/debian buster-updates/main amd64 Packages [884 B]
Fetched 8194 kB in 4s (2192 kB/s)
Reading package lists...
Reading package lists...
Building dependency tree...
Reading state information...
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

E: Package 'mysql-client' has no installation candidate
ERROR: Service 'web' failed to build: The command '/bin/sh -c apt-get update && apt-get install -y vim git zlib1g-dev mysql-client libzip-dev && docker-php-ext-install zip mysqli pdo_mysql && pecl install xdebug && docker-php-ext-enable xdebug && echo 'xdebug.remote_enable=on' >> /usr/local/etc/php/conf.d/xdebug.ini && echo 'xdebug.remote_host=host.docker.internal' >> /usr/local/etc/php/conf.d/xdebug.ini && echo 'xdebug.remote_port=9000' >> /usr/local/etc/php/conf.d/xdebug.ini && a2enmod rewrite && sed -i 's!/var/www/html!/var/www/public!g' /etc/apache2/sites-available/000-default.conf && mv /var/www/html /var/www/public && curl -sS https://getcomposer.org/installer | php -- --install-dir=/usr/local/bin --filename=composer && echo "AllowEncodedSlashes On" >> /etc/apache2/apache2.conf' returned a non-zero code: 100

hope you can help me to fix it :)

in container-build\web\DokerFile just change "mysql-client" to "mariadb-client"
thank you