# Help needed installing anki on xubuntu \[linux\]

**URL:** https://forums.ankiweb.net/t/help-needed-installing-anki-on-xubuntu-linux/42764
**Category:** Help
**Created:** [March 24, 2024, 3:14pm UTC](https://forums.ankiweb.net/t/help-needed-installing-anki-on-xubuntu-linux/42764 "2024-03-24T15:14:35Z")
**Posts on this page:** 1
**Showing post:** 2

<div class="post-metadata">

### Author: ![stupid](https://sea2.discourse-cdn.com/flex002/user_avatar/forums.ankiweb.net/stupid/32/8890_2.png) [@stupid](https://forums.ankiweb.net/u/stupid)
#### Post date: [March 24, 2024, 4:15pm UTC](https://forums.ankiweb.net/t/help-needed-installing-anki-on-xubuntu-linux/42764/2 "2024-03-24T16:15:37Z")

</div>

> [@tracker](#):
>
> Qt info: Could not load the Qt platform plugin “xcb” in “” even though it was found.

This is the important part.

I’m guessing that you’re using xfce because you’re on Xubuntu. I searched for xfce and found a user with the same error as above, but on Debian: [Anki 23.12.1 fail to start in Debian 12](https://forums.ankiweb.net/t/anki-23-12-1-fail-to-start-in-debian-12/42129)

[Dae](https://forums.ankiweb.net/u/dae) linked to this page: [Missing Libraries - Anki Manual](https://docs.ankiweb.net/platform/linux/missing-libraries.html). It says to launch with `QT_DEBUG_PLUGINS=1 anki` to add debug output in order to see which library is missing.

In that user’s case, dae saw that `libxcb-icccm.so.4` was missing via the end of the last line starting with `Qt debug:`

> [@Anki 23.12.1 fail to start in Debian 12](https://forums.ankiweb.net/t/anki-23-12-1-fail-to-start-in-debian-12/42129/4):
>
> ```auto
> Qt debug: QLibraryPrivate::loadPlugin failed on "/usr/local/share/anki/lib/PyQt6/Qt6/plugins/platforms/libqxcb.so" : "Cannot load library /usr/local/share/anki/lib/PyQt6/Qt6/plugins/platforms/libqxcb.so: (libxcb-icccm.so.4: cannot open shared object file: No such file or directory)" 
> 
> ```

and a search for the required package gave `libxcb-icccm4`:

> [@Anki 23.12.1 fail to start in Debian 12](https://forums.ankiweb.net/t/anki-23-12-1-fail-to-start-in-debian-12/42129/5):
>
> ```auto
> % apt search libxcb-icccm     
> Sorting... Done
> Full Text Search... Done
> libxcb-icccm4/stable,stable,now 0.4.1-1.1 amd64 [installed]
> utility libraries for X C Binding -- icccm
> 
> ```

I’d still try to follow those steps instead of going straight to installing the package. Try to find a similar error message using `QT_DEBUG_PLUGINS=1 anki` and then find out what package provides/owns the missing library.

In case the `apt search` command shown above doesn’t work for you, I did a few searches. On my OS, the search I’d use is ~~`pacman -Qo <missing-library>`~~ `pacman -F <missing-library>` to find which package owns it. This page gives the equivalent in Debian/Ubuntu: [pacman/Rosetta - ArchWiki](https://wiki.archlinux.org/title/Pacman/Rosetta)

> **pacman -Qo equivalents likely incorrect in this case, see edit below**
>
> ```bash
> dpkg -S <missing-library>
> 
> ```
> 
> OR
> 
> ```bash
> dlocate <missing-library>
> 
> ```

Edit: I tested. `libxcb-icccm.so.4` showed up by using `pacman -F`, not `pacman -Qo`. So the command in that case would be:

```bash
apt-file search <missing-library>

```

Man pages:  
[dpkg](https://manpages.ubuntu.com/manpages/noble/en/man1/dpkg.1.html)  
[dlocate](https://manpages.ubuntu.com/manpages/noble/en/man1/dlocate.1.html)  
[apt-file](https://manpages.ubuntu.com/manpages/noble/man1/apt-file.1.html)

---

_[View the full topic](https://forums.ankiweb.net/t/help-needed-installing-anki-on-xubuntu-linux/42764)._
