[英]Taking an error (qt.qpa.xcb: could not connect to display) while trying to use kdbg, when connected through ssh
When I'm connected through ssh, and tried to run kdbg I took this problem:当我通过 ssh 连接并尝试运行 kdbg 时,我遇到了这个问题:
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.
Failed to create wl_display (No such file or directory)
qt.qpa.plugin: Could not load the Qt platform plugin "wayland" 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: wayland-org.kde.kwin.qpa, eglfs, linuxfb, minimal, minimalegl, offscreen, vnc, wayland-egl, wayland, wayland-xcomposite-egl, wayland-xcomposite-glx, xcb.
I use KDE Plasma (X11), and Arch Linux.我使用 KDE Plasma (X11) 和 Arch Linux。
I tried to reinstall qt6-base package, install qt5-base package, also found a lot of the same questions in other forums, but nothing helped to me我尝试重新安装qt6-base包,安装qt5-base包,在其他论坛也发现了很多相同的问题,但对我没有任何帮助
Firstly, as I understand, this concerned not only kdbg, but any program with a graphical interface.首先,据我了解,这不仅涉及 kdbg,还涉及任何具有图形界面的程序。 Second I found explanations on Arch wiki in the article about OpenSSH https://wiki.archlinux.org/title/OpenSSH#X11_forwarding
其次,我在有关 OpenSSH https://wiki.archlinux.org/title/OpenSSH#X11_forwarding的文章中找到了关于 Arch wiki 的解释
So all i had to do, to solve this problem is add -X
to the command.所以我所要做的就是在命令中添加
-X
来解决这个问题。 So instead of ssh user@server-address
I wrote ssh -X user@server-address
所以我写了
ssh -X user@server-address
而不是ssh user@server-address
server-address
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.