Php: E: Package 'libpng12-dev' has no installation candidate

Created on 4 Jun 2018  路  2Comments  路  Source: docker-library/php

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?

question

Most helpful comment

you can also try libpng-dev instead of libpng12-dev for the new version of Ubuntu.

All 2 comments

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.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

2Kable picture 2Kable  路  3Comments

igodorogea picture igodorogea  路  3Comments

mcnesium picture mcnesium  路  3Comments

pukkancs picture pukkancs  路  3Comments

cordoval picture cordoval  路  3Comments