QXcbConnection: Could not connect to display Aborted, when installing QT on linux

qxcbconnection: could not connect to display pdfkit
phantomjs qxcbconnection: could not connect to display
wkhtmltopdf exited with non zero code error qxcbconnection: could not connect to display
could not load the qt platform plugin "xcb"
qxcbconnection: could not connect to display rstudio
ssh cannot open display
xprop: unable to open display
xhost unable to open display ubuntu

I am trying to install Qt on a Linux machine remotely from a Windows machine using PuTTY. When I run the command to install Qt on Linux I get the following error:

~/QT#  ./qt-unified-linux-x64-2.0.4-online.run
QXcbConnection: Could not connect to display
Aborted

Please suggest any workaround.

QXcbConnection: Could not connect to display, I always get following message and then the application aborts: QXcbConnection​: Could not connect to display Process killed by signal. I am trying to install Qt on a Linux machine remotely from a Windows machine using PuTTY. When I run the command to install Qt on Linux I get the following error: ~/QT# ./qt-unified-linux-x64-2.0.4-online.run QXcbConnection: Could not connect to display Aborted Please suggest any workaround.

refer to here: https://community.nxp.com/message/532966 maybe use the cmd "export DISPLAY=:0" and it works

Not Able to instal Qt5 on my linux · Issue #1132 · Studio3T , QXcbConnection: Could not connect to display. Aborted (core dumped) Next step might be finding a way to install Qt on command line. In the last week, CloudCompare has suddenly stopped launching. When trying to launch via desktop icon, nothing happens. When trying to launch via commandline (e.g. $ cloudcompare.CloudCompare) nothing happens and I get the following error: QXcbConnection: Could not connect to display :0 Aborted (core dumped)

I've written a little CLI version of the Qt Installer, using it should fix the problem. You can get it here.

It depends on p7zip-full, python3-requests and wget. Then just clone the git repo or download the single file from gitlab, make it executable and you can install Qt in the current directory by executing:

./qli-installer.py 5.11.3 linux desktop

On Mac OS X you might want to try:

./qli-installer.py 5.11.3 mac desktop

and also Qt for Windows, Android and iOS are working (more details in the README).

wkhtmltopdf - QXcbConnection: Could not connect to display, wkhtmltopdf - QXcbConnection: Could not connect to display · linux debian. How to run wkhtmltopdf headless?! Installation on Debian Whezzy apt-get install  On a remote VPS --> " qt.qpa.screen: QXcbConnection: Could not connect to display " mileszs/wicked_pdf#723 Closed siphiuel mentioned this issue Mar 6, 2018

Installation issue with Qt xcb​ ​- The Cambridge Crystallographic , I have successfully installed the linux version of CCDC 2019, with the Python API, on the run_csd_python_api: line 4: 2116 Aborted (core dumped) python qt.​qpa.screen: QXcbConnection: Could not connect to display mkdir: cannot create directory '/run/user/0': Permission denied QXcbConnection: Could not connect to display :0 Having looked around Github, here and various other forums, this seems to be a problem that people have encountered with other programs that use Qt and/or OpenGL (see 1 , 2 , 3 ).

Qt FATAL: QXcbConnection: Could not connect to display Aborted , QXcbConnection: Could not connect to display Aborted, when installing QT on I am trying to install Qt on a Linux machine remotely from a Windows machine  After installation you’ll need to set the DISPLAY environment variable to point at the X server already running on your system. First run the following command in the Bash environment to set the DISPLAY variable: export DISPLAY=:0 and then run your graphical application. In this case. suplane | suximage title="My first test" &

Bug - QXcbConnection: Could not connect to display, Qt FATAL: QXcbConnection: Could not connect to display Aborted (core I installed virtualbox in Ubuntu 16.04 Server Core I want to execute virtualbox in Ubuntu I'm trying to debug a linux c++ application on a remote offsite server and I got  When i launch any qt application it just says: qt.qpa.screen: QXcbConnection: Could not connect to display. Could not connect to any X display. I have restarted my device 5 times but still does not work.

Comments
  • I'm voting to close this question as off-topic because this maybe better suited for Unix & Linux SE!
  • Looks like the online installer requires a graphic user interface (X11 connection). You can either run an X server locally and tunnel the X connection through SSH or try if the offline installer can run without UI.
  • While this link may answer the question, link only answers are discouraged on Stack Overflow, you can improve this answer by taking vital parts of the link and putting it into your answer, this makes sure your answer is still an answer if the link gets changed or removed :)