This question already has an answer here:

When I run: sudo apt-get install libpng12-0, I get this error message:

Reading package lists... Done
Building dependency tree       
Reading state information... Done
Package libpng12-0 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 'libpng12-0' has no installation candidate
  • How to fix this?
  • Is having libpng16-16 installed enough to do what libpng12-0 does?

I have:

Distributor ID: Ubuntu
Description:    Ubuntu 17.04
Release:    17.04
Codename:   zesty

marked as duplicate by karel, Pilot6, Charles Green, Eric Carvalho, Zanna Sep 13 '17 at 20:17

This question has been asked before and already has an answer. If those answers do not fully address your question, please ask a new question.

  1. The repository in Ubuntu Zesty does not include libpng12-0. You have to download it from Xenial's repository. It will, in most cases, work smoothly.
  2. libpng16-16 has a seperate folder for its program libpng16.so.16, which is different from libpng12-0 , which is libpng12.so.0, so having libpng16-16 installed will not at all do what libpng12-0 does.

Not the answer you're looking for? Browse other questions tagged or ask your own question.