Menu Close
    Hire us Request quote Reading list Switch to dark mode

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

    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:
     wkhtmltox
    

    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 http://se.archive.ubuntu.com/ubuntu/pool/main/libp/libpng/libpng12-0_1.2.54-1ubuntu1_amd64.deb
    • 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.

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

    . . .

    Comment

    Add Your Comment

    Be the first to comment.

    Back to Top
    css.php
    Hire Us!
    Brief us about your requirements and we'll get back to you.
    Woo! Hooy!
    We have just received your message and our expert will get back to you shortly.
    Send Again
    Close