Ubuntu – Packet Tracer 7.3.1 in Ubuntu 20.04 – symbol lookup error

software installation

Initially, I had a problem with Cisco PacketTracer 7.3.1 libraries in Ubuntu 20.04.

Managed to fix it by installing the missing libraries.

sudo apt install libqt5webenginewidgets5 libqt5webenginecore5 libqt5script5 libqt5scripttools5

However, I'm getting another error after that

wolf@linux:/opt/pt/bin$ ./PacketTracer7 
./PacketTracer7: symbol lookup error: ./PacketTracer7: undefined symbol: _ZN16QWebSocketServer19handleTCPConnectionEP10QTcpSocketRK7QString, version Qt_5
wolf@linux:/opt/pt/bin$ 

If you want to try, get it from here. It's free, but registration is required

Best Answer

  • Don't execute it directly. It won't work

    /opt/pt/bin/PacketTracer7
    

    Instead, use the shell script in /opt/pt/

    /opt/pt/packettracer
    

    The path must be correct. Here is the snippet of that code

    $ cat /opt/pt/packettracer 
    #!/bin/bash
    
    echo Starting Packet Tracer 7.3.1
    
    PTDIR=/opt/pt
    export LD_LIBRARY_PATH=/opt/pt/bin
    pushd /opt/pt/bin > /dev/null
    ./PacketTracer7 "$@" > /dev/null 2>&1
    popd > /dev/null
    $