我不是一个有经验的用户,所以请容忍我。我一直试图安装Kompozer从两个不同的来源,但没有一个工作。
首先,我从这里下载了一个.deb文件(https://download.cnet.com/KompoZer-for-Debian-and-Ubuntu/3000-10247_4-75219243.html),但是我的包安装程序无法安装它。dpkg命令也不起作用。当我运行sudo /home/jesus/Downloads/kompozer_0.8_b3.dfsg.1-0.1ubuntu2_amd64.deb,时,会得到以下内容:
(Reading database ... 255283 files and directories currently installed.)
Preparing to unpack .../kompozer_0.8_b3.dfsg.1-0.1ubuntu2_amd64.deb ...
Unpacking kompozer (1:0.8~b3.dfsg.1-0.1ubuntu2) over (1:0.8~b3.dfsg.1-0.1ubuntu2) ...
dpkg: dependency problems prevent configuration of kompozer:
kompozer depends on libpng12-0 (>= 1.2.13-4); however:
Package libpng12-0:amd64 is not installed.
dpkg: error processing package kompozer (--install):
dependency problems - leaving unconfigured
Processing triggers for man-db (2.8.5-2) ...
Processing triggers for gnome-menus (3.32.0-1ubuntu1) ...
Processing triggers for desktop-file-utils (0.23-4ubuntu1) ...
Processing triggers for bamfdaemon (0.5.3+18.04.20180207.2-0ubuntu1) ...
Rebuilding /usr/share/applications/bamf-2.index...
Processing triggers for mime-support (3.60ubuntu1) ...
Errors were encountered while processing:
kompozer我试图从(https://packages.ubuntu.com/xenial/amd64/libpng12-0/download)安装libpng12-0;但是,我遇到了另一个问题:
(Reading database ... 255283 files and directories currently installed.)
Preparing to unpack .../libpng12-0_1.2.54-1ubuntu1.1_amd64.deb ...
Unpacking libpng12-0:amd64 (1.2.54-1ubuntu1.1) ...
dpkg: error processing archive /home/jesus/Downloads/libpng12-0_1.2.54-1ubuntu1.1_amd64.deb (--install):
unable to install new version of '/lib/x86_64-linux-gnu/libpng12.so.0': No such file or directory
Processing triggers for libc-bin (2.29-0ubuntu2) ...
Errors were encountered while processing:
/home/jesus/Downloads/libpng12-0_1.2.54-1ubuntu1.1_amd64.deb然后,我尝试了这个PPA (https://launchpad.net/~giuseppe-iuculano/+archive/ubuntu/ppa),但也失败了。当我输入"sudo apt install kompozer“时,我得到以下内容:
Reading package lists... Done
Building dependency tree
Reading state information... Done
kompozer is already the newest version (1:0.8~b3.dfsg.1-0.1ubuntu2).
You might want to run 'apt --fix-broken install' to correct these.
The following packages have unmet dependencies:
kompozer : Depends: libpng12-0 (>= 1.2.13-4) but it is not installable
E: Unmet dependencies. Try 'apt --fix-broken install' with no packages (or specify a solution).我在这个网站上看到了一些关于Kompozer安装类似问题的人的答案,但是他们并没有为我工作。
有什么想法吗?谢谢。
发布于 2019-07-16 23:12:59
当您使用dpkg安装软件包时,它只是在满足所有要求时安装此软件包。它不考虑如何安装特定包可能需要的那些依赖项。因此,有一种方法(很难)是确保您想要的软件包还需要哪些包,并先下载它们。
更简单的方法是像以前那样,然后运行一个命令(正如输出中所建议的那样):
sudo apt --fix-broken install 不管怎么说,你的输出也写着:
kompozer is already the newest version (1:0.8~b3.dfsg.1-0.1ubuntu2)我不知道,这是真正的最新版本(和您需要的版本),但它似乎已经安装了。如果您尝试从多个来源,可能仍然有一些问题,运行命令从上面应该修复这个(大多数时候)。
你塞住了fix-broken也帮不上忙。因此,我的解决方案是将kompozer从系统中完全删除,比如:
sudo apt purge kompozer然后尝试安装它已经从回购:
sudo apt install kompozer在仔细观察Kompozer之后,我必须知道:这个软件太老了,很难在这样的新系统上运行,它依赖于Ubuntu12.04或更高版本的库。也许用更老的Ubuntu运行它更简单?
https://askubuntu.com/questions/1158787
复制相似问题