I tried to install WPS Office on my laptop (ubuntu 16.10 Gnome, 64 bit) with Gdebi installer but it said
Dependency is not satisfiable: libpng12-0Then I tried to open this library as follows
sudo apt-get install libpng12-0But I encountered an error:
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 candidateCan anyone help? Thanks a lot
3 Answers
You can download the libpng12-0 package from here:
- for i386 architecture and
- for amd64.
I had the same dependency problem. But downloading and installing fix edthe error. Ubuntu 16.10 killed these libs jeje.
5Downloading and manually installing a package is not the recommended way of doing things in ubuntu, it is strongly suggested to use a package manager like aptitude or synaptic to download and install packages.
To do it in the command line first you have to add a repository. This involves modifying /etc/apt/sources.list so you must create a backup
Open a Terminal window
sudo nano /etc/apt/sources.listAt the top of the list add
#### BACKUP for /etc/apt/sources.list created <insert date here>press ctrl+o to save the file to a new location. I have a folder in my home directory for backups, but you can put it anywhere you will remember that it exists. For my backup folder I saved it as /home/USERNAME/os_file_backups/backup_03-06-17_apt-sources.list hit enter to save, it will ask you if you want to save it with a different name press y to save the file and then ctrl-x to exit nano
once again go back to sources.list
sudo nano /etc/apt/sources.listat the bottom of the file add
#### Manually Added sources
## source for libpng12-0 package
deb xenial main^note for above, mirrors.kernel.org is one of many mirrors that can be used. You can replace with any of the mirrors listed at that you wish to use
press ctrl+x and hit yes to save the file
now to update the package list
sudo apt-get updateand install the package
sudo apt-get install libpng12-0shazam you have added libpng-12-0 using apt so you will get updated packages whenever you run apt-get upgrade
5This also happen when you try to install incompatible package with your distro (like install trusty .dep package on bionic).