8
Solved: Qt issue on new installation of Anki
(sh.itjust.works)
submitted
1 week ago* (last edited 1 week ago)
by
schipelblorp@sh.itjust.works
to
c/linuxquestions@lemmy.zip
On Mint. Tried installing Anki from the app store, but the web was unhappy with that version's time zone handling, so I couldn't sync.
I downloaded the tarball from the developer and it installed fun, but when I run it I get:
Starting Anki 26.05...
Qt warning: From 6.5.0, xcb-cursor0 or libxcb-cursor0 is needed to load the Qt xcb platform plugin.
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: linuxfb, offscreen, xcb, minimalegl, eglfs, vkkhrdisplay, minimal, vnc, wayland-brcm, wayland-egl, wayland.
Aborted (core dumped)
The Qt debug's only issue is this:
Qt debug: Got keys from plugin meta data QList("wayland", "wayland-egl", "wayland-brcm")
Qt debug: checking directory path "/home/alex/Downloads/anki-linux/platforms" ...
Qt debug: "/home/alex/Downloads/anki-linux/app_packages/PyQt6/Qt6/plugins/platforms/libqxcb.so" cannot load: Cannot load library /home/alex/Downloads/anki-linux/app_packages/PyQt6/Qt6/plugins/platforms/libqxcb.so: libxcb-cursor.so.0: cannot open shared object file: No such file or directory
Qt debug: QLibraryPrivate::loadPlugin failed on "/home/alex/Downloads/anki-linux/app_packages/PyQt6/Qt6/plugins/platforms/libqxcb.so" : "Cannot load library /home/alex/Downloads/anki-linux/app_packages/PyQt6/Qt6/plugins/platforms/libqxcb.so: libxcb-cursor.so.0: cannot open shared object file: No such file or directory"
Qt warning: From 6.5.0, xcb-cursor0 or libxcb-cursor0 is needed to load the Qt xcb platform plugin.
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.
I've checked that location and libqxcb.so is exactly there where it should be, so I'm not sure why it can't read.
I've uninstalled and reinstalled and still have this problem.
Any ideas?
Edit: Solution:
Try installing the packages mentioned here: https://docs.ankiweb.net/platform/linux/installing.html#requirements
Oh, yes, of course!
Mint's software manager is from a repo. The manager does have flatpaks, though, so I don´t know what goes into it deciding what to give me. Probably should be updated, though, lots of reviews from 2024 on complaining it won´t sync with ankiweb due to some time accounting updates, which was my problem.
I wrote a long comment about why distro's don't update packages, and why, even though I don't personally use this model, I respect it:
https://programming.dev/post/53794522/24993525
It's unfortunate when stuff like this happens though.