3

I'm using Ubuntu GNOME 16.10 and was trying to install WPS Office. I tried to install using software centre But it wasn't installing without giving any error logs. Then I opened it with Gdebi installer. Here is what I saw.

shows erorr

I have already trying enabling multiverse repositories.

Edit:
I have downloaded the amd64 package from the WPS official site, but even now installing through terminal I still get the missing dependencies error.

Zanna
  • 70,465
  • Have tried using the .deb files from here ? To install use sudo dpkg -i package_name – George Udosen Jan 14 '17 at 15:12
  • @George yes i have tried, still in the terminal, it shows....

    dpkg: dependency problems prevent configuration of wps-office: wps-office depends on libpng12-0; however: Package libpng12-0 is not installed.

    – Alan Jameson Jan 14 '17 at 15:29
  • do this sudo apt -f install && sudo apt update && sudo apt dist-upgrade then if all goes well try installing again. – George Udosen Jan 14 '17 at 15:40
  • 1
    the problem is that libpng12-0 is only present in the repositories until Ubuntu 16.04 LTS! - i don't know why and can't tell you how, but you will need libpng12-0 to install WPS Office. – DJCrashdummy Jan 14 '17 at 15:47
  • 1
    @DJCrashdummy Oh thx that solved the problem. – Alan Jameson Jan 14 '17 at 16:03
  • Check the upvoted answer here: http://askubuntu.com/questions/838949/ubuntu-16-10-teamvieweri386-depends-on-libpng12-0 (Different software but the same dependency) –  Jan 14 '17 at 22:17
  • 1
    Or you can download the xenial version directly here: http://packages.ubuntu.com/xenial/libpng12-0 (install it before attempting to install WPS again. WPS should be updated ASAP to avoid this problem in 16.10. –  Jan 14 '17 at 22:21
  • Thank you all my problem is solved. I had to download libpng12-0 packge and then it installed and now it runs flawlessly. On a different note, it haven't been long since i have installed ubuntu 16.10 and it turns out it has many dependency bugs. @CelticWarrior – Alan Jameson Jan 15 '17 at 02:48
  • @AlanJameson In this case it's the other way around. WPS needs to be updated in order to either no longer depend on a deprecated library or package it together if unavoidable. It's not the new OS that has to run old software, it's the software that needs to be updated to run in the new OS. This is true for all OSes and in particular the closed source ones. –  Jan 15 '17 at 22:53
  • @AlanJameson, I have found another solution. Please take a look at my answer. – Rahul Jan 22 '17 at 03:20

2 Answers2

6

The WPS Office for Linux up to version 10.1.0.5672~a21 ("Alpha21[2016-06-24]") - still depends on a deprecated library since Ubuntu 16.10, mentioned in the error message.

Workaround

Download and install the libpng12-0 version still available for Ubuntu 16.04 (xenial) before installing WPS Office for Linux.

1

I was having same problem found solution:

Download libpng12-0 package from here

Install package using:

sudo dpkg -i libpng12-0_1.2.50-2+deb8u3_amd64.deb 

Now install WPS office downloaded form here using:

sudo dpkg -i wps-office_10.1.0.5672~a21_amd64.deb 

I have tried this on Ubuntu 16.10 and it's working fine.

Rahul
  • 1,673
  • I have already downloaded the package. Its the same package i tried to install. – Alan Jameson Jan 14 '17 at 15:25
  • 1
    This is the standard procedure the user already tried. It has a dependency problem and this doesn't answer that problem. –  Jan 14 '17 at 17:33
  • @CelticWarrior, I have edited the answer and now it solves dependency problem. – Rahul Jan 22 '17 at 03:16