Can't launch Anki Ubuntu 24.04

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.

I moved this to the appropriate category. Since you first found this issue with 24.04 – this isn’t a beta-testing issue related to 24.10.

I won’t be the one who can help you troubleshoot something on Linux, but some basics to get you started –

  • Have you worked your way through the Linux platform notes? Linux - Anki Manual

  • Since unexplained crashes after upgrading are often add-on related – have you tried restarting in safe mode? Troubleshooting Checklist #2

  • Have you tried the rest of the things on the Troubleshooting Checklist?

That helped. I followed the instructions to change the settings and reboot.

sudo nano /etc/default/grub

Change the following:

GRUB_CMDLINE_LINUX_DEFAULT="quiet splash apparmor=0"

Then update Grub.

sudo update-grub

Reboot.

sudo reboot

Problem solved.

2 Likes

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.