在朋友的怂恿下,升级了ubuntu,发现utools爆毙了

1
2
3
4
5
6
Distributor ID:	Ubuntu
Description: Ubuntu 22.04.1 LTS
Release: 22.04
Codename: jammy
➜ ~ dpkg -l | grep utools
ii utools 3.0.3 amd64
  • 日志
1
2
3
4
5
6
7
8
9
10
11
12
13
14
A JavaScript error occurred in the main process
Uncaught Exception:
Error: libcrypto.so.1.1: æ æ³æ å¼å
±äº«å¯¹è±¡æ件: 没æ é£ä¸ªæ件æç
at process.func [as dlopen] (node:electron/js2c/asar_bundle:5:1812)
at Module._extensions..node (node:internal/modules/cjs/loader:1203:18)
at Object.func [as .node] (node:electron/js2c/asar_bundle:5:2039)
at Module.load (node:internal/modules/cjs/loader:988:32)
at Module._load (node:internal/modules/cjs/loader:829:12)
at c._load (node:electron/js2c/asar_bundle:5:13343)
at Module.require (node:internal/modules/cjs/loader:1012:19)
at require (node:internal/modules/cjs/helpers:102:18)
at Object.<anonymous> (/opt/uTools/resources/app.asar/node_modules/addon/index.js:18:62)
at Module._compile (node:internal/modules/cjs/loader:1118:14)
  • 解决
1
2
➜  ~ openssl version
OpenSSL 3.0.2 15 Mar 2022 (Library: OpenSSL 3.0.2 15 Mar 2022)

openssl版本过高,因为在ubuntu20.04还能跑,看报错的意思就是缺少libcrypto.so.1.1,直接从旧系统复制过来就行