New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Missing dependency in AppImage: libgconf-2 #1305

Open
richprim opened this Issue Apr 14, 2017 · 21 comments

Comments

Projects
None yet
8 participants
@richprim

richprim commented Apr 14, 2017

  • Etcher version: 1.0.0. build 19
  • Operating system and architecture: Ubuntu 17.04 on a 64 bit HP computer
  • Do you see any meaningful error information on DevTools?
    Etcher won't work on the new Ubuntu 17.04 OS
    Rich Prim
@jviotti

This comment has been minimized.

Show comment
Hide comment
@jviotti

jviotti Apr 15, 2017

Member

Hey there @richprim,

Thanks for reporting! I'll install Ubuntu 17.04 next week and I'll see how it goes. What is the error that you get though?

Member

jviotti commented Apr 15, 2017

Hey there @richprim,

Thanks for reporting! I'll install Ubuntu 17.04 next week and I'll see how it goes. What is the error that you get though?

@richprim

This comment has been minimized.

Show comment
Hide comment
@richprim

richprim Apr 18, 2017

Etcher just doesn't open.
It asked if it should open it on the desktop, I click yes and noting happens.
Etcher is a great program, much easier then dd.
I had put 17.04 on a second drive so just re-installed my 16.10 ubuntu drive.
I tried etcher on a HP and a Dell computer, both failed.
Looking forward to a fix.
Rich Prim

richprim commented Apr 18, 2017

Etcher just doesn't open.
It asked if it should open it on the desktop, I click yes and noting happens.
Etcher is a great program, much easier then dd.
I had put 17.04 on a second drive so just re-installed my 16.10 ubuntu drive.
I tried etcher on a HP and a Dell computer, both failed.
Looking forward to a fix.
Rich Prim

@jviotti

This comment has been minimized.

Show comment
Hide comment
@jviotti

jviotti Apr 18, 2017

Member

@lurch @Shou Is any of you running 17.04? I tried to download and install Ubuntu twice, however the installer always fails in both a VM and a NUC.

Member

jviotti commented Apr 18, 2017

@lurch @Shou Is any of you running 17.04? I tried to download and install Ubuntu twice, however the installer always fails in both a VM and a NUC.

@Shou

This comment has been minimized.

Show comment
Hide comment
@Shou

Shou Apr 18, 2017

Contributor

@jviotti It seems to work here, both my dev Etcher, and the AppImage from the Etcher website.

Contributor

Shou commented Apr 18, 2017

@jviotti It seems to work here, both my dev Etcher, and the AppImage from the Etcher website.

@richprim

This comment has been minimized.

Show comment
Hide comment
@richprim

richprim Apr 18, 2017

richprim commented Apr 18, 2017

@lurch

This comment has been minimized.

Show comment
Hide comment
@lurch

lurch Apr 19, 2017

Contributor

I've been doing some experimentation in VirtualBox instances running the LiveCD versions of Ubuntu 16.10 and 17.04, and I believe I've tracked down the problem.
In Ubuntu 16.10 and below, the libgconf package is a requirement of the ubuntu-desktop package, which means that it's always available. However in Ubuntu 17.04 libgconf isn't required by the ubuntu-desktop package, which means that it isn't installed by default. In turn, that means attempting to run Etcher on a default install of Ubuntu 17.04 fails with:

/tmp/.mount_mMxWX5/usr/bin/etcher: error while loading shared libraries: libgconf-2.so.4: cannot open shared object file: No such file or directory

(gconf is listed as an Etcher pre-requisite at https://github.com/resin-io/etcher/blob/master/docs/USER-DOCUMENTATION.md#runtime-gnulinux-dependencies )
Additionally, in Ubuntu 17.04 libgconf-2-4 has moved from Section: libs to Section: universe/libs.

So @richprim to get Etcher working in Ubuntu 17.04 you need to go into the "Software & Updates" application in Ubuntu's "System Settings" section, enable the "Community-maintained free and open-source software (universe)" option, close that dialog and Reload the software index, and then once that's finished open up a Terminal window and type:

sudo apt-get install -y libgconf-2-4

and then you should finally find that Etcher now works as expected! (but please let us know if it still doesn't work).
Apologies for the inconvenience.

@jviotti This reminds me very much of #835 but I guess unfortunately for us Ubuntu 17.04 is likely to be much more widely used than Fedora 25 :-/

EDIT: Just done a quick bit of research, and found you can do all the above steps in a one-liner:

sudo add-apt-repository universe && sudo apt-get update && sudo apt-get install -y libgconf-2-4
Contributor

lurch commented Apr 19, 2017

I've been doing some experimentation in VirtualBox instances running the LiveCD versions of Ubuntu 16.10 and 17.04, and I believe I've tracked down the problem.
In Ubuntu 16.10 and below, the libgconf package is a requirement of the ubuntu-desktop package, which means that it's always available. However in Ubuntu 17.04 libgconf isn't required by the ubuntu-desktop package, which means that it isn't installed by default. In turn, that means attempting to run Etcher on a default install of Ubuntu 17.04 fails with:

/tmp/.mount_mMxWX5/usr/bin/etcher: error while loading shared libraries: libgconf-2.so.4: cannot open shared object file: No such file or directory

(gconf is listed as an Etcher pre-requisite at https://github.com/resin-io/etcher/blob/master/docs/USER-DOCUMENTATION.md#runtime-gnulinux-dependencies )
Additionally, in Ubuntu 17.04 libgconf-2-4 has moved from Section: libs to Section: universe/libs.

So @richprim to get Etcher working in Ubuntu 17.04 you need to go into the "Software & Updates" application in Ubuntu's "System Settings" section, enable the "Community-maintained free and open-source software (universe)" option, close that dialog and Reload the software index, and then once that's finished open up a Terminal window and type:

sudo apt-get install -y libgconf-2-4

and then you should finally find that Etcher now works as expected! (but please let us know if it still doesn't work).
Apologies for the inconvenience.

@jviotti This reminds me very much of #835 but I guess unfortunately for us Ubuntu 17.04 is likely to be much more widely used than Fedora 25 :-/

EDIT: Just done a quick bit of research, and found you can do all the above steps in a one-liner:

sudo add-apt-repository universe && sudo apt-get update && sudo apt-get install -y libgconf-2-4
@jviotti

This comment has been minimized.

Show comment
Hide comment
@jviotti

jviotti Apr 19, 2017

Member

@lurch Amazing research! libgconf-2-4 is already listed as a dependency for the debian package (https://github.com/resin-io/etcher/blob/master/scripts/build/debian/config.json#L23), so I guess this only affects AppImages.

Do you know of any way we can prevent this from happening? Otherwise, would you mind updating the installation instructions to include that one liner that installs the package?

Member

jviotti commented Apr 19, 2017

@lurch Amazing research! libgconf-2-4 is already listed as a dependency for the debian package (https://github.com/resin-io/etcher/blob/master/scripts/build/debian/config.json#L23), so I guess this only affects AppImages.

Do you know of any way we can prevent this from happening? Otherwise, would you mind updating the installation instructions to include that one liner that installs the package?

@richprim

This comment has been minimized.

Show comment
Hide comment
@richprim

richprim Apr 20, 2017

richprim commented Apr 20, 2017

@richprim

This comment has been minimized.

Show comment
Hide comment
@richprim

richprim Apr 21, 2017

richprim commented Apr 21, 2017

@lurch

This comment has been minimized.

Show comment
Hide comment
@lurch

lurch Apr 22, 2017

Contributor

Thanks for the compliments, and for confirming that Etcher is working for you now :-)

Contributor

lurch commented Apr 22, 2017

Thanks for the compliments, and for confirming that Etcher is working for you now :-)

@jviotti

This comment has been minimized.

Show comment
Hide comment
@jviotti

jviotti May 9, 2017

Member

Closing this, since there's not much we can do from our side.

Member

jviotti commented May 9, 2017

Closing this, since there's not much we can do from our side.

@jviotti jviotti closed this May 9, 2017

@lurch

This comment has been minimized.

Show comment
Hide comment
@lurch

lurch May 10, 2017

Contributor

Reopening - I was going to do additional tests (IIRC @jviotti asked me to find out whether this requirement was due to electron or appimages), and I was also going to add some notes to the documentation (for all the users that come across this in future).
Just hadn't got around to either yet I'm afraid.

Contributor

lurch commented May 10, 2017

Reopening - I was going to do additional tests (IIRC @jviotti asked me to find out whether this requirement was due to electron or appimages), and I was also going to add some notes to the documentation (for all the users that come across this in future).
Just hadn't got around to either yet I'm afraid.

@lurch lurch reopened this May 10, 2017

@jviotti

This comment has been minimized.

Show comment
Hide comment
@jviotti

jviotti May 10, 2017

Member

Oh OK, sorry about that!

Member

jviotti commented May 10, 2017

Oh OK, sorry about that!

@lurch lurch self-assigned this May 10, 2017

@jviotti jviotti modified the milestones: v1.0, Backlog May 10, 2017

@probonopd

This comment has been minimized.

Show comment
Hide comment
@probonopd

probonopd Dec 3, 2017

libgconf-2.so.4 needs to be bundled inside the AppImage then.

probonopd commented Dec 3, 2017

libgconf-2.so.4 needs to be bundled inside the AppImage then.

@lurch lurch removed their assignment Mar 1, 2018

@probonopd

This comment has been minimized.

Show comment
Hide comment
@probonopd

probonopd Apr 10, 2018

ubuntu-18.04-beta2-desktop-amd64.iso is also affected.

probonopd commented Apr 10, 2018

ubuntu-18.04-beta2-desktop-amd64.iso is also affected.

@FastThenLeft

This comment has been minimized.

Show comment
Hide comment
@FastThenLeft

FastThenLeft Apr 27, 2018

Released Ubuntu 18.04 Desktop amd64 is also affected.

FastThenLeft commented Apr 27, 2018

Released Ubuntu 18.04 Desktop amd64 is also affected.

@probonopd

This comment has been minimized.

Show comment
Hide comment
@probonopd

probonopd Apr 27, 2018

@jvotti I think adding libgconf-2.so.4 might be a simple fix

probonopd commented Apr 27, 2018

@jvotti I think adding libgconf-2.so.4 might be a simple fix

@jhermsmeier jhermsmeier changed the title from Ubuntu 17.04 to Missing dependency in AppImage: libgconf-2 May 9, 2018

@probonopd

This comment has been minimized.

Show comment
Hide comment
@probonopd

probonopd May 10, 2018

Workaround: sudo apt install libgconf2-4, then the AppImage will run. But it needs to be fixed inside the AppImage.

probonopd commented May 10, 2018

Workaround: sudo apt install libgconf2-4, then the AppImage will run. But it needs to be fixed inside the AppImage.

@probonopd

This comment has been minimized.

Show comment
Hide comment
@probonopd

probonopd Jul 21, 2018

Still

me@host:~$ ./etcher-electron-1.4.4-x86_64.AppImage 
3226
/tmp/.mount_zrTT19/usr/bin/etcher-electron: error while loading shared libraries: libgconf-2.so.4: cannot open shared object file: No such file or directory

Please do fix this; the fix is easy and this is getting annoying. Thanks!

probonopd commented Jul 21, 2018

Still

me@host:~$ ./etcher-electron-1.4.4-x86_64.AppImage 
3226
/tmp/.mount_zrTT19/usr/bin/etcher-electron: error while loading shared libraries: libgconf-2.so.4: cannot open shared object file: No such file or directory

Please do fix this; the fix is easy and this is getting annoying. Thanks!

@ZavenPetrosyan

This comment has been minimized.

Show comment
Hide comment
@ZavenPetrosyan

ZavenPetrosyan commented Aug 4, 2018

thanks

@jstressman

This comment has been minimized.

Show comment
Hide comment
@jstressman

jstressman Sep 23, 2018

I concur with @probonopd

Seeing that this very easy fix has still not been implemented after 19 months is rather irritating.

Is there some reason nobody cares that this program simply does not work on Ubuntu Linux for the past few releases? (Over at least 2 major releases over the course of around a year and a half now.)

It asks if you want to install a desktop file, but then just silently fails after that if you aren't running it from a command line to see the error about libgconf.

jstressman commented Sep 23, 2018

I concur with @probonopd

Seeing that this very easy fix has still not been implemented after 19 months is rather irritating.

Is there some reason nobody cares that this program simply does not work on Ubuntu Linux for the past few releases? (Over at least 2 major releases over the course of around a year and a half now.)

It asks if you want to install a desktop file, but then just silently fails after that if you aren't running it from a command line to see the error about libgconf.

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