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.

1 Like