Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

E: Package 'libpng12-dev' has no installation candidate #662

Closed
jahanzaib-basharat opened this issue Jun 4, 2018 · 2 comments
Closed

E: Package 'libpng12-dev' has no installation candidate #662

jahanzaib-basharat opened this issue Jun 4, 2018 · 2 comments
Labels
question Usability question, not directly related to an error with the image

Comments

@jahanzaib-basharat
Copy link

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?

@tianon
Copy link
Member

tianon commented Jun 4, 2018

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.

@wglambert wglambert added the question Usability question, not directly related to an error with the image label Jun 6, 2018
@yosifkit yosifkit closed this as completed Jun 6, 2018
@hsali
Copy link

hsali commented Jun 13, 2018

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

davidk132 added a commit to davidk132/processwire-docker-compose that referenced this issue Jun 15, 2018
The libpng12-dev no longer has installation candidate. The correct package should be libpng-dev, per PHP docs.
docker-library/php#662
docker-library/php#485
capuleto added a commit to eksponent/dockerfiles that referenced this issue Jan 16, 2019
capuleto added a commit to eksponent/dockerfiles that referenced this issue Jan 16, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Usability question, not directly related to an error with the image
Projects
None yet
Development

No branches or pull requests

5 participants