Caprine(通讯客户端)启动失败

Caprine(通讯客户端)启动失败

我习惯在 Ubuntu 上使用 Caprine 作为我的通讯客户端。然而,在 Ubuntu 18.04 上使用几个月后,它就开始出现此异常:

nicnajder@nicnajder:~$ caprine
A JavaScript error occurred in the main process
Uncaught Exception:
Error: EPERM: operation not permitted, chown '/home/nicnajder/snap/caprine/28/.config/Caprine/config.json.2832388994'
    at Object.chownSync (fs.js:1104:3)
    at Function.writeFileSync [as sync] (/snap/caprine/28/resources/app.asar/node_modules/conf/node_modules/write-file-atomic/index.js:196:27)
    at ElectronStore.set store [as store] (/snap/caprine/28/resources/app.asar/node_modules/conf/index.js:277:19)
    at ElectronStore.set (/snap/caprine/28/resources/app.asar/node_modules/conf/index.js:152:14)
    at updateVibrancySetting (/snap/caprine/28/resources/app.asar/dist-js/config.js:155:15)
    at migrate (/snap/caprine/28/resources/app.asar/dist-js/config.js:165:5)
    at Object.<anonymous> (/snap/caprine/28/resources/app.asar/dist-js/config.js:168:1)
    at Module._compile (internal/modules/cjs/loader.js:786:30)
    at Object.Module._extensions..js (internal/modules/cjs/loader.js:798:10)
    at Module.load (internal/modules/cjs/loader.js:645:32)

我尝试重新安装 Caprine,但问题并未解决。有什么办法吗?

编辑:

nicnajder@nicnajder:~$ ls -ld /home/nicnajder/snap{,/caprine{,/28{,/.config{,/Caprine{,/config.json.2832388994}}}}}
ls: cannot access '/home/nicnajder/snap/caprine/28/.config/Caprine/config.json.2832388994': No such file or directory
drwxr-xr-x 5 nicnajder nicnajder 4096 jún 28 12:54 /home/nicnajder/snap
drwxr-xr-x 4 nicnajder nicnajder 4096 aug 22 14:39 /home/nicnajder/snap/caprine
drwxr-xr-x 4 nicnajder nicnajder 4096 aug 22 14:39 /home/nicnajder/snap/caprine/28
drwxr-xr-x 8 nicnajder nicnajder 4096 aug 22 14:39 /home/nicnajder/snap/caprine/28/.config
drwxr-xr-x 2 nicnajder nicnajder 4096 aug 23 12:33 /home/nicnajder/snap/caprine/28/.config/Caprine

答案1

这是一个错误: https://github.com/sindresorhus/caprine/issues/1062

您可以手动安装不受此问题影响的 2.36.0 版本: https://github.com/sindresorhus/caprine/releases/tag/v2.36.0

或者,如果您从以前的版本更新,请使用 snap revert。

相关内容