Mageia, Flatpak & Anki

I would like to install Anki via Flatpak in the Mageia 9 Xfce desktop version of Linux but even though the Flatpak installation steps all seem to complete without error Anki fails to run.

To begin I followed the instructions here to install Flatpak and here to install Anki

At a command line I used “flatpak run net.ankiweb.Anki” and generated the following errors:

Starting Anki 25.09.2…
Qt warning: Qt: Session management error: Could not open network socket
2026-04-15 20:01:00,102:INFO:aqt.mediasrv: Serving on http://127.0.0.1:40375
[2:26:0415/200121.947694:ERROR:bus.cc(408)] Failed to connect to the bus: Failed to connect to socket /run/dbus/system_bus_socket: No such file or directory
libva error: /usr/lib/x86_64-linux-gnu/dri/intel-vaapi-driver/iHD_drv_video.so init failed
Starting main loop…
blocked main thread for 517ms:
File “/app/bin/anki”, line 8, in
sys.exit(run())
File “/app/lib/python3.13/site-packages/aqt/init.py”, line 565, in run
_run()
File “/app/lib/python3.13/site-packages/aqt/init.py”, line 772, in _run
app.exec()
File “/app/lib/python3.13/site-packages/aqt/progress.py”, line 121, in handler
func()
File “/app/lib/python3.13/site-packages/aqt/main.py”, line 231, in on_window_init
fn()
File “/app/lib/python3.13/site-packages/aqt/main.py”, line 330, in setupProfile
self.loadProfile()
File “/app/lib/python3.13/site-packages/aqt/main.py”, line 512, in loadProfile
if not self.loadCollection():
File “/app/lib/python3.13/site-packages/aqt/main.py”, line 650, in loadCollection
self._loadCollection()
File “/app/lib/python3.13/site-packages/aqt/main.py”, line 686, in _loadCollection
self.col = Collection(cpath, backend=self.backend)
File “/app/lib/python3.13/site-packages/anki/collection.py”, line 152, in init
self.reopen()
File “/app/lib/python3.13/site-packages/anki/collection.py”, line 293, in reopen
self._backend.open_collection(
File “/app/lib/python3.13/site-packages/anki/_backend_generated.py”, line 143, in open_collection
raw_bytes = self._run_command(3, 0, message.SerializeToString())
File “/app/lib/python3.13/site-packages/anki/_backend.py”, line 167, in _run_command
print(“”.join(traceback.format_stack()))

Any comments or suggestions on the above errors or any installation checks that could be done would be much appreciated

Official download only: https://apps.ankiweb.net/

Anything else can be reported to their maintainers
For Flatpak: https://github.com/flathub/net.ankiweb.Anki/issues

Compiled builds of Anki are available on https://apps.ankiweb.net. Most of the necessary libraries are included, and Anki has been tested to work with these library versions. If you’re experiencing issues with your distro’s version, the first thing you should try is switching to the latest packaged version we provide.

You are welcome to continue using your distro’s version of Anki if you prefer, but if you run into any issues, you will need to report them to your distribution’s package maintainers.

Thank you for your response and I will report the Flatpak problems to the Mageia maintainers.

My reason for trying to install via Flatpak was that when I installed the compiled Anki the errors below were generated:

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: vkkhrdisplay, xcb, vnc, linuxfb, minimal, minimalegl, wayland, wayland-egl, offscreen, eglfs.

Also, I was not able to find any version of glibc in the Mageia Control Center.

Is there a specific source that i should use to get glibc?

Any comments much appreciated.

Your glibc version is fine, based on distrowatch, mangeia 4 has glibc 2.36 which Anki requires since 25.07

See and try:

Related thread:

Thank you for your response.

The output from using QT_DEBUG_PLUGINS=1 anki at a command line is in the uploaded file.

The overall conclusion seemed to be that Anki failed to start because no Qt platform plugin could be initialized. However, none of the listed plugins seem to be available via the Mageia Control Center. The closest matches were tigervnc and x11vnc but after installation neither of these made any difference.

Any further comments that you may have would be much appreciated.

I uploaded QT_debug.pdf but something seemed to have gone wrong with the upload in my previous post

QT_debug.pdf (20.1 KB)

Mageia has it’s own version of Flatpak from which I have successfully installed Anki, see Flatpak Mageia wiki

Best regards