# Issues running on Ubuntu 24.04

**URL:** https://forums.ankiweb.net/t/issues-running-on-ubuntu-24-04/40974
**Category:** Help
**Created:** [February 11, 2024, 8:17am UTC](https://forums.ankiweb.net/t/issues-running-on-ubuntu-24-04/40974 "2024-02-11T08:17:39Z")
**Posts on this page:** 5
**Page:** 1

<div class="post-metadata">

### Author: ![MrMNight](https://sea2.discourse-cdn.com/flex002/user_avatar/forums.ankiweb.net/mrmnight/32/18928_2.png) [@MrMNight](https://forums.ankiweb.net/u/MrMNight)
#### Post date: [February 11, 2024, 8:17am UTC](https://forums.ankiweb.net/t/issues-running-on-ubuntu-24-04/40974/1 "2024-02-11T08:17:39Z")

</div>

Don’t run in Ubuntu 24.04 until you change kernel.apparmor\_restrict\_unprivileged\_userns to 0

```auto
$ 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
Qt warning: QGuiApplication::setDesktopFileName: the specified desktop file name ends with .desktop. For compatibility reasons, the .desktop suffix will be removed. Please specify a desktop file name without .desktop suffix 
[65597:65597:0211/090730.415203:FATAL:credentials.cc(126)] Check failed: . : Permission denied (13)
Trace/breakpoint trap (core dumped)

```

But after setting works ok:

```auto
$ sudo sysctl -w kernel.apparmor_restrict_unprivileged_userns=0
kernel.apparmor_restrict_unprivileged_userns = 0
$ 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
Qt warning: QGuiApplication::setDesktopFileName: the specified desktop file name ends with .desktop. For compatibility reasons, the .desktop suffix will be removed. Please specify a desktop file name without .desktop suffix 
Qt debug: doh set to "" -- SystemOnly 
Starting main loop...
mpv not found, reverting to mplayer

```

---

<div class="post-metadata">

### Author: ![dae](https://sea2.discourse-cdn.com/flex002/user_avatar/forums.ankiweb.net/dae/32/65_2.png) [@dae](https://forums.ankiweb.net/u/dae)
#### Post date: [February 12, 2024, 3:40am UTC](https://forums.ankiweb.net/t/issues-running-on-ubuntu-24-04/40974/2 "2024-02-12T03:40:21Z")

</div>

I presume that’s with the 23.12.1 Qt6 version of Anki?

---

<div class="post-metadata">

### Author: ![MrMNight](https://sea2.discourse-cdn.com/flex002/user_avatar/forums.ankiweb.net/mrmnight/32/18928_2.png) [@MrMNight](https://forums.ankiweb.net/u/MrMNight)
#### Post date: [February 12, 2024, 8:53am UTC](https://forums.ankiweb.net/t/issues-running-on-ubuntu-24-04/40974/3 "2024-02-12T08:53:31Z")

</div>

Yep

```auto
Anki 23.12.1 (1a1d4d54)  
Python 3.9.15 Qt 6.6.1 PyQt 6.6.1
Platform: Linux-6.6.0-14-generic-x86_64-with-glibc2.38

```

---

<div class="post-metadata">

### Author: ![dae](https://sea2.discourse-cdn.com/flex002/user_avatar/forums.ankiweb.net/dae/32/65_2.png) [@dae](https://forums.ankiweb.net/u/dae)
#### Post date: [February 14, 2024, 10:59am UTC](https://forums.ankiweb.net/t/issues-running-on-ubuntu-24-04/40974/4 "2024-02-14T10:59:54Z")

</div>

Thanks, I’ve added a note on [Install & Upgrade - Anki Manual](https://docs.ankiweb.net/platform/linux/installing.html)

---

<div class="post-metadata">

### Author: ![system](https://us1.discourse-cdn.com/flex002/uploads/anki2/original/1X/8f1279ababc5879d54e4838989f606cfe55af8c7.jpeg) [@system](https://forums.ankiweb.net/u/system)
#### Post date: [March 15, 2024, 11:00am UTC](https://forums.ankiweb.net/t/issues-running-on-ubuntu-24-04/40974/5 "2024-03-15T11:00:07Z")

</div>

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