Search code examples
libpngkali-linux

unable to install libpng12-0 on kali


I am using the latest version of Kali. I installed the Cisco Packet Tracer version 7.2. I ran it I got this error

./PacketTracer7: error while loading shared libraries: libpng12.so.0: cannot open shared object file: No such file or directory

Now I am going to install libpng12

but I get this error

(Reading database ... 485972 files and directories currently installed.) Preparing to unpack libpng12-0_1.2.50-2+deb8u3_amd64.deb ... Unpacking libpng12-0:amd64 (1.2.50-2+deb8u3) ... dpkg: error processing archive libpng12-0_1.2.50-2+deb8u3_amd64.deb (--install): unable to install new version of '/usr/lib/x86_64-linux-gnu/libpng12.so.0': No such file or directory Errors were encountered while processing: libpng12-0_1.2.50-2+deb8u3_amd64.deb

I am using Debian sources list

https://packages.debian.org/jessie/amd64/libpng12-0/download


Solution

  • I have been through the same problem a solution I found was to :

    1-Extract the content of the debian package mkdir out; dpkg -x libpng12-0_1.2.50-2+deb8u3_amd64.deb ./out

    2-Copy the file libpng12.so.0 to your Packet tracer's installation directory inside the .../pt/bin folder like this:

    cp ./out/lib/x86_64-linux-gnu/libpng12.so.0 /opt/packettracer/bin/