AskOverflow.Dev

AskOverflow.Dev Logo AskOverflow.Dev Logo

AskOverflow.Dev Navigation

  • 主页
  • 系统&网络
  • Ubuntu
  • Unix
  • DBA
  • Computer
  • Coding
  • LangChain

Mobile menu

Close
  • 主页
  • 系统&网络
    • 最新
    • 热门
    • 标签
  • Ubuntu
    • 最新
    • 热门
    • 标签
  • Unix
    • 最新
    • 标签
  • DBA
    • 最新
    • 标签
  • Computer
    • 最新
    • 标签
  • Coding
    • 最新
    • 标签
主页 / ubuntu / 问题 / 966750
Accepted
nazar2sfive
nazar2sfive
Asked: 2017-10-21 05:02:07 +0800 CST2017-10-21 05:02:07 +0800 CST 2017-10-21 05:02:07 +0800 CST

如何在 ubuntu 17.10 上安装 wps-office?[复制]

  • 772
这个问题在这里已经有了答案:
E:包'libpng12-0'没有安装候选[ubuntu 16.10 Gnome] (3个答案)
4年前关闭。
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$
17.10
  • 1 1 个回答
  • 10092 Views

1 个回答

  • Voted
  1. Best Answer
    Jaime
    2017-10-21T05:21:34+08:002017-10-21T05:21:34+08:00

    错误提到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 的软件包。

    1. 安装libpng12

      $ wget http://mirrors.kernel.org/ubuntu/pool/main/libp/libpng/libpng12-0_1.2.54-1ubuntu1_amd64.deb
      $ sudo dpkg -i libpng12-0_1.2.54-1ubuntu1_amd64.deb
      
    2. 安装wps

      $ wget http://kdl1.cache.wps.com/ksodl/download/linux/a21//wps-office_10.1.0.5707~a21_amd64.deb
      $ sudo dpkg -i wps-office_10.1.0.5707~a21_amd64.deb
      
    3. 运行wps(在 X 或桌面上)

      $ wps 
      

    注意:从旧发行版安装软件包可能会破坏您的apt安装系统。


    libpng12从 Xenial (16.04LTS)安装软件包是否安全?

    使用旧发行版中的软件包可能很危险。它可能会破坏apt安装系统,因为较旧的软件包可能会引入对不存在的软件包的依赖关系或替换新版本所需的软件包。尝试使用您正在使用的 Ubuntu 版本的软件包和存储库,即官方 Ubuntu 存储库和著名的 PPA 存储库(用于测试它们的软件包)。

    为了检查安装是否libpng12可以破解apt,我检查了包信息。

    • 最新的Ubuntu 版本中包含libpng12依赖libc6 (>= 2.14)和。zlib1g (>= 1:1.1.4)

      $ apt-cache policy libc6     # gives me 2.24-9ubuntu2.2
      $ apt-cache policy zlib1g    # gives me 1.2.11dfsg-0ubuntu1
      
    • 请注意,没有其他 Ubuntu 软件包需要最新版本,libpng12因为它不包含在存储库中。最新的程序依赖于 libpng16-16并且两个库可以共存。

    • 我认为这个包不太可能破坏apt.

    如果您不确定自己在做什么,请不要尝试安装旧发行版的软件包。

    • 3

相关问题

  • 缺少 Ubuntu-Gnome 每日构建?[复制]

Sidebar

Stats

  • 问题 205573
  • 回答 270741
  • 最佳答案 135370
  • 用户 68524
  • 热门
  • 回答
  • Marko Smith

    如何运行 .sh 脚本?

    • 16 个回答
  • Marko Smith

    如何安装 .tar.gz(或 .tar.bz2)文件?

    • 14 个回答
  • Marko Smith

    如何列出所有已安装的软件包

    • 24 个回答
  • Marko Smith

    无法锁定管理目录 (/var/lib/dpkg/) 是另一个进程在使用它吗?

    • 25 个回答
  • Martin Hope
    Flimm 如何在没有 sudo 的情况下使用 docker? 2014-06-07 00:17:43 +0800 CST
  • Martin Hope
    Ivan 如何列出所有已安装的软件包 2010-12-17 18:08:49 +0800 CST
  • Martin Hope
    La Ode Adam Saputra 无法锁定管理目录 (/var/lib/dpkg/) 是另一个进程在使用它吗? 2010-11-30 18:12:48 +0800 CST
  • Martin Hope
    David Barry 如何从命令行确定目录(文件夹)的总大小? 2010-08-06 10:20:23 +0800 CST
  • Martin Hope
    jfoucher “以下软件包已被保留:”为什么以及如何解决? 2010-08-01 13:59:22 +0800 CST
  • Martin Hope
    David Ashford 如何删除 PPA? 2010-07-30 01:09:42 +0800 CST

热门标签

10.10 10.04 gnome networking server command-line package-management software-recommendation sound xorg

Explore

  • 主页
  • 问题
    • 最新
    • 热门
  • 标签
  • 帮助

Footer

AskOverflow.Dev

关于我们

  • 关于我们
  • 联系我们

Legal Stuff

  • Privacy Policy

Language

  • Pt
  • Server
  • Unix

© 2023 AskOverflow.DEV All Rights Reserve