Calibre 介紹
系統(tǒng)環(huán)境
22.04.1-Ubuntu
執(zhí)行命令
//下載并執(zhí)行腳本
$ sudo -v && wget -nv -O- https://download.calibre-ebook.com/linux-installer.sh | sudo sh /dev/stdin
Setting up command-line completion...
Installing zsh completion to: /usr/share/zsh/vendor-completions/_calibre
Failed to find directory to install bash completions, using default.
Installing bash completion to: /usr/share/bash-completion/completions/
Setting up desktop integration...
Creating un-installer: /usr/bin/calibre-uninstall
Run "calibre" to start calibre
//啟動(dòng)calibre
$ calibre
返回異常
qt.qpa.xcb: could not connect to display
qt.qpa.plugin: Could not load the Qt platform plugin "xcb" in "" even though it was found.
This application failed to start because no Qt platform plugin could be initialized. Reinstalling the application may fix this problem.
Available platform plugins are: xcb, minimalegl, vnc, vkkhrdisplay, eglfs, wayland-egl, offscreen, minimal, wayland, linuxfb.
Aborted (core dumped)
修改profile 文件
$ sudo vim /etc/profile
//增加一行
export DISPLAY=:0.0
//保存退出
wq!
//使配置文件生效
$ source /etc/profile
//重新啟動(dòng)
$ calibre