Uso o anki para aprender inglês e comecei a usar o Pop_OS hoje, estou gostando bastante. Contudo, não consigo usar o anki, o programa nem sequer abre, acredito que seja algo relacionado ao qt6 e qt5 (nenhuma das duas versões do anki funciona). Eu sei que tem o anki em flatpak, mas como a versão em flatpak é sempre atualizada ela não consegue ficar compatível com as extensões. Abaixo coloco um print do erro.
vincius@pop-os:~$ anki
Anki starting...
Initial setup...
Running with temporary Qt5 compatibility shims.
Run with DISABLE_QT5_COMPAT=1 to confirm compatibility with Qt6.
Preparing to run...
File "<string>", line 1, in <module>
File "aqt", line 489, in run
File "aqt", line 556, in _run
File "aqt.profiles", line 133, in setupMeta
File "aqt.profiles", line 413, in _loadMeta
resetting corrupt _global
Qt info: Could not load the Qt platform plugin "xcb" in "" even though it was found.
Qt 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: vkkhrdisplay, vnc, wayland, eglfs, offscreen, xcb, minimalegl, wayland-egl, linuxfb, minimal.
Abortado (imagem do núcleo gravada)
vincius@pop-os:~$ sudo apt install libxcb-xinerama0
[sudo] senha para vincius:
Lendo listas de pacotes... Pronto
Construindo árvore de dependências... Pronto
Lendo informação de estado... Pronto
libxcb-xinerama0 já é a versão mais recente (1.14-3ubuntu3).
libxcb-xinerama0 configurado para instalar manualmente.
O seguinte pacote foi instalado automaticamente e já não é necessário:
app-install-data
Utilize 'sudo apt autoremove' para o remover.
0 pacotes atualizados, 0 pacotes novos instalados, 0 a serem removidos e 15 não atualizados.
vincius@pop-os:~$
É uma pena, gostei do pop os e uso o anki com frequência para aprender inglês e outras coisas e queria usar ele no pop os. A versão em flatpak costuma ficar incompatível com extensões porque é sempre atualizado. Eu uso a extensão awesomeTTS para colocar áudios nos meus flashcards.
Queria rodar de forma nativa. Alguém sabe dizer como resolver essa incompatibilidade com qt5 e qt6 no pop_OS? No ubuntu e no linux mint o anki funcionava normalmente, só no pop_OS que tem esse problema
Está faltando uma ou mais libs para o anki poder rodar. Rode o anki com QT_DEBUG_PLUGINS=1, instale a lib faltante e repita o processo até todas as dependências estarem satisfeitas.
vinicius@ViniciusMint:~/Downloads/anki-2.1.65-linux-qt6$ anki
Anki starting...
Initial setup...
Running with temporary Qt5 compatibility shims.
Run with DISABLE_QT5_COMPAT=1 to confirm compatibility with Qt6.
Preparing to run...
Qt info: Could not load the Qt platform plugin "xcb" in "" even though it was found.
Qt 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: eglfs, xcb, minimal, wayland-egl, vnc, vkkhrdisplay, linuxfb, minimalegl, wayland, offscreen.
Aborted (core dumped)
vinicius@ViniciusMint:~/Downloads$ sudo apt-get install libxcb-randr0-dev libxcb-xtest0-dev libxcb-xinerama0-dev libxcb-shape0-dev libxcb-xkb-dev
Lendo listas de pacotes... Pronto
Construindo árvore de dependências... Pronto
Lendo informação de estado... Pronto
The following additional packages will be installed:
libpthread-stubs0-dev libxau-dev libxcb-render0-dev libxcb-xtest0
libxcb1-dev libxdmcp-dev x11proto-dev xorg-sgml-doctools
Pacotes sugeridos:
libxcb-doc
Os NOVOS pacotes a seguir serão instalados:
libpthread-stubs0-dev libxau-dev libxcb-randr0-dev libxcb-render0-dev
libxcb-shape0-dev libxcb-xinerama0-dev libxcb-xkb-dev libxcb-xtest0
libxcb-xtest0-dev libxcb1-dev libxdmcp-dev x11proto-dev xorg-sgml-doctools
0 pacotes atualizados, 13 pacotes novos instalados, 0 a serem removidos e 6 não atualizados.
É preciso baixar 852 kB de arquivos.
Depois desta operação, 3.671 kB adicionais de espaço em disco serão usados.
Você quer continuar? [S/n] s
Obter:1 http://mirror.ufam.edu.br/ubuntu jammy/main amd64 libpthread-stubs0-dev amd64 0.4-1build2 [5.516 B]
Obter:2 http://mirror.ufam.edu.br/ubuntu jammy/main amd64 xorg-sgml-doctools all 1:1.11-1.1 [10,9 kB]
Obter:3 http://mirror.ufam.edu.br/ubuntu jammy/main amd64 x11proto-dev all 2021.5-1 [604 kB]
Obter:4 http://mirror.ufam.edu.br/ubuntu jammy/main amd64 libxau-dev amd64 1:1.0.9-1build5 [9.724 B]
Obter:5 http://mirror.ufam.edu.br/ubuntu jammy/main amd64 libxdmcp-dev amd64 1:1.1.3-0ubuntu5 [26,5 kB]
Obter:6 http://mirror.ufam.edu.br/ubuntu jammy/main amd64 libxcb1-dev amd64 1.14-3ubuntu3 [86,5 kB]
Obter:7 http://mirror.ufam.edu.br/ubuntu jammy/main amd64 libxcb-render0-dev amd64 1.14-3ubuntu3 [19,6 kB]
Obter:8 http://mirror.ufam.edu.br/ubuntu jammy/main amd64 libxcb-randr0-dev amd64 1.14-3ubuntu3 [22,4 kB]
Obter:9 http://mirror.ufam.edu.br/ubuntu jammy/main amd64 libxcb-shape0-dev amd64 1.14-3ubuntu3 [7.320 B]
Obter:10 http://mirror.ufam.edu.br/ubuntu jammy/main amd64 libxcb-xinerama0-dev amd64 1.14-3ubuntu3 [5.990 B]
Obter:11 http://mirror.ufam.edu.br/ubuntu jammy/main amd64 libxcb-xkb-dev amd64 1.14-3ubuntu3 [43,5 kB]
Obter:12 http://mirror.ufam.edu.br/ubuntu jammy/main amd64 libxcb-xtest0 amd64 1.14-3ubuntu3 [4.874 B]
Obter:13 http://mirror.ufam.edu.br/ubuntu jammy/main amd64 libxcb-xtest0-dev amd64 1.14-3ubuntu3 [5.212 B]
Baixados 852 kB em 2s (384 kB/s)
A seleccionar pacote anteriormente não seleccionado libpthread-stubs0-dev:amd64.
(Lendo banco de dados ... 613784 ficheiros e directórios actualmente instalados.)
A preparar para desempacotar .../00-libpthread-stubs0-dev_0.4-1build2_amd64.deb ...
A descompactar libpthread-stubs0-dev:amd64 (0.4-1build2) ...
A seleccionar pacote anteriormente não seleccionado xorg-sgml-doctools.
A preparar para desempacotar .../01-xorg-sgml-doctools_1%3a1.11-1.1_all.deb ...
A descompactar xorg-sgml-doctools (1:1.11-1.1) ...
A seleccionar pacote anteriormente não seleccionado x11proto-dev.
A preparar para desempacotar .../02-x11proto-dev_2021.5-1_all.deb ...
A descompactar x11proto-dev (2021.5-1) ...
A seleccionar pacote anteriormente não seleccionado libxau-dev:amd64.
A preparar para desempacotar .../03-libxau-dev_1%3a1.0.9-1build5_amd64.deb ...
A descompactar libxau-dev:amd64 (1:1.0.9-1build5) ...
A seleccionar pacote anteriormente não seleccionado libxdmcp-dev:amd64.
A preparar para desempacotar .../04-libxdmcp-dev_1%3a1.1.3-0ubuntu5_amd64.deb ...
A descompactar libxdmcp-dev:amd64 (1:1.1.3-0ubuntu5) ...
A seleccionar pacote anteriormente não seleccionado libxcb1-dev:amd64.
A preparar para desempacotar .../05-libxcb1-dev_1.14-3ubuntu3_amd64.deb ...
A descompactar libxcb1-dev:amd64 (1.14-3ubuntu3) ...
A seleccionar pacote anteriormente não seleccionado libxcb-render0-dev:amd64.
A preparar para desempacotar .../06-libxcb-render0-dev_1.14-3ubuntu3_amd64.deb ...
A descompactar libxcb-render0-dev:amd64 (1.14-3ubuntu3) ...
A seleccionar pacote anteriormente não seleccionado libxcb-randr0-dev:amd64.
A preparar para desempacotar .../07-libxcb-randr0-dev_1.14-3ubuntu3_amd64.deb ...
A descompactar libxcb-randr0-dev:amd64 (1.14-3ubuntu3) ...
A seleccionar pacote anteriormente não seleccionado libxcb-shape0-dev:amd64.
A preparar para desempacotar .../08-libxcb-shape0-dev_1.14-3ubuntu3_amd64.deb ...
A descompactar libxcb-shape0-dev:amd64 (1.14-3ubuntu3) ...
A seleccionar pacote anteriormente não seleccionado libxcb-xinerama0-dev:amd64.
A preparar para desempacotar .../09-libxcb-xinerama0-dev_1.14-3ubuntu3_amd64.deb ...
A descompactar libxcb-xinerama0-dev:amd64 (1.14-3ubuntu3) ...
A seleccionar pacote anteriormente não seleccionado libxcb-xkb-dev:amd64.
A preparar para desempacotar .../10-libxcb-xkb-dev_1.14-3ubuntu3_amd64.deb ...
A descompactar libxcb-xkb-dev:amd64 (1.14-3ubuntu3) ...
A seleccionar pacote anteriormente não seleccionado libxcb-xtest0:amd64.
A preparar para desempacotar .../11-libxcb-xtest0_1.14-3ubuntu3_amd64.deb ...
A descompactar libxcb-xtest0:amd64 (1.14-3ubuntu3) ...
A seleccionar pacote anteriormente não seleccionado libxcb-xtest0-dev:amd64.
A preparar para desempacotar .../12-libxcb-xtest0-dev_1.14-3ubuntu3_amd64.deb ...
A descompactar libxcb-xtest0-dev:amd64 (1.14-3ubuntu3) ...
Configurando libpthread-stubs0-dev:amd64 (0.4-1build2) ...
Configurando libxcb-xtest0:amd64 (1.14-3ubuntu3) ...
Configurando xorg-sgml-doctools (1:1.11-1.1) ...
A processar 'triggers' para libc-bin (2.35-0ubuntu3.1) ...
A processar 'triggers' para man-db (2.10.2-1) ...
A processar 'triggers' para sgml-base (1.30) ...
Configurando x11proto-dev (2021.5-1) ...
Configurando libxau-dev:amd64 (1:1.0.9-1build5) ...
Configurando libxdmcp-dev:amd64 (1:1.1.3-0ubuntu5) ...
Configurando libxcb1-dev:amd64 (1.14-3ubuntu3) ...
Configurando libxcb-xkb-dev:amd64 (1.14-3ubuntu3) ...
Configurando libxcb-xinerama0-dev:amd64 (1.14-3ubuntu3) ...
Configurando libxcb-render0-dev:amd64 (1.14-3ubuntu3) ...
Configurando libxcb-shape0-dev:amd64 (1.14-3ubuntu3) ...
Configurando libxcb-xtest0-dev:amd64 (1.14-3ubuntu3) ...
Configurando libxcb-randr0-dev:amd64 (1.14-3ubuntu3) ...
vinicius@ViniciusMint:~/Downloads$ cd anki-2.1.64-linux-qt6/
vinicius@ViniciusMint:~/Downloads/anki-2.1.64-linux-qt6$ ./anki
Anki starting...
Initial setup...
Running with temporary Qt5 compatibility shims.
Run with DISABLE_QT5_COMPAT=1 to confirm compatibility with Qt6.
Preparing to run...
File "<string>", line 1, in <module>
File "aqt", line 489, in run
File "aqt", line 556, in _run
File "aqt.profiles", line 133, in setupMeta
File "aqt.profiles", line 413, in _loadMeta
resetting corrupt _global
Qt info: Could not load the Qt platform plugin "xcb" in "" even though it was found.
Qt 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: eglfs, xcb, minimal, wayland-egl, vnc, vkkhrdisplay, linuxfb, minimalegl, wayland, offscreen.
Aborted (core dumped)
vinicius@ViniciusMint:~/Downloads/anki-2.1.64-linux-qt6$
vinicius@ViniciusMint:~/Downloads/anki-2.1.64-linux-qt6$ sudo apt-get install libxcb-util-dev
Lendo listas de pacotes... Pronto
Construindo árvore de dependências... Pronto
Lendo informação de estado... Pronto
Os NOVOS pacotes a seguir serão instalados:
libxcb-util-dev
0 pacotes atualizados, 1 pacotes novos instalados, 0 a serem removidos e 6 não atualizados.
É preciso baixar 10,9 kB de arquivos.
Depois desta operação, 56,3 kB adicionais de espaço em disco serão usados.
Obter:1 http://mirror.ufam.edu.br/ubuntu jammy/main amd64 libxcb-util-dev amd64 0.4.0-1build2 [10,9 kB]
Baixados 10,9 kB em 0s (42,6 kB/s)
A seleccionar pacote anteriormente não seleccionado libxcb-util-dev:amd64.
(Lendo banco de dados ... 614089 ficheiros e directórios actualmente instalados.)
A preparar para desempacotar .../libxcb-util-dev_0.4.0-1build2_amd64.deb ...
A descompactar libxcb-util-dev:amd64 (0.4.0-1build2) ...
Configurando libxcb-util-dev:amd64 (0.4.0-1build2) ...
vinicius@ViniciusMint:~/Downloads/anki-2.1.64-linux-qt6$ ./anki
Anki starting...
Initial setup...
Running with temporary Qt5 compatibility shims.
Run with DISABLE_QT5_COMPAT=1 to confirm compatibility with Qt6.
Preparing to run...
File "<string>", line 1, in <module>
File "aqt", line 489, in run
File "aqt", line 556, in _run
File "aqt.profiles", line 133, in setupMeta
File "aqt.profiles", line 413, in _loadMeta
resetting corrupt _global
Qt info: Could not load the Qt platform plugin "xcb" in "" even though it was found.
Qt 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: eglfs, xcb, minimal, wayland-egl, vnc, vkkhrdisplay, linuxfb, minimalegl, wayland, offscreen.
Aborted (core dumped)
vinicius@ViniciusMint:~/Downloads/anki-2.1.64-linux-qt6$
vinicius@ViniciusMint:~$ sudo apt-get install xcb
[sudo] password for vinicius:
Lendo listas de pacotes... Pronto
Construindo árvore de dependências... Pronto
Lendo informação de estado... Pronto
Os NOVOS pacotes a seguir serão instalados:
xcb
0 pacotes atualizados, 1 pacotes novos instalados, 0 a serem removidos e 6 não atualizados.
É preciso baixar 22,3 kB de arquivos.
Depois desta operação, 66,6 kB adicionais de espaço em disco serão usados.
Obter:1 http://mirror.ufam.edu.br/ubuntu jammy/universe amd64 xcb amd64 2.4-8 [22,3 kB]
Baixados 22,3 kB em 1s (36,6 kB/s)
A seleccionar pacote anteriormente não seleccionado xcb.
(Lendo banco de dados ... 614102 ficheiros e directórios actualmente instalados.)
A preparar para desempacotar .../archives/xcb_2.4-8_amd64.deb ...
A descompactar xcb (2.4-8) ...
Configurando xcb (2.4-8) ...
A processar 'triggers' para man-db (2.10.2-1) ...
vinicius@ViniciusMint:~$ cd Downloads/
vinicius@ViniciusMint:~/Downloads$ cd anki-2.1.64-linux-qt6/
vinicius@ViniciusMint:~/Downloads/anki-2.1.64-linux-qt6$ ./anki
Anki starting...
Initial setup...
Running with temporary Qt5 compatibility shims.
Run with DISABLE_QT5_COMPAT=1 to confirm compatibility with Qt6.
Preparing to run...
File "<string>", line 1, in <module>
File "aqt", line 489, in run
File "aqt", line 556, in _run
File "aqt.profiles", line 133, in setupMeta
File "aqt.profiles", line 413, in _loadMeta
resetting corrupt _global
Qt info: Could not load the Qt platform plugin "xcb" in "" even though it was found.
Qt 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: eglfs, xcb, minimal, wayland-egl, vnc, vkkhrdisplay, linuxfb, minimalegl, wayland, offscreen.
Aborted (core dumped)
vinicius@ViniciusMint:~/Downloads/anki-2.1.64-linux-qt6$