$ tar xjf Downloads/anki-2.1.40-linux.tar.bz2
$ cd anki-2.1.40-linux
$ sudo ./install.sh
安裝之后可能無法正常運(yùn)行:
$ anki
File "runanki.py", line 4, in <module>
File "aqt/__init__.py", line 405, in run
File "aqt/__init__.py", line 451, in _run
File "aqt/profiles.py", line 136, in setupMeta
File "aqt/profiles.py", line 505, in _loadMeta
resetting corrupt _global
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, linuxfb, minimal, minimalegl, offscreen, vnc, wayland-egl, wayland, wayland-xcomposite-egl, wayland-xcomposite-glx, webgl, xcb.
[1] 13281 abort (core dumped) anki
解決方案:
設(shè)置環(huán)境變量
export QT_DEBUG_PLUGINS=1
安裝依賴包
sudo apt-get install libxcb-xinerama0