Packet tracer

So i tried installing packet tracer for school, but when i start it from terminal in says:
Starting Packet Tracer 8.2.1

Fatal: This application failed to start because no Qt platform plugin could be initialized. Reinstalling the application may fix this problem.

Available platform plugins are: linuxfb, xcb.

/usr/bin/packettracer línia 8: 30307 Avortat                 (s'ha bolcat la memòria)./PacketTracer "$@"

I’ve searched about linuxfb and xcb, but i found nothing to resolve the problem

garuda-inxi
System:
  Kernel: 6.6.3-zen1-1-zen arch: x86_64 bits: 64 compiler: gcc v: 13.2.1
    clocksource: tsc available: acpi_pm
    parameters: BOOT_IMAGE=/@/boot/vmlinuz-linux-zen
    root=UUID=9a32edc4-ec1a-4a8b-aea5-f9d1c3bcfc11 rw rootflags=subvol=@
    quiet loglevel=3 ibt=off
  Desktop: sway v: 1.8.1 info: waybar vt: 1 dm: greetd Distro: Garuda Linux
    base: Arch Linux
Machine:
  Type: Laptop System: Micro-Star product: Prestige 16 A12UD v: REV:1.0
    serial: <superuser required> Chassis: type: 10 serial: <superuser required>
  Mobo: Micro-Star model: MS-1592 v: REV:1.0 serial: <superuser required>
    UEFI: American Megatrends LLC. v: E1592IMS.10D date: 03/29/2023
Battery:
  ID-1: BAT1 charge: 51.5 Wh (70.5%) condition: 73.0/80.3 Wh (90.9%)
    volts: 16.7 min: 15.2 model: MSI BIF0_9 type: Li-ion serial: N/A
    status: charging
CPU:
  Info: model: 12th Gen Intel Core i7-1280P bits: 64 type: MST AMCP
    arch: Alder Lake level: v3 note: check built: 2021+
    process: Intel 7 (10nm ESF) family: 6 model-id: 0x9A (154) stepping: 3
    microcode: 0x430
  Topology: cpus: 1x cores: 14 mt: 6 tpc: 2 st: 8 threads: 20 smt: enabled
    cache: L1: 1.2 MiB desc: d-8x32 KiB, 6x48 KiB; i-6x32 KiB, 8x64 KiB
    L2: 11.5 MiB desc: 6x1.2 MiB, 2x2 MiB L3: 24 MiB desc: 1x24 MiB
  Speed (MHz): avg: 413 high: 500 min/max: 400/4700:4800:3600 scaling:
    driver: intel_pstate governor: powersave cores: 1: 400 2: 400 3: 400 4: 400
    5: 497 6: 400 7: 500 8: 400 9: 400 10: 400 11: 479 12: 400 13: 400 14: 400
    15: 400 16: 400 17: 400 18: 400 19: 400 20: 400 bogomips: 79872
  Flags: avx avx2 ht lm nx pae sse sse2 sse3 sse4_1 sse4_2 ssse3 vmx
  Vulnerabilities: <filter>
Graphics:
  Device-1: Intel Alder Lake-P GT2 [Iris Xe Graphics] vendor: Micro-Star MSI
    driver: i915 v: kernel arch: Gen-12.2 process: Intel 10nm built: 2021-22+
    ports: active: eDP-1 empty: DP-1,DP-2,HDMI-A-1 bus-ID: 00:02.0
    chip-ID: 8086:46a6 class-ID: 0300
  Device-2: NVIDIA GA107M [GeForce RTX 3050 Ti Mobile]
    vendor: Micro-Star MSI driver: nouveau v: kernel non-free: 545.xx+
    status: current (as of 2023-10; EOL~2026-12-xx) arch: Ampere code: GAxxx
    process: TSMC n7 (7nm) built: 2020-2023 pcie: gen: 4 speed: 16 GT/s
    lanes: 4 link-max: lanes: 16 bus-ID: 01:00.0 chip-ID: 10de:25a0
    class-ID: 0302
  Display: wayland server: Xwayland v: 23.2.2 compositor: sway v: 1.8.1
    driver: gpu: i915 display-ID: 1
  Monitor-1: eDP-1 model: AU Optronics 0xdb95 built: 2021 res: 2560x1600
    hz: 165 dpi: 189 gamma: 1.2 scale: 1.29999995231628
    size: 344x215mm (13.54x8.46") diag: 406mm (16") ratio: 16:10
    modes: 2560x1600
  API: Vulkan v: 1.3.269 layers: 3 device: 0 type: integrated-gpu name: Intel
    Graphics (ADL GT2) driver: mesa intel v: 23.2.1-arch1.2
    device-ID: 8086:46a6 surfaces: xcb,xlib,wayland device: 1 type: cpu
    name: llvmpipe (LLVM 16.0.6 256 bits) driver: mesa llvmpipe
    v: 23.2.1-arch1.2 (LLVM 16.0.6) device-ID: 10005:0000
    surfaces: xcb,xlib,wayland
  API: EGL Message: EGL data requires eglinfo. Check --recommends.
Audio:
  Device-1: Intel Alder Lake PCH-P High Definition Audio
    vendor: Micro-Star MSI driver: sof-audio-pci-intel-tgl
    alternate: snd_hda_intel,snd_sof_pci_intel_tgl bus-ID: 00:1f.3
    chip-ID: 8086:51c8 class-ID: 0401
  API: ALSA v: k6.6.3-zen1-1-zen status: kernel-api tools: N/A
  Server-1: sndiod v: N/A status: off tools: aucat,midicat,sndioctl
  Server-2: PipeWire v: 1.0.0 status: active with: 1: pipewire-pulse
    status: active 2: wireplumber status: active 3: pipewire-alsa type: plugin
    4: pw-jack type: plugin tools: pactl,pw-cat,pw-cli,wpctl
Network:
  Device-1: Intel Alder Lake-P PCH CNVi WiFi vendor: Rivet Networks
    driver: iwlwifi v: kernel bus-ID: 00:14.3 chip-ID: 8086:51f0 class-ID: 0280
  IF: wlo1 state: down mac: <filter>
  Device-2: Realtek RTL8153 Gigabit Ethernet Adapter driver: r8152 type: USB
    rev: 3.2 speed: 5 Gb/s lanes: 1 mode: 3.2 gen-1x1 bus-ID: 4-2.4:3
    chip-ID: 0bda:8153 class-ID: 0000 serial: <filter>
  IF: enp0s20f0u2u4 state: up speed: 100 Mbps duplex: full mac: <filter>
Bluetooth:
  Device-1: Intel AX211 Bluetooth driver: btusb v: 0.8 type: USB rev: 2.0
    speed: 12 Mb/s lanes: 1 mode: 1.1 bus-ID: 3-10:5 chip-ID: 8087:0033
    class-ID: e001
  Report: btmgmt ID: hci0 rfk-id: 0 state: up address: <filter> bt-v: 5.3
    lmp-v: 12 status: discoverable: no pairing: no class-ID: 7c010c
Drives:
  Local Storage: total: 953.87 GiB used: 14.55 GiB (1.5%)
  SMART Message: Required tool smartctl not installed. Check --recommends
  ID-1: /dev/nvme0n1 maj-min: 259:0 vendor: Samsung
    model: MZVL21T0HCLR-00B00 size: 953.87 GiB block-size: physical: 512 B
    logical: 512 B speed: 63.2 Gb/s lanes: 4 tech: SSD serial: <filter>
    fw-rev: GXA7601Q temp: 34.9 C scheme: GPT
Partition:
  ID-1: / raw-size: 75.71 GiB size: 75.71 GiB (100.00%)
    used: 14.52 GiB (19.2%) fs: btrfs dev: /dev/nvme0n1p5 maj-min: 259:5
  ID-2: /boot/efi raw-size: 100 MiB size: 96 MiB (96.00%)
    used: 30.7 MiB (32.0%) fs: vfat dev: /dev/nvme0n1p1 maj-min: 259:1
  ID-3: /home raw-size: 75.71 GiB size: 75.71 GiB (100.00%)
    used: 14.52 GiB (19.2%) fs: btrfs dev: /dev/nvme0n1p5 maj-min: 259:5
  ID-4: /var/log raw-size: 75.71 GiB size: 75.71 GiB (100.00%)
    used: 14.52 GiB (19.2%) fs: btrfs dev: /dev/nvme0n1p5 maj-min: 259:5
  ID-5: /var/tmp raw-size: 75.71 GiB size: 75.71 GiB (100.00%)
    used: 14.52 GiB (19.2%) fs: btrfs dev: /dev/nvme0n1p5 maj-min: 259:5
Swap:
  Kernel: swappiness: 133 (default 60) cache-pressure: 100 (default) zswap: no
  ID-1: swap-1 type: zram size: 15.32 GiB used: 0 KiB (0.0%) priority: 100
    comp: zstd avail: lzo,lzo-rle,lz4,lz4hc,842 max-streams: 20 dev: /dev/zram0
Sensors:
  Src: /sys System Temperatures: cpu: 30.0 C mobo: N/A
  Fan Speeds (rpm): N/A
Info:
  Processes: 457 Uptime: 1h 24m wakeups: 0 Memory: total: 16 GiB note: est.
  available: 15.32 GiB used: 4.8 GiB (31.3%) Init: systemd v: 254
  default: graphical tool: systemctl Compilers: gcc: 13.2.1 Packages:
  pm: pacman pkgs: 1297 libs: 405 tools: paru Shell: fish v: 3.6.1
  running-in: alacritty inxi: 3.3.31
Garuda (2.6.19-2):
  System install date:     2023-12-01
  Last full system update: 2023-12-04 ↻
  Is partially upgraded:   No
  Relevant software:       snapper NetworkManager dracut
  Windows dual boot:       Probably (Run as root to verify)
  Failed units:

means there is a pending reboot. Try seeing if the issue persists after a reboot.

1 Like

If still not working, try launching from terminal with

packettracer -platform xcb

It opens and says this:

Starting Packet Tracer 8.2.1
Qt WebEngine resources not found at /opt/packettracer/bin/resources. Trying parent directory...
Installed Qt WebEngine locales directory not found at location /opt/packettracer/bin/translations/qtwebengine_locales. Trying application directory...
Qt WebEngine resources not found at /opt/packettracer/bin/resources. Trying parent directory...
Installed Qt WebEngine locales directory not found at location /opt/packettracer/bin/translations/qtwebengine_locales. Trying application directory...
Fatal: This application failed to start because no Qt platform plugin could be initialized. Reinstalling the application may fix this problem.

Available platform plugins are: linuxfb, xcb.

Fatal: This application failed to start because no Qt platform plugin could be initialized. Reinstalling the application may fix this problem.

Is there a way to install linuxfb and xcb so the app can be opened normally

Looks like it fails to find the Qt plugin for wayland, which depending on the Qt version used by Packet Tracer (5 I guess), is provided by either qt-wayland or qt6-wayland.

I recall having this problem in the past but forgot the details.
I have a line in my history where I run a program with

QT_QPA_PLATFORM_PLUGIN_PATH=/usr/lib/qt/plugins/platforms COMMAND

I can’t remember if that worked though.

Online I see advised

QT_PLUGIN_PATH=/usr/lib/qt/plugins

instead.

Give both a try, it won’t hurt.
It’s /usr/lib/qt6/... in case it’s Qt 6.

QT_QPA_PLATFORM=wayland

should be already set by default.

/usr/lib/qt/plugins/platforms (on my computer)
.rwxr-xr-x  18k root 25 nov 14:08  libqeglfs.so
.rwxr-xr-x 449k root 25 nov 14:08  libqlinuxfb.so
.rwxr-xr-x 141k root 25 nov 14:08  libqminimal.so
.rwxr-xr-x 166k root 25 nov 14:08  libqminimalegl.so
.rwxr-xr-x 174k root 25 nov 14:08  libqoffscreen.so
.rwxr-xr-x 244k root 25 nov 14:08  libqvnc.so
.rwxr-xr-x  68k root 24 ott 11:36  libqwayland-egl.so
.rwxr-xr-x  18k root 24 ott 11:36  libqwayland-generic.so
.rwxr-xr-x  72k root 24 ott 11:36  libqwayland-xcomposite-egl.so
.rwxr-xr-x  51k root 24 ott 11:36  libqwayland-xcomposite-glx.so
.rwxr-xr-x  18k root 25 nov 14:08  libqxcb.so
1 Like

I’ve this in /usr/lib/qt/plugins/platforms:

.rwxr-xr-x  18k root 25 nov 14:08  libqeglfs.so
.rwxr-xr-x 449k root 25 nov 14:08  libqlinuxfb.so
.rwxr-xr-x 141k root 25 nov 14:08  libqminimal.so
.rwxr-xr-x 166k root 25 nov 14:08  libqminimalegl.so
.rwxr-xr-x 174k root 25 nov 14:08  libqoffscreen.so
.rwxr-xr-x 244k root 25 nov 14:08  libqvnc.so
.rwxr-xr-x  68k root 24 oct 11:36  libqwayland-egl.so
.rwxr-xr-x  18k root 24 oct 11:36  libqwayland-generic.so
.rwxr-xr-x  72k root 24 oct 11:36  libqwayland-xcomposite-egl.so
.rwxr-xr-x  51k root 24 oct 11:36  libqwayland-xcomposite-glx.so
.rwxr-xr-x  18k root 25 nov 14:08  libqxcb.so

And I’ve this in /usr/lib/qt6/plugins/platforms:

.rwxr-xr-x  19k root 27 nov 08:51  libqeglfs.so
.rwxr-xr-x 373k root 27 nov 08:51  libqlinuxfb.so
.rwxr-xr-x  31k root 27 nov 08:51  libqminimal.so
.rwxr-xr-x  43k root 27 nov 08:51  libqminimalegl.so
.rwxr-xr-x 109k root 27 nov 08:51  libqoffscreen.so
.rwxr-xr-x 233k root 27 nov 08:51  libqvkkhrdisplay.so
.rwxr-xr-x 110k root 27 nov 08:51  libqvnc.so
.rwxr-xr-x  23k root 27 nov 17:34  libqwayland-egl.so
.rwxr-xr-x  19k root 27 nov 17:34  libqwayland-generic.so
.rwxr-xr-x  19k root 27 nov 08:51  libqxcb.so

OK so the files are there (would have surprised me otherwise), did any of those two variables work?

edit: note the VARIABLE=VALUE command syntax, it runs command with that variable temporarily set.

They don’t work

 ╭─confusedyeti@confusedyeti in /usr/lib/qt6/plugins/platforms🔒 as 🧙 took 10ms
 ╰─λ QT_QPA_PLATFORM_PLUGIN_PATH=/usr/lib/qt/plugins/platforms
fish: Unsupported use of '='. In fish, please use 'set QT_QPA_PLATFORM_PLUGIN_PATH /usr/lib/qt/plugins/platforms'.


 ╭─confusedyeti@confusedyeti in /usr/lib/qt6/plugins/platforms🔒 as 🧙 took 10ms
[🔴] × set QT_QPA_PLATFORM_PLUGIN_PATH /usr/lib/qt/plugins/platforms

See “edit:” above, not just VARIABLE=VALUE then command, but all in one line.

QT_QPA_PLATFORM_PLUGIN_PATH=/usr/lib/qt/plugins/platforms COMMAND,

what do I need to wrtie instead of command?

packettracer?
Anyway, the second line I did not notice before, that is OK too.
Just run it, you did set the variable in that shell session.

QT_QPA_PLATFORM_PLUGIN_PATH=/usr/lib/qt/plugins/platforms packettracer
Starting Packet Tracer 8.2.1
Qt WebEngine resources not found at /opt/packettracer/bin/resources. Trying parent directory...
Installed Qt WebEngine locales directory not found at location /opt/packettracer/bin/translations/qtwebengine_locales. Trying application directory...

That’s all the error message?
So it now found the Qt plugin, but still fails to find its own resources (and locales, but that’s not a show stopper)?

It didn’t a pear any new line but it does not stop

I mean, no more

Fatal: This application failed to start because no Qt platform plugin could be initialized. Reinstalling the application may fix this problem.

?

No, this error does not appear anymore

Good.
How is packettracer installed? AUR package or direct download from Cisco or?

I followed the aur, git clone it, go to packet tracer page, download .deb put it into the directory i just clonet and then makepkg -i

1 Like

Ah, my sight is not good.
It’s not “its own resources”, it’s still something Qt it cannot find.
Give me a minute.


Is qt5-webengine installed?
Nevermind, it’s in the PKGBUILD dependencies… must be something else.

Yes and I’ve reinstall it