[Solution] libgconf-2.so.4: cannot open shared object file: No such file or directory

 


1. Problem

When i use electron app, i see error. That error arise becuase of loading shared libraries: libgconf-2.so.4. There is no libarary.

usr@usr-ThinkPad-X1-Yoga-3rd:~/Desktop/RPi/balena-etcher-electron-1.4.9-linux-x64$ ./balena-etcher-electron-1.4.9-x86_64.AppImage 
/tmp/.mount_TUl9n2/usr/bin/balena-etcher-electron: error while loading shared libraries: libgconf-2.so.4: cannot open shared object file: No such file or directory

2. Solution

sudo apt-get install libgconf-2-4 is the solution. If you use ubuntu or debian, you can install using apt-get.

usr@usr-ThinkPad-X1-Yoga-3rd:~/Desktop/RPi/balena-etcher-electron-1.4.9-linux-x64$ sudo apt-get install libgconf-2-4
[sudo] password for usr: 
Reading package lists... Done
Building dependency tree       
Reading state information... Done
The following additional packages will be installed:
  gconf-service gconf-service-backend gconf2-common
The following NEW packages will be installed:
  gconf-service gconf-service-backend gconf2-common libgconf-2-4
0 upgraded, 4 newly installed, 0 to remove and 0 not upgraded.
Need to get 859 kB of archives.
After this operation, 8,092 kB of additional disk space will be used.
Do you want to continue? [Y/n] Y
Get:1 http://us.archive.ubuntu.com/ubuntu focal/universe amd64 gconf2-common all 3.2.6-6ubuntu1 [698 kB]
Get:2 http://us.archive.ubuntu.com/ubuntu focal/universe amd64 libgconf-2-4 amd64 3.2.6-6ubuntu1 [84.8 kB]
Get:3 http://us.archive.ubuntu.com/ubuntu focal/universe amd64 gconf-service-backend amd64 3.2.6-6ubuntu1 [58.6 kB]
Get:4 http://us.archive.ubuntu.com/ubuntu focal/universe amd64 gconf-service amd64 3.2.6-6ubuntu1 [17.4 kB]
Fetched 859 kB in 3s (271 kB/s)          
Selecting previously unselected package gconf2-common.
(Reading database ... 182962 files and directories currently installed.)
Preparing to unpack .../gconf2-common_3.2.6-6ubuntu1_all.deb ...
Unpacking gconf2-common (3.2.6-6ubuntu1) ...
Selecting previously unselected package libgconf-2-4:amd64.
Preparing to unpack .../libgconf-2-4_3.2.6-6ubuntu1_amd64.deb ...
Unpacking libgconf-2-4:amd64 (3.2.6-6ubuntu1) ...
Selecting previously unselected package gconf-service-backend.
Preparing to unpack .../gconf-service-backend_3.2.6-6ubuntu1_amd64.deb ...
Unpacking gconf-service-backend (3.2.6-6ubuntu1) ...
Selecting previously unselected package gconf-service.
Preparing to unpack .../gconf-service_3.2.6-6ubuntu1_amd64.deb ...
Unpacking gconf-service (3.2.6-6ubuntu1) ...
Setting up gconf2-common (3.2.6-6ubuntu1) ...

Creating config file /etc/gconf/2/path with new version
Setting up gconf-service (3.2.6-6ubuntu1) ...
Processing triggers for sgml-base (1.29.1) ...
Setting up libgconf-2-4:amd64 (3.2.6-6ubuntu1) ...
Processing triggers for libc-bin (2.31-0ubuntu9.2) ...
Setting up gconf-service-backend (3.2.6-6ubuntu1) ...