# Empty main screen when i upgraded to Ubuntu 22.04

**URL:** <https://forums.ankiweb.net/t/empty-main-screen-when-i-upgraded-to-ubuntu-22-04/19393>\
**Category:** Help\
**Created:** [April 24, 2022, 7:39pm UTC](https://forums.ankiweb.net/t/empty-main-screen-when-i-upgraded-to-ubuntu-22-04/19393 "2022-04-24T19:39:41Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![Axiome](https://sea2.discourse-cdn.com/flex002/user_avatar/forums.ankiweb.net/axiome/32/247_2.png) [@Axiome](https://forums.ankiweb.net/u/Axiome)\
**Post date:** [April 24, 2022, 7:39pm UTC](https://forums.ankiweb.net/t/empty-main-screen-when-i-upgraded-to-ubuntu-22-04/19393/1 "2022-04-24T19:39:41Z")

</div>

![Screenshot from 2022-04-24 20-29-39](https://us1.discourse-cdn.com/flex002/uploads/anki2/original/2X/4/43a6179e3bec8f3e3699f39561b6849cf6f4f243.png)  
So after i upgraded to 22.04 yesterday , anki is no longer showing the main window , so i can’t find review my cards  
i am using anki 2.1.50 qt5  
on ubuntu 22.04 , wayland (is the default)

ps : it works fine on anki 2.1.51 qt6 but not on 2.1.51 qt 5 (i tested them both on ubuntu 22.04)

---

<div class="post-metadata">

**Author:** ![kleinerpirat](https://sea2.discourse-cdn.com/flex002/user_avatar/forums.ankiweb.net/kleinerpirat/32/19863_2.png) [@kleinerpirat](https://forums.ankiweb.net/u/kleinerpirat)\
**Post date:** [April 24, 2022, 8:30pm UTC](https://forums.ankiweb.net/t/empty-main-screen-when-i-upgraded-to-ubuntu-22-04/19393/2 "2022-04-24T20:30:14Z")

</div>

The `--no-sandbox` flag will probably fix this:

> [@Anki shows a blank window](https://forums.ankiweb.net/t/anki-shows-a-blank-window/19350/2):
>
> You could create a shell script to start Anki with the --no-sandbox flag: #!/bin/bash export QT\_QPA\_PLATFORM=xcb anki --no-sandbox QT\_QPA\_PLATFORM=xcb prevents Anki from running in Wayland. That’s optional of course, but I recommend it because Wayland isn’t a good experience yet.

Also, Wayland has some issues, so I recommend using x11 (xcb) for now.

---

<div class="post-metadata">

**Author:** ![Axiome](https://sea2.discourse-cdn.com/flex002/user_avatar/forums.ankiweb.net/axiome/32/247_2.png) [@Axiome](https://forums.ankiweb.net/u/Axiome)\
**Post date:** [April 24, 2022, 8:42pm UTC](https://forums.ankiweb.net/t/empty-main-screen-when-i-upgraded-to-ubuntu-22-04/19393/3 "2022-04-24T20:42:11Z")

</div>

it worked , thank you  
the problem is that , taking x11 as “a default windowing system” is no longer an option on this latest version of ubuntu where wayland is the main

anyway it is working well now , thx again

---

<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:** [April 25, 2022, 11:09am UTC](https://forums.ankiweb.net/t/empty-main-screen-when-i-upgraded-to-ubuntu-22-04/19393/4 "2022-04-25T11:09:03Z")

</div>

The text @kleinerpirat quoted describes how to tell Anki to use X11/xwayland - it doesn’t require you to start an X11 session yourself.

---

<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:** [May 1, 2023, 4:23am UTC](https://forums.ankiweb.net/t/empty-main-screen-when-i-upgraded-to-ubuntu-22-04/19393/5 "2023-05-01T04:23:43Z")

</div>


