Plan du site  
pixel
pixel

Articles - Étudiants SUPINFO

Installing Packet Tracer 7.1 on Ubuntu Linux

Par Rahul THAKOOR Publié le 09/04/2018 à 16:44:03 Noter cet article:
(0 votes)
Avis favorable du comité de lecture

Introduction

Packet Tracer is a network simulation tool provided by Cisco Systems. As of August 2017, Packet Tracer is available freely for Linux, Android, iOS and Windows.[1] As part of the SUPINFO curriculum, we use Packet Tracer in Cisco Networking Courses. This article will demonstrate how to install Packet Tracer 7.1 on Ubuntu Linux and fix issues encountered during installation.

Procedure[2][3]

Downloading the installation file

  1. Get the Packet Tracer 7.1 installation files from Cisco Network Academy (https://www.netacad.com/courses/packet-tracer-download/) . This requires signing up. Afterwards, proceed to the download page (https://www.netacad.com/group/offerings/packet-tracer/).

  2. Extract the contents of the downloaded archive, the contents should be as follows:

    rahul@ccna:~/Downloads/Packet Tracer$ ls
    art          eula.txt    install    set_ptenv.sh  templates
    backgrounds  extensions  languages  set_qtenv.sh  tpl.linguist
    bin          help        lib        Sounds        tpl.packettracer

Installation

  1. Run the install script and you should be presented with the following message:

    Welcome to Cisco Packet Tracer 7.1.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.
    Press the Enter key to read the EULA.
  2. Press Enter then read the End User Language Agreement

            Cisco Packet Tracer
        Software License Agreement
    
    IMPORTANT: PLEASE READ THIS CISCO PACKET TRACER SOFTWARE LICENSE AGREEMENT (THE
    "AGREEMENT") CAREFULLY.  DOWNLOADING, INSTALLING OR USING THE CISCO PACKET 
    TRACER SOFTWARE CONSTITUTES ACCEPTANCE OF THIS AGREEMENT.  IF YOU DO NOT AGREE
    TO ALL OF THE TERMS OF THIS AGREEMENT, THEN CISCO SYSTEMS, INC. ("CISCO") IS 
    UNWILLING TO LICENSE THE SOFTWARE TO YOU AND YOU ARE NOT AUTHORIZED TO 
    DOWNLOAD, INSTALL OR USE THE SOFTWARE.[... truncated]
  3. Accept the EULA agreement to proceed with the installation by entering Y at the prompt:

    Do you accept the terms of the EULA? (Y)es/(N)o
    
    Y
    You have accepted the terms to the EULA. Congratulations. Packet Tracer will now be installed.
    Enter location to install Cisco Packet Tracer or press enter for default [/opt/pt]: 
    Installing into /opt/pt
  4. After successful installation, you are prompted to create a shortcut, either accept/decline depending on your preferences.

    Copied all files successfully to /opt/pt
    
    Should we create a symbolic link "packettracer" in /usr/local/bin for easy Cisco Packet Tracer startup? [Yn] Y
    Type "packettracer" in a terminal to start Cisco Packet Tracer
    Writing PT7HOME environment variable to /etc/profile
    Writing QT_DEVICE_PIXEL_RATIO environment variable to /etc/profile
    
    Cisco Packet Tracer 7.1.1 installed successfully
    Please restart you computer for the Packet Tracer settings to take effect
  5. Unfortunately, after rebooting and running packettracer command, the application does not load on some machines even when presented with the following message:

    Starting Packet Tracer 7.1.1

    This is because some dependencies might be missing on the host operating system, which we will resolve in the following steps.

Troubleshooting[4]

  1. Go to the installation directory. Run the PacketTracer7 application from the bin folder

    cd /opt/pt/bin
    
    ./PacketTracer7 
    ./PacketTracer7: error while loading shared libraries: libQt5WebKitWidgets.so.5: 
    cannot open shared object file: No such file or directory

    In my case, the system is missing the libQt5WebKitWidgets.so.5 shared library and several others(not listed here)

  2. Install common dependencies:

    sudo apt-get install qtmultimedia5-dev libqt5webkit5-dbg libqt5script5 libqt5scripttools5
  3. Find other missing dependencies by using the ldd command:

    rahul@ccna:/opt/pt/bin$ ldd PacketTracer7 
     linux-vdso.so.1 =>  (0x00007ffe935ad000)
     libcrypto.so.1.0.0 => /lib/x86_64-linux-gnu/libcrypto.so.1.0.0 (0x00007f343b40f000)
     libQt5WebKitWidgets.so.5 => /usr/lib/x86_64-linux-gnu/libQt5WebKitWidgets.so.5 (0x00007f343b1ca000)
     libQt5WebKit.so.5 => /usr/lib/x86_64-linux-gnu/libQt5WebKit.so.5 (0x00007f3438ae2000)
     libQt5Multimedia.so.5 => /usr/lib/x86_64-linux-gnu/libQt5Multimedia.so.5 (0x00007f34387cb000)
     libQt5PrintSupport.so.5 => /usr/lib/x86_64-linux-gnu/libQt5PrintSupport.so.5 (0x00007f343855c000)
     libQt5Svg.so.5 => not found
     libQt5Widgets.so.5 => /usr/lib/x86_64-linux-gnu/libQt5Widgets.so.5 (0x00007f3437d18000)
     [... truncated]
    

    For instance, in my case I was still missing the libQt5Svg.so.5 shared library. This can vary based on the operating system. You can quickly find missing dependencies by using the command:

    rahul@ccna:/opt/pt/bin$ ldd PacketTracer7 | grep "not found"
     libQt5Svg.so.5 => not found
  4. Install the missing dependencies by consulting the list below to find which package the missing file belongs to.

    Qt module           dev package                         lib package
    -------------------------------------------------------------------------
    bluetooth           qtconnectivity5-dev                 libqt5bluetooth5
    concurrent          qtbase5-dev                         libqt5concurrent5
    connectivity        qtmobility-dev                      libqtconnectivity1
    contacts            qtmobility-dev                      libqt5contacts5
    core                qtbase5-dev                         libqt5core5a
    dbus                qtbase5-dev                         libqt5dbus5
    designer            qttools5-dev                        libqt5designer5
    designercomponents  qttools5-dev                        libqt5designercomponents5
    feedback            qtmobility-dev                      libqt5feedback5
    gallery             qtmobility-dev                      libqtgallery1
    gui                 qtbase5-dev                         libqt5gui5
    help                qttools5-dev                        libqt5help5
    location            qtmobility-dev                      libqt5location5
    multimedia          qtmultimedia5-dev                   libqt5multimedia5
    multimediakit       qtmobility-dev                      libqtmultimediakit1
    network             qtbase5-dev                         libqt5network5
    nfc                 qtconnectivity5-dev                 libqt5nfc5
    opengl              libqt5opengl5-dev                   libqt5opengl5
    organizer           qtmobility-dev                      libqt5organizer5
    positioning         qtpositioning5-dev                  libqt5positioning5
    printsupport        qtbase5-dev                         libqt5printsupport5
    publishsubscribe    qtmobility-dev                      libqt5publishsubscribe5
    qml                 qtdeclarative5-dev                  libqt5qml5
    quick               qtdeclarative5-dev                  libqt5quick5
    quickparticles      qtdeclarative5-dev                  libqt5quickparticles5
    quicktest           qtdeclarative5-dev                  libqt5quicktest5
    quickwidgets        qtdeclarative5-dev                  libqt5quickwidgets5
    script              qtscript5-dev                       libqt5script5
    scripttools         qtscript5-dev                       libqt5scripttools5
    sensors             qtmobility-dev, libqt5sensors5-dev  libqt5sensors5
    serialport          libqt5serialport5-dev               libqt5serialport5
    serviceframework    qtmobility-dev                      libqt5serviceframework5
    sql                 qtbase5-dev                         libqt5sql5
    svg                 libqt5svg5-dev                      libqt5svg5
    systeminfo          qtmobility-dev                      libqt5systeminfo5
    test                qtbase5-dev                         libqt5test5
    uitools             qttools5-dev                        ?
    versit              qtmobility-dev                      libqtversit1
    webchannel          ?                                   ?
    webkit              libqt5webkit5-dev                   libqt5webkit5
    websockets          libqt5websockets5-dev               libqt5websockets5
    widgets             qtbase5-dev                         libqt5widgets5
    x11extras           libqt5x11extras5-dev                libqt5x11extras5
    xml                 qtbase5-dev                         libqt5xml5
    xmlpatterns         libqt5xmlpatterns5-dev              libqt5xmlpatterns5

    For e.g, to install the above missing library `libQt5Svg.so.5`, I ran:

    sudo apt-get install libqt5svg5
  5. After installing the dependencies on your host operating system, you should be able to run Packet Tracer 7.1 on Ubuntu Linux

    rahul@cisco:/opt/pt/bin$ sudo ./PacketTracer7 
    QFSFileEngine::open: No file name specified
    "INFO  - Qt Version: 5.5.1"
    QFSFileEngine::open: No file name specified
    "INFO  - DPI awareness: enabled via environment variable 'QT_DEVICE_PIXEL_RATIO' set to 'auto'"
    QStandardPaths: XDG_RUNTIME_DIR not set, defaulting to '/tmp/runtime-root'
    QFSFileEngine::open: No file name specified

Conclusion

In this article we successfully installed Packet Tracer 7.1 on Ubuntu Linux by fixing missing dependencies and library issues. Packet Tracer is a useful tool for network simulation and is required as part of the SUPINFO curriculum.

References

  1. Wikipedia. 2018. Packet Tracer. [ONLINE] Available at: https://en.wikipedia.org/wiki/Packet_Tracer. [Accessed 8 April 2018]. Report reference

  2. Riya Wahyudi. (2018). How to Install and Fix Problem when Installing Cisco Packet Tracer 7.1 on Linux Ubuntu 17.10. [Online Video]. 1 April 2018. Available from: https://www.youtube.com/watch?v=iA3OLs0VpP0. [Accessed: 8 April 2018].

  3. SYSNETTECH Solutions. (2018). How to Install Cisco Packet Tracer 7.1.1 on Ubuntu 17.10. [Online Video]. 24 February 2018. Available from: https://www.youtube.com/watch?v=rwGuAbiGPdc. [Accessed: 8 April 2018].

  4. Christos Panoudis. 2017. How to Install Packet Tracer 7.1 in Linux (and resolve any dependency issues!). [ONLINE] Available at: http://www.christospanoudis.com/how-to-install-packet-tracer-7-1-in-linux-and-resolve-any-dependency-issues/. [Accessed 8 April 2018].

A propos de SUPINFO | Contacts & adresses | Enseigner à SUPINFO | Presse | Conditions d'utilisation & Copyright | Respect de la vie privée | Investir
Logo de la société Cisco, partenaire pédagogique de SUPINFO, la Grande École de l'informatique, du numérique et du management Logo de la société IBM, partenaire pédagogique de SUPINFO, la Grande École de l'informatique, du numérique et du management Logo de la société Sun-Oracle, partenaire pédagogique de SUPINFO, la Grande École de l'informatique, du numérique et du management Logo de la société Apple, partenaire pédagogique de SUPINFO, la Grande École de l'informatique, du numérique et du management Logo de la société Sybase, partenaire pédagogique de SUPINFO, la Grande École de l'informatique, du numérique et du management Logo de la société Novell, partenaire pédagogique de SUPINFO, la Grande École de l'informatique, du numérique et du management Logo de la société Intel, partenaire pédagogique de SUPINFO, la Grande École de l'informatique, du numérique et du management Logo de la société Accenture, partenaire pédagogique de SUPINFO, la Grande École de l'informatique, du numérique et du management Logo de la société SAP, partenaire pédagogique de SUPINFO, la Grande École de l'informatique, du numérique et du management Logo de la société Prometric, partenaire pédagogique de SUPINFO, la Grande École de l'informatique, du numérique et du management Logo de la société Toeic, partenaire pédagogique de SUPINFO, la Grande École de l'informatique, du numérique et du management Logo du IT Academy Program par Microsoft, partenaire pédagogique de SUPINFO, la Grande École de l'informatique, du numérique et du management

SUPINFO International University
Ecole d'Informatique - IT School
École Supérieure d'Informatique de Paris, leader en France
La Grande Ecole de l'informatique, du numérique et du management
Fondée en 1965, reconnue par l'État. Titre Bac+5 certifié au niveau I.
SUPINFO International University is globally operated by EDUCINVEST Belgium - Avenue Louise, 534 - 1050 Brussels