android@android:~/Downloads$ sudo dpkg -i wps-office_10.1.0.5707_a21_amd64.deb
[sudo] password for android:
Selecting previously unselected package wps-office.
(Reading database ... 134330 files and directories currently installed.)
Preparing to unpack wps-office_10.1.0.5707_a21_amd64.deb ...
Unpacking wps-office (10.1.0.5707~a21) ...
dpkg: dependency problems prevent configuration of wps-office:
wps-office depends on libpng12-0; however:
Package libpng12-0 is not installed.
dpkg: error processing package wps-office (--install):
dependency problems - leaving unconfigured
Processing triggers for gnome-menus (3.13.3-6ubuntu5) ...
Processing triggers for desktop-file-utils (0.23-1ubuntu3) ...
Processing triggers for mime-support (3.60ubuntu1) ...
Processing triggers for shared-mime-info (1.8-1) ...
Processing triggers for hicolor-icon-theme (0.17-1) ...
Errors were encountered while processing:
wps-office
android@android:~/Downloads$ sudo apt install libpng16-16
Reading package lists... Done
Building dependency tree
Reading state information... Done
libpng16-16 is already the newest version (1.6.34-1).
You might want to run 'apt --fix-broken install' to correct these.
The following packages have unmet dependencies:
wps-office : Depends: libpng12-0 but it is not installable
Recommends: ttf-mscorefonts-installer but it is not going to be installed
E: Unmet dependencies. Try 'apt --fix-broken install' with no packages (or specify a solution).
android@android:~/Downloads$ sudo apt install -f
Reading package lists... Done
Building dependency tree
Reading state information... Done
Correcting dependencies... Done
The following packages will be REMOVED:
wps-office
0 upgraded, 0 newly installed, 1 to remove and 0 not upgraded.
1 not fully installed or removed.
After this operation, 386 MB disk space will be freed.
Do you want to continue? [Y/n] y
(Reading database ... 136822 files and directories currently installed.)
Removing wps-office (10.1.0.5707~a21) ...
Processing triggers for mime-support (3.60ubuntu1) ...
Processing triggers for desktop-file-utils (0.23-1ubuntu3) ...
Processing triggers for shared-mime-info (1.8-1) ...
Processing triggers for gnome-menus (3.13.3-6ubuntu5) ...
Processing triggers for hicolor-icon-theme (0.17-1) ...
android@android:~/Downloads$ sudo apt install libpng16-16
Reading package lists... Done
Building dependency tree
Reading state information... Done
libpng16-16 is already the newest version (1.6.34-1).
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
android@android:~/Downloads$ apt search libpng12-0
Sorting... Done
Full Text Search... Done
android@android:~/Downloads$
错误提到
wps
需要libpng12-0
一个无法在您的机器上安装的包。有适用于 trusty (14.04LTS) 和 xenial (16.04LTS) 的 Ubuntu 软件包libpng12-0
,但不适用于 17.10。您必须要求软件制造商(即 WPS)更新程序和/或安装程序以使用最新的libpng16-16
.仅当您在旧版本中配置了存储库时,诸如此类的工具
aptitude
才能找到解决方案,例如降级库。/etc/apt/sources.list
作为一种解决方法,您可以尝试在安装 wps 之前从 Ubuntu 网页
.deb
下载并安装Xenial 的软件包。安装
libpng12
安装
wps
运行
wps
(在 X 或桌面上)libpng12
从 Xenial (16.04LTS)安装软件包是否安全?使用旧发行版中的软件包可能很危险。它可能会破坏
apt
安装系统,因为较旧的软件包可能会引入对不存在的软件包的依赖关系或替换新版本所需的软件包。尝试使用您正在使用的 Ubuntu 版本的软件包和存储库,即官方 Ubuntu 存储库和著名的 PPA 存储库(用于测试它们的软件包)。为了检查安装是否
libpng12
可以破解apt
,我检查了包信息。最新的Ubuntu 版本中包含
libpng12
依赖libc6 (>= 2.14)
和。zlib1g (>= 1:1.1.4)
请注意,没有其他 Ubuntu 软件包需要最新版本,
libpng12
因为它不包含在存储库中。最新的程序依赖于libpng16-16
并且两个库可以共存。apt
.如果您不确定自己在做什么,请不要尝试安装旧发行版的软件包。