Reading list Switch to dark mode

    Package ‘libpng12-0’ has no installation candidate Ubuntu 18.0.4

    Updated 2 November 2019

    Today I face an issue in my Ubuntu 18.0.4 environment when I was trying to install wkhtmltopdf. I was getting below error while installing wkhtmlpdf,

    dpkg: error processing package wkhtmltox (--install):
     dependency problems - leaving unconfigured
    Errors were encountered while processing:

    Actually few dependencies were missing in my installation. So I started installing them one by one. Then while installing libpng12-0 using below command,

    apt install libpng12-0

    I was getting below error,

    E: Package 'libpng12-0' has no installation candidate

    So in order to install libpng12-0 library, I followed below steps,

    • 1) Download libpng12-0 depending on your system arch (32 or 64 bit) –
    # For 64-bit - Linux (Ubuntu Trusty) - Ubuntu 18.0.4
    sudo wget
    • Then install the downloaded package using below command,
    sudo dpkg -i libpng12-0_1.2.54-1ubuntu1_amd64.deb

    This is how I have successfully installed this package.

    Start your headless eCommerce
    Find out More

    We would love the hear your thoughts, suggestions, and questions in the comments below !!

    . . .

    Leave a Comment

    Your email address will not be published. Required fields are marked*


  • Mário Alfredo Jorge
    • Ashish Singh (Moderator)
  • robin
    • Archana Tiwari (Moderator)
  • styropyro
  • Back to Top

    Message Sent!

    If you have more details or questions, you can reply to the received confirmation email.

    Back to Home