当我尝试在 Ubuntu 16.04 中安装 Kompozer 时收到以下错误消息。
saraswati@ubuntu:~$ 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 zlib1g
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:i386 libidl-2-0
E: Package 'libidl0' has no installation candidate
请帮我解决这个问题。
答案1
kompozer 是所有当前支持的 Ubuntu 版本中的原生 snap 包。此 snap 包保留了 2010 年的最后一个可用版本的 KompoZer,并允许在现代操作系统上使用 KompoZer。可以使用以下命令从软件应用程序或终端安装 KompoZer:
sudo snap install kompozer
当 Ubuntu 16.04 是受支持的版本时,kompozer snap 软件包不在 Snap Store 中,因此这是在 Ubuntu 16.04 中安装 KompoZer 的方法。除了 libidl0 之外,安装您之前尝试安装的相同软件包。打开终端并输入:
Ubuntu 16.04
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++-5-dev libx11-6 libxft2 libxinerama1 libxrender1 libxt6 zlib1g
32 位:
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_i386.deb wget https://launchpad.net/ubuntu/+archive/primary/+files/libidl0_0.8.14-1_i386.deb sudo apt install ./libidl0_0.8.14-1_i386.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_i386.deb
64 位:
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 sudo apt install ./libidl0_0.8.14-1_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
Ubuntu 18.04-19.04
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-dev libx11-6 libxft2 libxinerama1 libxrender1 libxt6 zlib1g
32 位:
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_i386.deb wget https://launchpad.net/ubuntu/+archive/primary/+files/libidl0_0.8.14-1_i386.deb wget https://launchpad.net/ubuntu/+archive/primary/+files/libpng12-0_1.2.54-1ubuntu1_i386.deb sudo apt install ./libidl0_0.8.14-1_i386.deb sudo apt install ./libpng12-0_1.2.54-1ubuntu1_i386.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_i386.deb
64 位:
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
Ubuntu 19.10-20.04
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++-7-dev 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
wget http://security.ubuntu.com/ubuntu/pool/main/g/glibc/multiarch-support_2.27-3ubuntu1.2_amd64.deb
sudo apt install ./libidl0_0.8.14-1_amd64.deb ./libpng12-0_1.2.54-1ubuntu1_amd64.deb ./kompozer-data_0.8~b3.dfsg.1-0.1ubuntu2_all.deb ./kompozer_0.8~b3.dfsg.1-0.1ubuntu2_amd64.deb ./multiarch-support_2.27-3ubuntu1.2_amd64.deb
答案2
上述针对 Ubuntu 16.04 64 位的解答不再有效。问题出在sudo dpkg -i libidl0_0.8.14-1_amd64.deb
:
john@Laptop:~/Software/Kompozer$ sudo dpkg -i libidl0_0.8.14-1_amd64.deb
[sudo] password for john:
Selecting previously unselected package libidl0:amd64.
(Reading database ... 366612 files and directories currently installed.)
Preparing to unpack libidl0_0.8.14-1_amd64.deb ...
Unpacking libidl0:amd64 (0.8.14-1) ...
Replaced by files in installed package libidl-2-0:amd64 (0.8.14-4) ...
dpkg: dependency problems prevent configuration of libidl0:amd64:
libidl-2-0:amd64 (0.8.14-4) breaks libidl0 (<< 0.8.14-3) and is installed.
Version of libidl0:amd64 to be configured is 0.8.14-1.
dpkg: error processing package libidl0:amd64 (--install):
dependency problems - leaving unconfigured
Errors were encountered while processing:
libidl0:amd64
解决方法:
sudo apt-get -f install
sudo apt-get remove libidl-2-0
sudo dpkg -i libidl0_0.8.14-1_amd64.deb
然后和以前一样。
答案3
我在评论中提到的 16.04 无法正常工作的问题已在 18.04 中得到纠正。但是,在新安装 18.04 时,我现在得到:
john@JohnPC:~/Software/Kompozer$ sudo dpkg -i kompozer_0.8~b3.dfsg.1-0.1ubuntu2_amd64.deb
Selecting previously unselected package kompozer.
(Reading database ... 264748 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) ...
dpkg: dependency problems prevent configuration of kompozer:
kompozer depends on libpango1.0-0 (>= 1.14.0); however:
Package libpango1.0-0 is not installed.
dpkg: error processing package kompozer (--install):
dependency problems - leaving unconfigured
Processing triggers for man-db (2.8.3-2) ...
Processing triggers for gnome-menus (3.13.3-11ubuntu1.1) ...
Processing triggers for desktop-file-utils (0.23-1ubuntu3.18.04.1) ...
Processing triggers for mime-support (3.60ubuntu1) ...
Errors were encountered while processing:
kompozer
此错误通过以下方式纠正:
sudo apt install libpango1.0-0
其次是:
sudo dpkg -i kompozer_0.8~b3.dfsg.1-0.1ubuntu2_amd64.deb
答案4
截至 2020 年 6 月,您可以按照以下步骤在 Ubuntu 16.04 LTS(32 位)上安装 Kompozer:
步骤1
打开终端并输入此命令来安装依赖项:
sudo apt-get install libatk1.0-0 libc6 libcairo2 libfontconfig1 \
libfreetype6 libgdk-pixbuf2.0-0 libglib2.0-0 libgtk2.0-0 libidl-2-0 \
libnspr4 libnss3 libpango1.0-0 libpng12-0 libstdc++6 libx11-6 libxft2 \
libxinerama1 libxrender1 libxt6 zlib1g
第2步
对于 32 位系统:
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_i386.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_i386.deb
对于 64 位系统:
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
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
Kompozer 现在应该已经正确安装!