Gar*_*arp 32 dependencies wps-office libpng
我尝试使用 Gdebi 安装程序在我的笔记本电脑(ubuntu 16.10 Gnome,64 位)上安装 WPS Office,但它说
Dependency is not satisfiable: libpng12-0
Run Code Online (Sandbox Code Playgroud)
然后我尝试打开这个库如下
sudo apt-get install libpng12-0
Run Code Online (Sandbox Code Playgroud)
但是我遇到了一个错误:
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 candidate
Run Code Online (Sandbox Code Playgroud)
任何人都可以帮忙吗?非常感谢
小智 31
您可以libpng12-0
从这里下载软件包:
我有同样的依赖问题。但是下载和安装修复了错误。Ubuntu 16.10 杀死了这些库 jeje。
小智 17
在 ubuntu 中不推荐下载并手动安装软件包,强烈建议使用 aptitude 或 synaptic 等软件包管理器来下载和安装软件包。
要首先在命令行中执行此操作,您必须添加一个存储库。这涉及修改 /etc/apt/sources.list 所以你必须创建一个备份
打开终端窗口
sudo nano /etc/apt/sources.list
Run Code Online (Sandbox Code Playgroud)
在列表顶部添加
#### BACKUP for /etc/apt/sources.list created <insert date here>
Run Code Online (Sandbox Code Playgroud)
按 ctrl+o 将文件保存到新位置。我的主目录中有一个文件夹用于备份,但您可以将它放在任何您记得它存在的地方。对于我的备份文件夹,我将其保存为 /home/USERNAME/os_file_backups/backup_03-06-17_apt-sources.list 按 Enter 键进行保存,它会询问您是否要使用其他名称保存它,然后按 y 保存文件,然后然后ctrl-x退出nano
再次回到sources.list
sudo nano /etc/apt/sources.list
Run Code Online (Sandbox Code Playgroud)
在文件底部添加
#### Manually Added sources
## source for libpng12-0 package
deb http://mirrors.kernel.org/ubuntu/ xenial main
Run Code Online (Sandbox Code Playgroud)
^注意上面,mirrors.kernel.org 是许多可以使用的镜像之一。您可以替换mirrors.kernel.org/ubuntu
为您希望使用的http://packages.ubuntu.com/xenial/amd64/libpng12-0/download中列出的任何镜像
按 ctrl+x 并点击 yes 保存文件
现在更新包列表
sudo apt-get update
Run Code Online (Sandbox Code Playgroud)
并安装包
sudo apt-get install libpng12-0
Run Code Online (Sandbox Code Playgroud)
shazam 您已使用 apt 添加了 libpng-12-0,因此每当您运行 apt-get upgrade 时,您都会获得更新的软件包
归档时间: |
|
查看次数: |
121771 次 |
最近记录: |