I tried to start Anki today on Ubuntu 24.04, after having not used Anki for at least five months. I believe the last time I successfully launched it was on Ubuntu 23.10.
It would not launch from the app icon, or from the terminal.
I tried uninstalling and reinstalling at the command line, then I tried installing the latest Beta version, all to no avail.
Here are some of the launch commands I tried.
.../Downloads/anki-24.10-linux-qt6 $ anki
Anki starting...
Initial setup...
Preparing to run...
Wayland support is disabled by default due to bugs:
https://github.com/ankitects/anki/issues/1767
You can force it on with an env var: ANKI_WAYLAND=1
2024-10-29 11:42:49,472:INFO:aqt.mediasrv: Serving on http://127.0.0.1:39461
[195197:195197:1029/114249.505583:FATAL:credentials.cc(126)] Check failed: . : Permission denied (13)
Trace/breakpoint trap (core dumped)
.../Downloads/anki-24.10-linux-qt6 $ ANKI_WAYLAND=1 anki
Anki starting...
Initial setup...
Preparing to run...
2024-10-29 11:43:25,109:INFO:aqt.mediasrv: Serving on http://127.0.0.1:43341
[195318:195318:1029/114325.138944:FATAL:credentials.cc(126)] Check failed: . : Permission denied (13)
Trace/breakpoint trap (core dumped)
.../Downloads/anki-24.10-linux-qt6 $ sudo ANKI_WAYLAND=1 anki
Anki starting...
Initial setup...
Preparing to run...
Qt warning: Session DBus not running.
Qt warning: Application will not react to setting changes.
Check your DBus installation.
2024-10-29 11:43:36,303:INFO:aqt.mediasrv: Serving on http://127.0.0.1:40815
[195425:195425:1029/114336.344482:ERROR:zygote_host_impl_linux.cc(101)] Running as root without --no-sandbox is not supported. See https://crbug.com/638180.
.../Downloads/anki-24.10-linux-qt6 $ sudo ANKI_WAYLAND=1 anki --no-sandbox
Anki starting...
Initial setup...
Preparing to run...
Qt warning: Session DBus not running.
Qt warning: Application will not react to setting changes.
Check your DBus installation.
2024-10-29 11:43:42,509:INFO:aqt.mediasrv: Serving on http://127.0.0.1:41579
[195531:195531:1029/114342.548736:ERROR:zygote_host_impl_linux.cc(101)] Running as root without --no-sandbox is not supported. See https://crbug.com/638180.