PacketTracer6 on Ubuntu Trusty

packettracer6 in ubuntu14.04 (or linux mint 17) (x86_64)

[ disclaimer: just a blog post, not a how-to ๐Ÿ™‚ ]

when you are inscribed on a cisco course
you can download PT6 โ€œCisco_Packet_Tracer_6.0.1_for_Linux-Ubuntu_installation.binโ€
for Ubuntu …

I moved it into an isolated directory before executing, but it was not necessary:

$ mkdir pt-install
$ mv Cisco_Packet_Tracer_6.0.1_for_Linux-Ubuntu_installation.bin pt-install

then chmodded and executed with sudo

$ sudo chmod +x Cisco_Packet_Tracer_6.0.1_for_Linux-Ubuntu_installation.bin
$ sudo ./Cisco_Packet_Tracer_6.0.1_for_Linux-Ubuntu_installation.bin

Self extracting archive…
Welcome to Cisco Packet Tracer 6.0.1 Installation
Read the following End User License Agreement “EULA” carefully. You must accept the terms of this EULA to install and use Cisco Packet Tracer 6.0.1.

Press the Enter key to read the EULA.

Do you accept the terms of this EULA? (Y)es/(N)o

Y

You have accepted the terms to the EULA. Cisco Packet Tracer will now be installed.
Attempting to install package now
Selecting previously unselected package packettracer.
(Reading database … 217630 files and directories currently installed.)
Preparing to unpack PacketTracer-6.0.1.i386.deb …
Unpacking packettracer (6.0.1) …
Setting up packettracer (6.0.1) …
Installed files. Please wait for post-install operations to finish..
/usr/local/PacketTracer6/registerPktsGnome: line 7: gtk-update-icon-cache: command not found
Writing PT6HOME environment variable to /etc/profile
Processing triggers for desktop-file-utils (0.22-1ubuntu1) …
Processing triggers for mime-support (3.54ubuntu1) …
Processing triggers for gnome-icon-theme (3.10.0-0ubuntu2) …

Trying to launch from terminal:

$ cd /usr/local/PacketTracer6/bin
$ ./PacketTracer6

./PacketTracer6: error while loading shared libraries: libQtScriptTools.so.4: cannot open shared object file: No such file or directory

Checking the failing dependencies:

$ ldd ./PacketTracer6 | grep not

libQtScriptTools.so.4 => not found
libQt3Support.so.4 => not found

Installing the first dependency:

$ sudo apt-get install qtscript-tools:i386

Reading package lists… Done
Building dependency tree
Reading state information… Done
The following extra packages will be installed:
libqt4-scripttools:i386
Suggested packages:
libqtscript4-doc:i386
Recommended packages:
libqtscript4-qtbindings:i386

Checking the failing dependencies again:

$ ldd ./PacketTracer6 | grep not

libQt3Support.so.4 => not found

So I tried the same as before … and went to install libqt3support4-perl:i386 (incorrectly identifying the package containing the lib)

but then dependency hell broke loose …

so I did what was suggested by DedunuDhananjaya on
http://www.dedunu.info/2013/12/installingciscopackettracer-601-on.html

$ sudo dpkg –add-architecture i386

$ sudo apt-get install libnss3-1d:i386 libqt4-qt3support:i386 libssl1.0.0:i386 libqtwebkit4:i386 libqt4-scripttools:i386

Reading package lists… Done
Building dependency tree
Reading state information… Done
libqt4-scripttools:i386 is already the newest version.
libqtwebkit4:i386 is already the newest version.
libssl1.0.0:i386 is already the newest version.
The following NEW packages will be installed:
libnspr4:i386 libnss3:i386 libnss3-1d:i386 libqt4-designer:i386
libqt4-qt3support:i386

Setting up libnspr4:i386 (2:4.10.2-1ubuntu1.1) …
Setting up libnss3:i386 (2:3.15.4-1ubuntu7) …
Setting up libqt4-designer:i386 (4:4.8.5+git192-g085f851+dfsg-2ubuntu4) …
Setting up libqt4-qt3support:i386 (4:4.8.5+git192-g085f851+dfsg-2ubuntu4) …
Setting up libnss3-1d:i386 (2:3.15.4-1ubuntu7) …
Processing triggers for libc-bin (2.19-0ubuntu6) …

Apparently I first misidentified the packet to be installed when using aptitude search for libqt3support4. The packet marked in red might have been the only one necessary.

And yes !!!

finally all dependencies have been met !!!

I made a launcher containing: /usr/local/PacketTracer6/bin/PacketTracer6
and here is the result …

Screenshot

Of course, I should have reverse looked up the library with dpkg -S

$ dpkg -S libQt3Support.so.4
libqt4-qt3support: /usr/lib/i386-linux-gnu/libQt3Support.so.4
libqt4-qt3support: /usr/lib/i386-linux-gnu/libQt3Support.so.4.8.1
libqt4-qt3support: /usr/lib/i386-linux-gnu/libQt3Support.so.4.8

But then, we are not always smart enough to find the easiest road to a destination.

Advertisements