升级到18.04后为知笔记无法更新,已知报错
Failed to exec json request, network error=99, message=,
1查找资料后是openssl库的问题导致其联网同步时安全验证失败,官网上提供了一个需要重新安装的库的列表
sudo apt install openssl1.0 libssl1.0-dev
但是实际安装的时候并不顺利,安装中报了依赖冲突错误,原因是已经安装的libssl1.0.0版本过高,通过apt工具查找发现和libssl1.0相关的包有以下:
➜ ~ sudo apt list |grep -i libssl
WARNING: apt does not have a stable CLI interface. Use with caution in scripts.
libssl-dev/bionic-updates,bionic-security 1.1.0g-2ubuntu4.1 amd64
libssl-doc/bionic-updates,bionic-updates,bionic-security,bionic-security 1.1.0g-2ubuntu4.1 all
libssl-ocaml/bionic 0.5.3-1build2 amd64
libssl-ocaml-dev/bionic 0.5.3-1build2 amd64
libssl-utils-clojure/bionic,bionic 0.8.3-1 all
libssl1.0-dev/bionic-updates,bionic-security 1.0.2n-1ubuntu5.1 amd64
libssl1.0.0/bionic-updates,bionic-security,now 1.0.2n-1ubuntu5.1 amd64 [已安装]
libssl1.1/bionic-updates,bionic-security,now 1.1.0g-2ubuntu4.1 amd64 [已安装]
从倒数第二条可以看出,libssl的版本为1.0.2n-1ubuntu5.1, 对依赖的修复通过aptitude工具,将libssl从1.0.2n-1ubuntu5 .1降级到1.0.2n-1ubuntu5 ,步骤如下:
sudo apt-get install aptitude
sudo aptitude install libssl1.0-dev