Unable to install Kompozer in Ubuntu 16.04

I got the following error message when trying to install Kompozer in Ubuntu 16.04.

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

Please help me to sort out this problem.


Install the same packages you tried to install before except for libidl0. Open the terminal and type:

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-Bit:

     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-Bit:

     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-Bit:

    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-Bit:

    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

Above answer for Ubuntu 16.04 64-bit no longer works. Problem on 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

Solved by:

sudo apt-get -f install
sudo apt-get remove libidl-2-0
sudo dpkg -i libidl0_0.8.14-1_amd64.deb

and then as before.