$ tar xjf Downloads/anki-2.1.40-linux.tar.bz2
$ cd anki-2.1.40-linux
$ sudo ./install.sh
安装之后可能无法正常运行:
$ 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
解决方案:
设置环境变量
export QT_DEBUG_PLUGINS=1
安装依赖包
sudo apt-get install libxcb-xinerama0
网友评论