乌班图安装Calibre :Setting up desktop integration failed with error:

今天准备折腾bookstack

环境:乌班图18

宝塔:7.1

安装chromiumbrowser  没有问题,可以打印百度代码。安装calibre的时候出现下面的错误。

_________________ WARNING ____________________
Setting up desktop integration failed with error:
__________________________________________________

Traceback (most recent call last):
File “site-packages/calibre/linux.py”, line 897, in setup_desktop_integration
File “subprocess.py”, line 190, in check_call
CalledProcessError: Command ‘xdg-desktop-menu install –noupdate ./calibre-gui.desktop’ returned non-zero exit status 3

Creating un-installer: /usr/bin/calibre-uninstall

There were 1 warnings

* Setting up desktop integration failed with error:

Run “calibre” to start calibre

官网安装教程提示:WARNING 级别错误基本不用管。

 

在安装npm的时候提示如下:

apt install nodejs-legacy npm
npm install -g n
#提示:
#The following packages have unmet dependencies:
#npm : Depends: node-gyp (>= 0.10.9) but it is not going to be installed
#E: Unable to correct problems, you have held broken packages.  
安装正确效果如下:
npm install -g n
/usr/local/bin/n -> /usr/local/lib/node_modules/n/bin/n
/usr/local/lib
`-- n@6.4.0 

用下面这条命令可以解决这个问他

sudo apt-get install nodejs-dev node-gyp libssl1.0-dev
n stable
npm install -g cnpm
cnpm install -g puppeteer

 

安装完成后就在宝塔里面新建站点

吧booksack 解压到站点目录。

修改 conf 文件夹里面的文件名

图片[1]-乌班图安装Calibre :Setting up desktop integration failed with error:-栗子博客
然后运行命令:

./BookStack install

开始运行没有成功。后来再看发现权限有问他,于是设置为777

root@RB01P02:/www/wwwroot/.cc# chmod 777 BookStack

结果运行的时候还有问他

root@RB01P02:/www/wwwroot/.cc# ./BookStack install
panic: open /www/wwwroot/cc/conf/oss.conf: no such file or directory

goroutine 1 [running]:
github.com/astaxie/beego.init.2()
D:/workspace/golang/pkg/mod/github.com/astaxie/beego@v1.12.0/config.go:157 +0x473

© 版权声明
THE END
点赞0
抢沙发
头像
提交
头像

昵称

取消
昵称
一言一语