在一位好心人的建议下,我按照以下建议去做了:标题、链接和终端输出。仍然无法安装 Kompozer。软件更新程序已运行,并报告软件已更新。
Kompozer 安装步骤
这是代码输入的第一行,答复是:并且它显示文件已经完全检索,无需执行任何操作:输入下一行代码后重复此操作:错误稍后出现,请查看。
computer@computer-HP-Compaq-8200-Elite-SFF-PC:~$computer@computer-HP-Compaq-8200-Elite-SFF-PC:~$ wget -c https://launchpad.net/ubuntu/+archive/primary/+files/kompozer-dev_0.8~b3.dfsg.1-0.1ubuntu2_all.deb
--2018-10-03 07:31:10--https://launchpad.net/ubuntu/+archive/primary/+files/kompozer-dev_0.8~b3.dfsg.1-0.1ubuntu2_all.deb
Resolving launchpad.net (launchpad.net)... 91.189.89.222, 91.189.89.223
Connecting to launchpad.net (launchpad.net)|91.189.89.222|:443... connected.
HTTP request sent, awaiting response... 303 See Other
Location: https://launchpadlibrarian.net/102977236/kompozer-dev_0.8~b3.dfsg.1-0.1ubuntu2_all.deb [following]
--2018-10-03 07:31:11-- https://launchpadlibrarian.net/102977236/kompozer-dev_0.8~b3.dfsg.1-0.1ubuntu2_all.deb
Resolving launchpadlibrarian.net (launchpadlibrarian.net)... 91.189.89.229, 91.189.89.228
Connecting to launchpadlibrarian.net (launchpadlibrarian.net)|91.189.89.229|:443... connected.
HTTP request sent, awaiting response... 200 OK
The file is already fully retrieved; nothing to do.
最后两段代码报错,这里是其中之一。
computer@computer-HP-Compaq-8200-Elite-SFF-PC:~$ sudo dpkg -i kompozer*.deb
dpkg: error processing archive kompozer_0.8~b3.dfsg.1-0.1ubuntu2_amd64.deb (--install):
package architecture (amd64) does not match system (i386)
(Reading database ... 213540 files and directories currently installed.)
Preparing to unpack kompozer-data_0.8~b3.dfsg.1-0.1ubuntu2_all.deb ...
Unpacking kompozer-data (1:0.8~b3.dfsg.1-0.1ubuntu2) over (1:0.8~b3.dfsg.1-0.1ubuntu2) ...
Selecting previously unselected package kompozer-dev.
Preparing to unpack kompozer-dev_0.8~b3.dfsg.1-0.1ubuntu2_all.deb ...
Unpacking kompozer-dev (1:0.8~b3.dfsg.1-0.1ubuntu2) ...
Setting up kompozer-data (1:0.8~b3.dfsg.1-0.1ubuntu2) ...
dpkg: dependency problems prevent configuration of kompozer-dev: kompozer-dev depends on kompozer (>= 1:0.8~b3.dfsg.1-0.1ubuntu2).dpkg: error processing package kompozer-dev (--install):dependency problems - leaving unconfigured
Processing triggers for man-db (2.7.5-1) ...Errors were encountered while processing:kompozer_0.8~b3.dfsg.1-0.1ubuntu2_amd64.deb kompozer-dev
我将非常感激您的帮助:我所知道的只是按照我在这里找到的示例进行操作。谢谢(2016 年 10 月 3 日)
下面列出了之前安装 KompoZer 的尝试。上面列出的是 2018 年 10 月 3 日的最新尝试。 尝试按照 askUbuntu 的建议在 18.04.1 和 16.04.4 上安装 KompoZer:首先从 SourceForge 下载并解压 kompozer-0.8b3.lt.gcc4-2-686.tar.gz。现在需要知道如何安装解压的文件。如下: 链接问题答案和不成功的终端输出关于如何在 ubuntu 上下载并安装 kompozer 下载完kompozer后如何在xubuntu上安装 1 个答案 如果您使用 Google 搜索,您首先会找到这个。 无论如何,请看这里。
sudo apt-get install libatk1.0-0 libc6 libcairo2 libfontconfig1 libfreetype6 libgdk-pixbuf2.0-0 libglib2.0-0 libgtk2.0-0 libidl0 libnspr4 libnss3 libpango1.0-0 libpng12-0 libstdc++6 libx11-6 libxft2 libxinerama1 libxrender1 libxt6 zlib
以及不成功的终端输出:
[sudo] password for computer:
Reading package lists... Done
Building dependency tree
Reading state information... Done
Package libidl0 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
However the following packages replace it: libidl-2-0
Package zlib1 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 'libidl0' has no installation candidate
E: Package 'zlib1' has no installation candidate
以下是使用 askUbuntu 的另一个尝试:链接、问题、答案和不成功的终端输出
无法在 Ubuntu 16.04 中安装 Kompozer 为简洁起见,仅显示最后几行代码,前面几行没有返回任何错误,但最后四行出现错误,为简洁起见,仅显示其中一行,可以提供更多 64 位代码:
sudo dpkg -i libidl0_0.8.14-1_amd64.deb
sudo dpkg -i libpng12-0_1.2.54-1ubuntu1_amd64.deb
sudo dpkg -i kompozer-data_0.8~b3.dfsg.1-0.1ubuntu2_all.deb
sudo dpkg -i kompozer_0.8~b3.dfsg.1-0.1ubuntu2_amd64.deb
终端输入/输出 输入第一个 sudo 命令时遇到这些错误
sudo dpkg -i libidl0_0.8.14-1_amd64.deb
dpkg: error processing archive libidl0_0.8.14-1_amd64.deb (--install):
package architecture (amd64) does not match system (i386)
Errors were encountered while processing:
libidl0_0.8.14-1_amd64.deb
确保这是一个 64 位程序和一台 64 位机器:我将不胜感激任何帮助。谢谢
谢谢:我仔细查看了该链接,尽管我看不出如何使用其内容:列出了我看到的每个命令。
sudo dpkg --configure -a
foo@foo:~$ sudo apt-get install -f
dpkg --get-selections | grep hold
sudo aptitude install <packagename>
sudo aptitude -f install <packagename>
sudo apt-get autoremove
我想向你保证,我已经看过每一行:第 3 行到第 5 行对我来说很陌生,我不明白他们如何修复损坏的包裹。谢谢
答案1
看起来您尝试运行如下所示的错误命令:
sudo apt 安装 libx无法在 Ubuntu 3 中安装 Kompozer11-6
而不是运行如下命令:
sudo apt install libx11-6
不知何故,您不小心将字符串粘贴Unable to install Kompozer in Ubuntu 3
到了命令中间,所以让我们从头开始,在 Ubuntu 18.04 中运行以下命令。对于 Ubuntu 16.04,请返回您在问题中提到的相同链接,然后按照说明在 16.04 而不是 18.04 中安装 KompoZer。
sudo apt install libatk1.0-0 libc6 libcairo2 libfontconfig1 libfreetype6 libgdk-pixbuf2.0-0 libglib2.0-0 libgtk2.0-0 libnspr4 libnss3 libpango1.0-0 libstdc++6 libx11-6 libxft2 libxinerama1 libxrender1 libxt6 zlib1g
wget https://launchpad.net/ubuntu/+archive/primary/+files/kompozer-data_0.8%7Eb3.dfsg.1-0.1ubuntu2_all.deb
wget https://launchpad.net/ubuntu/+archive/primary/+files/kompozer_0.8%7Eb3.dfsg.1-0.1ubuntu2_amd64.deb
wget https://launchpad.net/ubuntu/+archive/primary/+files/libidl0_0.8.14-1_amd64.deb
wget https://launchpad.net/ubuntu/+archive/primary/+files/libpng12-0_1.2.54-1ubuntu1_amd64.deb
sudo apt install ./libidl0_0.8.14-1_amd64.deb
sudo apt install ./libpng12-0_1.2.54-1ubuntu1_amd64.deb
sudo apt install ./kompozer-data_0.8~b3.dfsg.1-0.1ubuntu2_all.deb
sudo apt install ./kompozer_0.8~b3.dfsg.1-0.1ubuntu2_amd64.deb
请注意,首先您需要下载 libidl0_0.8.14-1_amd64.deb,wget
然后才能安装它sudo apt-get install ./package.deb
要启动 KompoZer,请打开终端并运行kompozer
。
更新
kompozer 是所有当前支持的 Ubuntu 版本中的原生 snap 包。此 snap 包保留了 2010 年的最后一个可用版本的 KompoZer,并允许在现代操作系统上使用 KompoZer。可以使用以下命令从软件应用程序或终端安装 KompoZer:
sudo snap install kompozer