Package 'libpng12-0' has no installation candidate Ubuntu 18.0.4

12,433

... trying to install WPS office and it depends on libpng12-0

You can use the Ubuntu 16.04 package http://se.archive.ubuntu.com/ubuntu/pool/main/libp/libpng/libpng12-0_1.2.54-1ubuntu1_amd64.deb

Download, and install ...

sudo gdebi Downloads/libpng12-0_1.2.54-1ubuntu1_amd64.deb 
Share:
12,433

Related videos on Youtube

mrefizzy
Author by

mrefizzy

Updated on June 04, 2022

Comments

  • mrefizzy
    mrefizzy almost 2 years

    I'm trying to install WPS office and it depends on libpng12-0 which I can't install due to "Package 'libpng12-0' has no installation candidate ". I'm running Ubuntu 18.0.4 LTS.

    • Knud Larsen
      Knud Larsen about 6 years
      You can use the Ubuntu 16.04 package, I guess se.archive.ubuntu.com/ubuntu/pool/main/libp/libpng/… ... I used an old Debian package archive.debian.org/debian-archive/debian/pool/main/libp/libp‌​ng/… ... ( I don't remember why.) Install : sudo gdebi Downloads/libpng12*
    • mrefizzy
      mrefizzy almost 6 years
      It fixed the issue. Thanks.
    • Subho
      Subho almost 6 years
      I did not get any version of libpng12-0 under bionic packages but it is available under xenial packages. Just download it from the below link and install the file, it will solve your problem. packages.ubuntu.com/xenial/amd64/libpng12-0/download Choose any of the mirrors from the above link and it will start downloading. It is a .deb file so just double-clicking it will start installing process.
    • Abdul Hameed
      Abdul Hameed over 3 years
      Try these below commands: Hope you will get success. "sudo add-apt-repository ppa:linuxuprising/libpng12" "sudo apt update" "sudo apt install libpng12-0"