I get this error since libpng12-dev is a dependency of zlib1g-dev (which is installed with "--no-install-recommends")
I am using this Image as a base for mediawiki:1.30.0.
Dockerfile (FROM php:7.1-apache).
The correct dependency should be libpng-dev.
How can we fix this?
You might need to change php:7.1-apache to php:7.1-apache-jessie, but it would be better to simply adjust the dependency in your Dockerfile.
you can also try libpng-dev instead of libpng12-dev for the new version of Ubuntu.
Most helpful comment
you can also try libpng-dev instead of libpng12-dev for the new version of Ubuntu.