Tuesday, April 13, 2010

Packet Tracer 5.2 font problem

I tried to start the newly installed Packet Tracer 5.2 on my Ubuntu 10.04 LTS beta 2. Unfortunately application fonts were really fucked up. But, there is a fix for that.

- first of all, Packet Tracer runs on its own QT4 libraries, and you don't want that. So, to change that, edit this file "/usr/local/PacketTracer5/packettracer" and comment out this line:

- after that, you have to install whatever QT4 missing packets you have to install this:
apt-get install libqt4-gui
apt-get install libqt4-webkit
apt-get install libqt4-qt3support

if it still doesn't work after all this, just do this:
apt-get install libqt4-dev

Then your Packet Tracer is ready to go and simulate Cisco equipment.
Have fun!


  1. Thanks A lot!

  2. it fixes the font problem for packet tracer 5.3 on ubuntu 10.04 as well and only libqt4-gui, libqt4-webkit andlibqt4-qt3support was necessary. the libqt4-dev wasnt necessary on my system.

  3. Nice to hear it's still working for people. Don't know for sure, but libqt4-dev could have been installed as a dependency, or I don't know. If it works without it, great! :)

  4. Yeah, the libqt4-dev was the trick for my system. Your post was very appreciated! Thanks!

  5. Glad to hear it worked! You're welcome!

  6. If I comment out the line, PacketTracer doesn't start any more... :(

    And if I put it back, after the installs, the problem is still there (ofc).

  7. Hi,
    try to run this in a terminal:


    it should echo your /usr/lib folder. If not, try to do this ..in a terminal, too:

    export LD_LIBRARY_PATH=/usr/lib

    And, if you have 64bit version of ubuntu, try with "lib64" instead of just "lib". And one more thing,..try starting your Packet Tracer from terminal, because you'll see the error messages at startup.

    Have fun!

  8. Hi!,

    when I solve the font problem, I've the next error when I save in PT the file:
    Starting Packet Tracer 5.3
    /usr/local/PacketTracer5/packettracer: línea 9: 21331 Fallo de segmentación ./PacketTracer5 $@ > /dev/null 2>&1

    If I uncomment the line:

    export LD_LIBRARY_PATH=$PTDIR/lib

    I not have an error but the fonts are very ugly... What can I do?.. Any ideas?
    Thank you in advance.

  9. Hi,
    of course if you uncomment the line, it will use its own libraries and when you start PT it will look like shit :)

    If the line is commented, it will load the required files from your /usr/lib or /usr/lib64 folders. First, you should check and see if everything you find in $PTDIR/lib you can also find in /usr/lib or /usr/lib64. If you have them and still doesn't work, try to replace that line with:

    export LD_LIBRARY_PATH=/usr/lib (or /usr/lib64)

    To also see what is the PT error, and not the script line, you can export the variable itself, and run PT directly, not by using the launch script.

  10. Hi!,

    I found the solution!!!... I'm using Ubuntu 10.04 LTS, and these are the steps:

    1.- cp /usr/local/PacketTracer/lib/libQtXml.so.4.4.3 /usr/lib

    2.- cd /usr/lib/

    3.- ln -s libQtXml.so.4.4.3 libQtXml.so.4

    4.- ln -s libQtXml.so.4.4.3 libQtXml.so.4.4

    Then you can execute the PT with correct fonts and without Segmentation fault!.

    Thank you for your help!.

  11. Thanks man, it was very helpful ! Greetings from Bulgaria

  12. It's nice to be helpful. Actually, I've been to Bulgaria many times.. :P Next time, beer is on you!

  13. Hey there!
    Just applied the font-fix for PacketTracer but I've come up another problem:

    when I try to use a Hands-On lab from the CCNA curriculum, the PacketTracer program stops working. If I remove the comment from the "export LD_LIBRARY_PATH=$PTDIR/lib" line, the lab works. Any ideeas?

  14. @Boggy Well, I guess you mean lab files, like .pka files, because when I clicked on a Hands On link, it saved me a .pdf file. Well, I've just tried that now and seems you're right. I've already tried saving the .pka file using its default libs to someplace else and then try to open the .pka file with the newly installed libs, but didn't work. I also tried to save it as a .pkz file, with no luck also...I'll try to strace it to see what can be the problem, but I'm not a programmer though...so...there's lil chance I can come up with something..

  15. @Boggy Hi again, I tried to strace the process, but nothing relevant came up. No errors, no modules, ..nothing.

  16. Hi All,
    I followed the process above but still can not use PacketTracer on my Ubuntu Linux 10.10
    After I comment the line in the packettracer file everything looks fine in the app. However when I load any *.pka file the app slows down absolutely. It loads a file for a few minutes long. After that every click tooks for minutes, so i can not use it.
    Does anybody have any suggestion?

  17. Considering I'm not the programmer type and don't know how can you solve this easily, I'd suggest that, whenever you need to open/load a .pka file from the Curriculum, you should save it on your computer and start Packet Tracer with its own libraries, and of course, fucked up fonts, and whenever you want to build a lab/infrastructure from scratch, use your own libraries.

  18. I Googled "packet tracer on ubuntu looks like shit" and got this. Thanks!

  19. BTPabajo,

    Thanks for the fix to the segfault. Worked like a charm.

    However, I already had libQtXml.so.4 in /usr/lib, and had to overwrite it.

    Thanks again

  20. try this
    apt-get install libqt4-dev

    sudeo gedit /usr/local/PacketTracer5/packettracer

    # export LD_LIBRARY_PATH=$PTDIR/lib

    It is working


  21. the fonts now look great, however, whenever I delete a element (router,etc) packettracer just exits with no notice...

  22. It works For me But when i delete item like(pc, router,swicth) packet tracer close , i use Linux mint katya...

  23. I have the same problem as you all but My ubuntu is 11.10 32bit and my packet tracer is 5.3 version. any idea pls? i'm going crazy of it..... pls help

  24. It's working with Packet Tracer 5.3 in 11.10. I used

    sudo apt-get install libqt4-dev

    and then commented the line. Works like a charm :)