Anki 23.12.1 fail to start in Debian 12

Your issue may already be reported! Please [search] before creating a new post.

  • Did you read the [Getting Help]?
  • Can you reproduce the problem after following the steps in [Troubleshooting]?
  • Did you check the [FAQs]?
  • Did you check the [Platform Notes]?

Anki Version: ⁨23.12.1 (1a1d4d54)⁩

Machine Details:
OS: Debian GNU/Linux 12 (bookworm) x86_64
Kernel: 6.1.0-18-amd64
Uptime: 38 mins
Packages: 1376 (dpkg), 6 (flatpak)
Shell: bash 5.2.15
Resolution: 1366x768
DE: Xfce 4.18
WM: Xfwm4
WM Theme: Default
Theme: Adwaita-dark [GTK2]
Icons: Adwaita [GTK2]
Terminal: xfce4-terminal
Terminal Font: Monospace 12
CPU: Intel Celeron N3060 (2) @ 2.480GHz
GPU: Intel Atom/Celeron/Pentium Processor x5-E8000/J3xxx/N3xxx
Memory: 1623MiB / 3828MiB

i’ve installed the dependencies mentioned in the wiki and then i directly run “anki” after extracting the tar but got this error:

Anki starting...
Initial setup...
Preparing to run...
  File "<string>", line 1, in <module>
  File "aqt", line 509, in run
  File "aqt", line 583, in _run
  File "aqt.profiles", line 139, in setupMeta
  File "aqt.profiles", line 421, in _loadMeta
resetting corrupt _global
Qt warning: From 6.5.0, xcb-cursor0 or libxcb-cursor0 is needed to load the Qt xcb platform plugin. 
Qt info: Could not load the Qt platform plugin "xcb" in "" even though it was found. 
Qt fatal: This application failed to start because no Qt platform plugin could be initialized. Reinstalling the application may fix this problem.

Available platform plugins are: eglfs, vkkhrdisplay, wayland-egl, offscreen, vnc, minimal, wayland, linuxfb, xcb, minimalegl.
 
Aborted

i’ve tried different versions and installed it with no luck. finally, i tried installing using flatpak and works. so idk what’s causing the error. just wanna let the dev knows

https://docs.ankiweb.net/platform/linux/missing-libraries.html

i did that and couldn’t find what’s missing

here’s the output:

Anki starting...
Initial setup...
Preparing to run...
  File "<string>", line 1, in <module>
  File "aqt", line 509, in run
  File "aqt", line 583, in _run
  File "aqt.profiles", line 139, in setupMeta
  File "aqt.profiles", line 421, in _loadMeta
resetting corrupt _global
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: checking directory path "/usr/local/share/anki/lib/PyQt6/Qt6/plugins/platforms" ... 
Qt debug: looking at "/usr/local/share/anki/lib/PyQt6/Qt6/plugins/platforms/libqwayland-generic.so" 
Qt debug: Found metadata in lib /usr/local/share/anki/lib/PyQt6/Qt6/plugins/platforms/libqwayland-generic.so, metadata=
{
    "IID": "org.qt-project.Qt.QPA.QPlatformIntegrationFactoryInterface.5.3",
    "MetaData": {
        "Keys": [
            "wayland"
        ]
    },
    "archlevel": 1,
    "className": "QWaylandIntegrationPlugin",
    "debug": false,
    "version": 394752
}

 
Qt debug: Got keys from plugin meta data QList("wayland") 
Qt debug: looking at "/usr/local/share/anki/lib/PyQt6/Qt6/plugins/platforms/libqvnc.so" 
Qt debug: Found metadata in lib /usr/local/share/anki/lib/PyQt6/Qt6/plugins/platforms/libqvnc.so, metadata=
{
    "IID": "org.qt-project.Qt.QPA.QPlatformIntegrationFactoryInterface.5.3",
    "MetaData": {
        "Keys": [
            "vnc"
        ]
    },
    "archlevel": 1,
    "className": "QVncIntegrationPlugin",
    "debug": false,
    "version": 394752
}

 
Qt debug: Got keys from plugin meta data QList("vnc") 
Qt debug: looking at "/usr/local/share/anki/lib/PyQt6/Qt6/plugins/platforms/libqminimal.so" 
Qt debug: Found metadata in lib /usr/local/share/anki/lib/PyQt6/Qt6/plugins/platforms/libqminimal.so, metadata=
{
    "IID": "org.qt-project.Qt.QPA.QPlatformIntegrationFactoryInterface.5.3",
    "MetaData": {
        "Keys": [
            "minimal"
        ]
    },
    "archlevel": 1,
    "className": "QMinimalIntegrationPlugin",
    "debug": false,
    "version": 394752
}

 
Qt debug: Got keys from plugin meta data QList("minimal") 
Qt debug: looking at "/usr/local/share/anki/lib/PyQt6/Qt6/plugins/platforms/libqminimalegl.so" 
Qt debug: Found metadata in lib /usr/local/share/anki/lib/PyQt6/Qt6/plugins/platforms/libqminimalegl.so, metadata=
{
    "IID": "org.qt-project.Qt.QPA.QPlatformIntegrationFactoryInterface.5.3",
    "MetaData": {
        "Keys": [
            "minimalegl"
        ]
    },
    "archlevel": 1,
    "className": "QMinimalEglIntegrationPlugin",
    "debug": false,
    "version": 394752
}

 
Qt debug: Got keys from plugin meta data QList("minimalegl") 
Qt debug: looking at "/usr/local/share/anki/lib/PyQt6/Qt6/plugins/platforms/libqeglfs.so" 
Qt debug: Found metadata in lib /usr/local/share/anki/lib/PyQt6/Qt6/plugins/platforms/libqeglfs.so, metadata=
{
    "IID": "org.qt-project.Qt.QPA.QPlatformIntegrationFactoryInterface.5.3",
    "MetaData": {
        "Keys": [
            "eglfs"
        ]
    },
    "archlevel": 1,
    "className": "QEglFSIntegrationPlugin",
    "debug": false,
    "version": 394752
}

 
Qt debug: Got keys from plugin meta data QList("eglfs") 
Qt debug: looking at "/usr/local/share/anki/lib/PyQt6/Qt6/plugins/platforms/libqxcb.so" 
Qt debug: Found metadata in lib /usr/local/share/anki/lib/PyQt6/Qt6/plugins/platforms/libqxcb.so, metadata=
{
    "IID": "org.qt-project.Qt.QPA.QPlatformIntegrationFactoryInterface.5.3",
    "MetaData": {
        "Keys": [
            "xcb"
        ]
    },
    "archlevel": 1,
    "className": "QXcbIntegrationPlugin",
    "debug": false,
    "version": 394752
}

 
Qt debug: Got keys from plugin meta data QList("xcb") 
Qt debug: looking at "/usr/local/share/anki/lib/PyQt6/Qt6/plugins/platforms/libqlinuxfb.so" 
Qt debug: Found metadata in lib /usr/local/share/anki/lib/PyQt6/Qt6/plugins/platforms/libqlinuxfb.so, metadata=
{
    "IID": "org.qt-project.Qt.QPA.QPlatformIntegrationFactoryInterface.5.3",
    "MetaData": {
        "Keys": [
            "linuxfb"
        ]
    },
    "archlevel": 1,
    "className": "QLinuxFbIntegrationPlugin",
    "debug": false,
    "version": 394752
}

 
Qt debug: Got keys from plugin meta data QList("linuxfb") 
Qt debug: looking at "/usr/local/share/anki/lib/PyQt6/Qt6/plugins/platforms/libqoffscreen.so" 
Qt debug: Found metadata in lib /usr/local/share/anki/lib/PyQt6/Qt6/plugins/platforms/libqoffscreen.so, metadata=
{
    "IID": "org.qt-project.Qt.QPA.QPlatformIntegrationFactoryInterface.5.3",
    "MetaData": {
        "Keys": [
            "offscreen"
        ]
    },
    "archlevel": 1,
    "className": "QOffscreenIntegrationPlugin",
    "debug": false,
    "version": 394752
}

 
Qt debug: Got keys from plugin meta data QList("offscreen") 
Qt debug: looking at "/usr/local/share/anki/lib/PyQt6/Qt6/plugins/platforms/libqwayland-egl.so" 
Qt debug: Found metadata in lib /usr/local/share/anki/lib/PyQt6/Qt6/plugins/platforms/libqwayland-egl.so, metadata=
{
    "IID": "org.qt-project.Qt.QPA.QPlatformIntegrationFactoryInterface.5.3",
    "MetaData": {
        "Keys": [
            "wayland-egl"
        ]
    },
    "archlevel": 1,
    "className": "QWaylandEglPlatformIntegrationPlugin",
    "debug": false,
    "version": 394752
}

 
Qt debug: Got keys from plugin meta data QList("wayland-egl") 
Qt debug: looking at "/usr/local/share/anki/lib/PyQt6/Qt6/plugins/platforms/libqvkkhrdisplay.so" 
Qt debug: Found metadata in lib /usr/local/share/anki/lib/PyQt6/Qt6/plugins/platforms/libqvkkhrdisplay.so, metadata=
{
    "IID": "org.qt-project.Qt.QPA.QPlatformIntegrationFactoryInterface.5.3",
    "MetaData": {
        "Keys": [
            "vkkhrdisplay"
        ]
    },
    "archlevel": 1,
    "className": "QVkKhrDisplayIntegrationPlugin",
    "debug": false,
    "version": 394752
}

 
Qt debug: Got keys from plugin meta data QList("vkkhrdisplay") 
Qt debug: checking directory path "/usr/local/share/anki/platforms" ... 
Qt debug: "/usr/local/share/anki/lib/PyQt6/Qt6/plugins/platforms/libqxcb.so" cannot load: 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) 
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)" 
Qt warning: From 6.5.0, xcb-cursor0 or libxcb-cursor0 is needed to load the Qt xcb platform plugin. 
Qt info: Could not load the Qt platform plugin "xcb" in "" even though it was found. 
Qt fatal: This application failed to start because no Qt platform plugin could be initialized. Reinstalling the application may fix this problem.

Available platform plugins are: wayland, vnc, minimal, minimalegl, eglfs, xcb, linuxfb, offscreen, wayland-egl, vkkhrdisplay.
 
Aborted

I did that but still can’t find what’s missing. libxcb is already installed when installing dependencies through apt

Anki starting...
Initial setup...
Preparing to run...
  File "<string>", line 1, in <module>
  File "aqt", line 509, in run
  File "aqt", line 583, in _run
  File "aqt.profiles", line 139, in setupMeta
  File "aqt.profiles", line 421, in _loadMeta
resetting corrupt _global
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: checking directory path "/usr/local/share/anki/lib/PyQt6/Qt6/plugins/platforms" ... 
Qt debug: looking at "/usr/local/share/anki/lib/PyQt6/Qt6/plugins/platforms/libqwayland-generic.so" 
Qt debug: Found metadata in lib /usr/local/share/anki/lib/PyQt6/Qt6/plugins/platforms/libqwayland-generic.so, metadata=
{
    "IID": "org.qt-project.Qt.QPA.QPlatformIntegrationFactoryInterface.5.3",
    "MetaData": {
        "Keys": [
            "wayland"
        ]
    },
    "archlevel": 1,
    "className": "QWaylandIntegrationPlugin",
    "debug": false,
    "version": 394752
}

 
Qt debug: Got keys from plugin meta data QList("wayland") 
Qt debug: looking at "/usr/local/share/anki/lib/PyQt6/Qt6/plugins/platforms/libqvnc.so" 
Qt debug: Found metadata in lib /usr/local/share/anki/lib/PyQt6/Qt6/plugins/platforms/libqvnc.so, metadata=
{
    "IID": "org.qt-project.Qt.QPA.QPlatformIntegrationFactoryInterface.5.3",
    "MetaData": {
        "Keys": [
            "vnc"
        ]
    },
    "archlevel": 1,
    "className": "QVncIntegrationPlugin",
    "debug": false,
    "version": 394752
}

 
Qt debug: Got keys from plugin meta data QList("vnc") 
Qt debug: looking at "/usr/local/share/anki/lib/PyQt6/Qt6/plugins/platforms/libqminimal.so" 
Qt debug: Found metadata in lib /usr/local/share/anki/lib/PyQt6/Qt6/plugins/platforms/libqminimal.so, metadata=
{
    "IID": "org.qt-project.Qt.QPA.QPlatformIntegrationFactoryInterface.5.3",
    "MetaData": {
        "Keys": [
            "minimal"
        ]
    },
    "archlevel": 1,
    "className": "QMinimalIntegrationPlugin",
    "debug": false,
    "version": 394752
}

 
Qt debug: Got keys from plugin meta data QList("minimal") 
Qt debug: looking at "/usr/local/share/anki/lib/PyQt6/Qt6/plugins/platforms/libqminimalegl.so" 
Qt debug: Found metadata in lib /usr/local/share/anki/lib/PyQt6/Qt6/plugins/platforms/libqminimalegl.so, metadata=
{
    "IID": "org.qt-project.Qt.QPA.QPlatformIntegrationFactoryInterface.5.3",
    "MetaData": {
        "Keys": [
            "minimalegl"
        ]
    },
    "archlevel": 1,
    "className": "QMinimalEglIntegrationPlugin",
    "debug": false,
    "version": 394752
}

 
Qt debug: Got keys from plugin meta data QList("minimalegl") 
Qt debug: looking at "/usr/local/share/anki/lib/PyQt6/Qt6/plugins/platforms/libqeglfs.so" 
Qt debug: Found metadata in lib /usr/local/share/anki/lib/PyQt6/Qt6/plugins/platforms/libqeglfs.so, metadata=
{
    "IID": "org.qt-project.Qt.QPA.QPlatformIntegrationFactoryInterface.5.3",
    "MetaData": {
        "Keys": [
            "eglfs"
        ]
    },
    "archlevel": 1,
    "className": "QEglFSIntegrationPlugin",
    "debug": false,
    "version": 394752
}

 
Qt debug: Got keys from plugin meta data QList("eglfs") 
Qt debug: looking at "/usr/local/share/anki/lib/PyQt6/Qt6/plugins/platforms/libqxcb.so" 
Qt debug: Found metadata in lib /usr/local/share/anki/lib/PyQt6/Qt6/plugins/platforms/libqxcb.so, metadata=
{
    "IID": "org.qt-project.Qt.QPA.QPlatformIntegrationFactoryInterface.5.3",
    "MetaData": {
        "Keys": [
            "xcb"
        ]
    },
    "archlevel": 1,
    "className": "QXcbIntegrationPlugin",
    "debug": false,
    "version": 394752
}

 
Qt debug: Got keys from plugin meta data QList("xcb") 
Qt debug: looking at "/usr/local/share/anki/lib/PyQt6/Qt6/plugins/platforms/libqlinuxfb.so" 
Qt debug: Found metadata in lib /usr/local/share/anki/lib/PyQt6/Qt6/plugins/platforms/libqlinuxfb.so, metadata=
{
    "IID": "org.qt-project.Qt.QPA.QPlatformIntegrationFactoryInterface.5.3",
    "MetaData": {
        "Keys": [
            "linuxfb"
        ]
    },
    "archlevel": 1,
    "className": "QLinuxFbIntegrationPlugin",
    "debug": false,
    "version": 394752
}

 
Qt debug: Got keys from plugin meta data QList("linuxfb") 
Qt debug: looking at "/usr/local/share/anki/lib/PyQt6/Qt6/plugins/platforms/libqoffscreen.so" 
Qt debug: Found metadata in lib /usr/local/share/anki/lib/PyQt6/Qt6/plugins/platforms/libqoffscreen.so, metadata=
{
    "IID": "org.qt-project.Qt.QPA.QPlatformIntegrationFactoryInterface.5.3",
    "MetaData": {
        "Keys": [
            "offscreen"
        ]
    },
    "archlevel": 1,
    "className": "QOffscreenIntegrationPlugin",
    "debug": false,
    "version": 394752
}

 
Qt debug: Got keys from plugin meta data QList("offscreen") 
Qt debug: looking at "/usr/local/share/anki/lib/PyQt6/Qt6/plugins/platforms/libqwayland-egl.so" 
Qt debug: Found metadata in lib /usr/local/share/anki/lib/PyQt6/Qt6/plugins/platforms/libqwayland-egl.so, metadata=
{
    "IID": "org.qt-project.Qt.QPA.QPlatformIntegrationFactoryInterface.5.3",
    "MetaData": {
        "Keys": [
            "wayland-egl"
        ]
    },
    "archlevel": 1,
    "className": "QWaylandEglPlatformIntegrationPlugin",
    "debug": false,
    "version": 394752
}

 
Qt debug: Got keys from plugin meta data QList("wayland-egl") 
Qt debug: looking at "/usr/local/share/anki/lib/PyQt6/Qt6/plugins/platforms/libqvkkhrdisplay.so" 
Qt debug: Found metadata in lib /usr/local/share/anki/lib/PyQt6/Qt6/plugins/platforms/libqvkkhrdisplay.so, metadata=
{
    "IID": "org.qt-project.Qt.QPA.QPlatformIntegrationFactoryInterface.5.3",
    "MetaData": {
        "Keys": [
            "vkkhrdisplay"
        ]
    },
    "archlevel": 1,
    "className": "QVkKhrDisplayIntegrationPlugin",
    "debug": false,
    "version": 394752
}

 
Qt debug: Got keys from plugin meta data QList("vkkhrdisplay") 
Qt debug: checking directory path "/usr/local/share/anki/platforms" ... 
Qt debug: "/usr/local/share/anki/lib/PyQt6/Qt6/plugins/platforms/libqxcb.so" cannot load: 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) 
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)" 
Qt warning: From 6.5.0, xcb-cursor0 or libxcb-cursor0 is needed to load the Qt xcb platform plugin. 
Qt info: Could not load the Qt platform plugin "xcb" in "" even though it was found. 
Qt fatal: This application failed to start because no Qt platform plugin could be initialized. Reinstalling the application may fix this problem.

Available platform plugins are: wayland, vnc, minimal, minimalegl, eglfs, xcb, linuxfb, offscreen, wayland-egl, vkkhrdisplay.
 
Aborted

% 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

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