重现:
$ wget https://github.com/atom/electron/releases/download/v0.25.1/electron-v0.25.1-linux-x64.zip
$ unzip electron-v0.25.1-linux-x64.zip
$ ./electron
./electron: error while loading shared libraries: libgconf-2.so.4: cannot open shared object file: No such file or directory
这是在 Ubuntu 上:
$ uname -a
Linux burrito 3.13.0-32-generic #57-Ubuntu SMP Tue Jul 15 03:51:08 UTC 2014 x86_64 x86_64 x86_64 GNU/Linux
解决方法是apt-get install libgconf-2-4
但我想因为这在文档或以前的问题中没有提到它可能是一个错误
Chrome 42 之后 libgconf 成为在 Linux 上运行的要求。
试试这个技巧,它对我有用:
解压邮递员后在终端中输入以下命令sudo apt-get install libgconf-2-4
运行以上命令后,您的邮递员肯定会工作。 快乐地生存到 Ubuntu..
sudo apt -y 安装 libgconf2-4
它对我有用。 Ubuntu18。
Linux i386 4.18.0-20-generic #21~18.04.1-Ubuntu SMP Wed May 8 08:43:37 UTC 2019 x86_64 x86_64 x86_64 GNU/Linux
解决方法是
apt-get install libgconf-2-4
但我想因为这在文档或以前的问题中没有提到它可能是一个错误
如果这不起作用,请尝试使用“sudo apt-get install libgconf-2-4”
是的,这解决了我的问题。 须藤 apt-get 安装 libgconf-2-4
谢谢@maxogden
我试过了,但是在全新安装的 LUbuntu 19.10 上它不起作用。
Arch Linux 呢?
究竟什么需要libgconf? 电子? 我们不希望用户不得不
依赖于与 Unity 分开安装的 _any_ 外部库。 基金
曾经在编辑器中需要这个,但 CEF 依赖终于消失了。
我不认为_任何_我们支持的发行版(*仅 *Ubuntu 16.04/18.04 和
CentOS 7) 默认安装了 libgconf。
2020 年 4 月 3 日星期五下午 12:35 Sanket Chaudhari通知@ github.com
写道:
Arch Linux 呢?
—
您收到此消息是因为您订阅了此线程。
直接回复本邮件,在GitHub上查看
https://github.com/electron/electron/issues/1518#issuecomment-608621281 ,
或取消订阅
https://github.com/notifications/unsubscribe-auth/ADB5HLNOGD2LBL6AVMGUV7LRKY27HANCNFSM4BBL7ZQA
.
sudo ln -s /usr/lib/libre2.so /usr/lib/libre2.so.4
将最后一位数字替换为错误。
_喜欢这个评论,如果它解决了问题。_
Arch Linux 呢?
sudo pacman -S gconf
最有用的评论
解决方法是
apt-get install libgconf-2-4
但我想因为这在文档或以前的问题中没有提到它可能是一个错误