Skip to content

Linux: ./electron: error while loading shared libraries: libgconf-2.so.4 #1518

Closed

Description

@max-mapper

to reproduce:

$ 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

this is on 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

Activity

  1. max-mapper commented on Apr 28, 2015

    @max-mapper
    ContributorAuthor

    workaround is apt-get install libgconf-2-4 but I figured since this isn't mentioned anywhere in the docs or previous issues it might be a bug

  2. zcbenz commented on Apr 30, 2015

    @zcbenz
    Contributor

    After Chrome 42 libgconf has become a requirement for running on Linux.

  3. Martialhimanshu commented on Feb 11, 2018

    @Martialhimanshu

    Try this trick, It worked for me:
    after unzipping postman type following command in your terminal
    sudo apt-get install libgconf-2-4
    after running above command your postman will work for definitely. Surving to Ubuntu happily..

  4. Yogesh9900 commented on Mar 25, 2019

    @Yogesh9900

    sudo apt -y install libgconf2-4

  5. Stevengu999 commented on May 23, 2019

    @Stevengu999

    It's worked for me. 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

  6. nitin7068 commented on Jul 30, 2019

    @nitin7068

    workaround is apt-get install libgconf-2-4 but I figured since this isn't mentioned anywhere in the docs or previous issues it might be a bug

    if this is not working then try with " sudo apt-get install libgconf-2-4"

  7. pranavsuresh7 commented on Oct 24, 2019

    @pranavsuresh7

    Yeah, this solved my issue with this. sudo apt-get install libgconf-2-4
    thanks @maxogden

  8. NickkoG commented on Jan 7, 2020

    @NickkoG

    I tried this but on a fresh install of LUbuntu 19.10 it don't work.

  9. sanket143 commented on Apr 3, 2020

    @sanket143

    What about arch linux?

  10. KevinWelton commented on Apr 6, 2020

    @KevinWelton
  11. ZishanAdThandar commented on Jul 22, 2020

    @ZishanAdThandar

    Here is the simplest solution

    sudo ln -s /usr/lib/libre2.so /usr/lib/libre2.so.4

    Replace the last digit as in error.

    LIKE THIS COMMENT IF IT SOLVES THE ISSUE.

  12. sep2 commented on Aug 15, 2020

    @sep2

    What about arch linux?

    sudo pacman -S gconf

  13. gabrielxfs commented on Feb 12, 2021

    @gabrielxfs

    What about arch linux?

    Make the AUR package.

  14. immortalt commented on Aug 12, 2021

    @immortalt

    apt-get install libgconf-2-4

    This works. Thanks!

  15. kkofler commented on Sep 21, 2022

    @kkofler

    According to the comments on the AUR gconf package:

    flying-sheep commented on 2020-01-06 19:20
    Most of the packages that “require” it are actually Electron apps that copy&pasted their dependency lists from elsewhere or failed to update them: Chromium (and subsequently Electron) haven’t been dependent on this for years.

    So if you still get pointed to this bug, it is probably a red herring.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions