libXp.so.6 missing for ubuntu 17.04

mc@mc:~$ sudo apt-get install libXp.so.6
Reading package lists... Done
Building dependency tree       
Reading state information... Done
E: Unable to locate package libXp.so.6
E: Couldn't find any package by glob 'libXp.so.6'
E: Couldn't find any package by regex 'libXp.so.6'
mc@mc:~$ 

and there is no package related to libxp6 for ubuntu 17.04

Asked By: Sachin Shet

||

I haven’t found any library that would support this package for Ubuntu 17.04. However there is a temporal solution that works OK for me:

Download libxp6 package from earlier Ubuntu version:
https://packages.ubuntu.com/trusty/libxp6

Then install it manually using

sudo dpkg -i ./libxp6_1.0.2-1ubuntu1_amd64.deb
sudo apt-get install -f

It seems the package is compatible (enough) with 17.04.

Answered By: AleksMat

Open the software sources config in a text editor with root permission, for example

sudo vim /etc/apt/sources.list

Append this line:

deb http://security.ubuntu.com/ubuntu precise-security main

Then run

sudo apt update
sudo apt install libxp6
Answered By: Rahal

I had this issue when trying to run an old app on Ubuntu 18.04. The workaround that I used was to create a symbolic link named libXp.so.6 pointing to file libXpm.so.4.11.0

Search for the package containing the file pattern libXpm

sudo dpkg -S libXpm
libxpm4:amd64: /usr/lib/x86_64-linux-gnu/libXpm.so.4
libxpm4:amd64: /usr/lib/x86_64-linux-gnu/libXpm.so.4.11.0

Then install the found package – libxpm4 (if not already installed)

sudo apt-get install libxpm4

Create the symbolic link:

cd /usr/lib/x86_64-linux-gnu

ls -l libXp*
lrwxrwxrwx 1 root root    16 Dec 22  2016 libXpm.so.4 -> libXpm.so.4.11.0
-rw-r--r-- 1 root root 72520 Dec 22  2016 libXpm.so.4.11.0

sudo ln -s libXpm.so.4.11.0 libXp.so.6

ls -l libXp*
lrwxrwxrwx 1 root root    16 Dec 22  2016 libXpm.so.4 -> libXpm.so.4.11.0
-rw-r--r-- 1 root root 72520 Dec 22  2016 libXpm.so.4.11.0
lrwxrwxrwx 1 root root    16 Nov  7 18:25 libXp.so.6 -> libXpm.so.4.11.0

If it’s still worth for anybody…

Answered By: Doru Florea

A working solution for installing libXp.so.6:

  1. First provide multiarch support by

    wget http://archive.ubuntu.com/ubuntu/pool/main/g/glibc/multiarch-support_2.27-3ubuntu1.2_amd64.deb
    sudo dpkg -i multiarch-support_2.27-3ubuntu1.2_amd64.deb
    
  2. Proceed to install libXp.so.6

    wget ftp.us.debian.org/debian/pool/main/libx/libxp/libxp6_1.0.2-2_amd64.deb
    sudo dpkg -i libxp6_1.0.2-2_amd64.deb
    

Cheers.

Answered By: vps

For anyone else here for newer versions of Ubuntu, the answers above did not work for me, but I was able to install it on 22.04 using the author’s website:

sudo add-apt-repository ppa:zeehio/libxp
sudo apt update
sudo apt install libxp6
Answered By: dax
Categories: Answers Tags: , , ,
Answers are sorted by their score. The answer accepted by the question owner as the best is marked with
at the top-right corner.