How to install Packet Tracert on Linux (debian derivate) — libpng12.so.0

N0obit4
2 min readFeb 27, 2021

To know…

To install packet tracert you need some libraries that not are on Ubuntu repository and other that are it.

After download and install packet,tracert the machine should be reload.

The libraries that you need are:

libqt5webkit5, libqt5multimediawidgets5, libqt5svg5 libqt5script5, libqt5scripttools5, libqt5sql5 and libpng12.so.0

Libraries installation

sudo apt update && sudo apt install libqt5webkit5 libqt5multimediawidgets5 libqt5svg5 libqt5script5 libqt5scripttools5 libqt5sql5

The library that give problem to you is libpng12.so.0

You can download this library here or executing the following command

URL=’ftp.us.debian.org/debian/pool/main/libp/libpng/libpng12-0_1.2.50-2+deb8u3_amd64.deb' && wget $URL

After download the previous library we need install it…Execute the following command.


sudo dpkg --install libpng12-0_1.2.50-2+deb8u3_amd64.deb

Run Packet Tracert

After download the libraries Let’s go to the path that we have install our packet tracert, in my case is /opt/pt and go to the bin directory.

Execute the PacketTracer7 binary file

Error to execute — libpng12.so.0

The tipically error when someone try installing packet tracert on linux is:

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

We have some ways to solve this error, the more common is the configuration file /opt/pt/packettracer. This have a path libs and the libpng12.so.0 is in other directory.

export LD_LIBRARY_PATH=/opt/pt/bin

This declaration is the problem that i say, you need move the libpng12.so.0 to the indicate path.

Follow me in twitter: https://twitter.com/n0obit4
Look at my github: https://github.com/n0obit4/

--

--

N0obit4

Other Security Research passionate about technology and new challenges in life in cyberspace. :(){ :|:& };: