Calibre 介绍
系统环境
22.04.1-Ubuntu
执行命令
//下载并执行脚本
$ 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
//启动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
//重新启动
$ calibre