Menu Close
    Searching for an experienced eCommerce & Marketplace Development Company ?

    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 !!

    . . .
    Discuss on Helpdesk

    Leave a Comment

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


    5 comments

  • Mário Alfredo Jorge
    I get this error:
    dpkg: error: cannot access archive ‘libpng12-0_1.2.54-1ubuntu1_amd64.deb’: No such file or directory
    • Ashish Singh (Moderator)
      Hi, Mário

      Seems like “libpng12-0_1.2.54-1ubuntu1_amd64.deb” file is not present in your server that’s why you are getting this error.
      Kindly follow the below steps to fix this issue.

      Step 1:
      sudo wget http://se.archive.ubuntu.com/ubuntu/pool/main/libp/libpng/libpng12-0_1.2.54-1ubuntu1_amd64.deb

      Step 2:
      Check if file present using “ls -all” command

      Step 3:
      sudo dpkg -i libpng12-0_1.2.54-1ubuntu1_amd64.deb

      Hope the above steps will fix this issue. Feel free to ask in case you still have the same issue.

      Thanks,
      Ashish Singh

  • robin
    Excellent, worked like a charm
    • Archana Tiwari (Moderator)
      Hello Robin,
      Thanks for the Appreciation. In case of any further queries, please drop us a mail at [email protected].
      Thanks
  • styropyro
    Great It worked for me too! Thanks
  • Back to Top