Ubuntu 24.04 / Error when running PyQt6 application (xcb-cursor0 or libxcb-cursor0)
[ Error message ]
qt.qpa.plugin: From 6.5.0, xcb-cursor0 or libxcb-cursor0 is needed to load the Qt xcb platform plugin.
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, minimalegl, offscreen, vkkhrdisplay, xcb, linuxfb, vnc, minimal, wayland-brcm, wayland-egl, wayland.
[ Solution ]
Install libxcb-cursor0
$ sudo apt install libxcb-cursor0
[ Execution log ]
gangserver@15ARH05-U1108:~$ sudo apt install libxcb-cursor0
패키지 목록을 읽는 중입니다... 완료
의존성 트리를 만드는 중입니다... 완료
상태 정보를 읽는 중입니다... 완료
다음 새 패키지를 설치할 것입니다:
libxcb-cursor0
0개 업그레이드, 1개 새로 설치, 0개 제거 및 2개 업그레이드 안 함.
10.7 k바이트 아카이브를 받아야 합니다.
이 작업 후 39.9 k바이트의 디스크 공간을 더 사용하게 됩니다.
받기:1 http://kr.archive.ubuntu.com/ubuntu noble/universe amd64 libxcb-cursor0 amd64 0.1.4-1build1 [10.7 kB]
내려받기 10.7 k바이트, 소요시간 0초 (36.0 k바이트/초)
Selecting previously unselected package libxcb-cursor0:amd64.
(데이터베이스 읽는중 ...현재 290101개의 파일과 디렉터리가 설치되어 있습니다.)
Preparing to unpack .../libxcb-cursor0_0.1.4-1build1_amd64.deb ...
Unpacking libxcb-cursor0:amd64 (0.1.4-1build1) ...
libxcb-cursor0:amd64 (0.1.4-1build1) 설정하는 중입니다 ...
Processing triggers for libc-bin (2.39-0ubuntu8.7) ...