I need to install lipng12-0 on ubuntu 22.04 to make an old Canon printer work.
On 20.04, I followed the instructions given here : How to correctly install libpng12-0 on the Ubuntu 19.10?
But it seems to no longer work for ubuntu 22.04.
Any ideas to make it work on ubuntu 22.04 ?
72 Answers
Since the PPA does not yet have packages for Jammy, you can manually install the version for Impish.
Open a terminal and enter the following commands one by one. These commands will download the .deb packages from Launchpad, and install them manually.
mkdir libpng
cd libpng
wget
wget
wget
sudo dpkg -i *.deb
sudo apt install -f 1 I am in the same boat as you. I recommend compiling from scratch given the source code in the PPA. Basically, this should do what you want it to do. It installs essential packages to build, makes a source folder, gets the source, extracts the source, configures the build environment, builds the library, installs the library and set up the necessary symlinks in /usr/lib.
sudo apt install build-essential zlib1g-dev
cd
mkdir src
wget
tar Jxfv libpng_1.2.54.orig.tar.xz
cd libpng-1.2.54
./configure
make
sudo make install
sudo ln -s /usr/local/lib/libpng12.so.0.54.0 /usr/lib/libpng12.so
sudo ln -s /usr/local/lib/libpng12.so.0.54.0 /usr/lib/libpng12.so.0Hopefully this helps you get that legacy app running. Good luck!