Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Installation and Deployment
  4. Kali Linux - Could not load the Qt platform plugin, (I need your help).
QtWS25 Last Chance

Kali Linux - Could not load the Qt platform plugin, (I need your help).

Scheduled Pinned Locked Moved Unsolved Installation and Deployment
3 Posts 2 Posters 1.1k Views
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • D Offline
    D Offline
    dnnet7
    wrote on last edited by
    #1

    Hello my dear, I did a step by step installation of "Fern Wifi Cracker in Kali Linux".
    However, when starting "sudo fern-wifi-cracker", it gives the following error:

    qt.qpa.xcb: could not connect to display
    qt.qpa.plugin: Could not load the Qt platform plugin "xcb" in "" even though it was found.
    This application failed to start because no Qt platform plugin could be initialized. Reinstalling the application may fix this problem.

    Available platform plugins are: eglfs, linuxfb, minimal, minimalegl, offscreen, vnc, wayland-egl, wayland, wayland-xcomposite-egl, wayland-xcomposite-glx, xcb.

    Aborted (core dumped)

    Can you help me how to resolve?

    Remembering that I'm using "Kali Linux" from the windows store apps application.

    Thanks.

    SGaistS 1 Reply Last reply
    0
    • D dnnet7

      Hello my dear, I did a step by step installation of "Fern Wifi Cracker in Kali Linux".
      However, when starting "sudo fern-wifi-cracker", it gives the following error:

      qt.qpa.xcb: could not connect to display
      qt.qpa.plugin: Could not load the Qt platform plugin "xcb" in "" even though it was found.
      This application failed to start because no Qt platform plugin could be initialized. Reinstalling the application may fix this problem.

      Available platform plugins are: eglfs, linuxfb, minimal, minimalegl, offscreen, vnc, wayland-egl, wayland, wayland-xcomposite-egl, wayland-xcomposite-glx, xcb.

      Aborted (core dumped)

      Can you help me how to resolve?

      Remembering that I'm using "Kali Linux" from the windows store apps application.

      Thanks.

      SGaistS Offline
      SGaistS Offline
      SGaist
      Lifetime Qt Champion
      wrote on last edited by
      #2

      Hi and welcome to devnet,

      By default, for security purposes, root does not have access to the window server.

      Do you really need to run that application as root ?
      If so, you have to temporarily give the root user access to your user session. You can do that using xhost.

      Interested in AI ? www.idiap.ch
      Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

      D 1 Reply Last reply
      0
      • SGaistS SGaist

        Hi and welcome to devnet,

        By default, for security purposes, root does not have access to the window server.

        Do you really need to run that application as root ?
        If so, you have to temporarily give the root user access to your user session. You can do that using xhost.

        D Offline
        D Offline
        dnnet7
        wrote on last edited by
        #3

        @SGaist said in Kali Linux - Could not load the Qt platform plugin, (I need your help).:

        Hi and welcome to devnet,
        By default, for security purposes, root does not have access to the window server.
        Do you really need to run that application as root ?

        Thank you very much for answering. I will do this.

        1 Reply Last reply
        0

        • Login

        • Login or register to search.
        • First post
          Last post
        0
        • Categories
        • Recent
        • Tags
        • Popular
        • Users
        • Groups
        • Search
        • Get Qt Extensions
        • Unsolved