Skip to content

Error while loading shared libraries: libcurl.so.4 on Ubuntu 16.04 Xfce 4.12 #68

Closed

Description

@ipkpjersi

Description

I cannot clone my repositories, when I attempt to do so I get an error about libcurl.so.4: cannot open shared object file: no such file or directory

Version

  • GitHub Desktop: 1.4.0-linux2 (also happened on 1.3.x and earlier) snap
  • Operating system: Ubuntu 16.04 with Xfce 4.12

Steps to Reproduce

  1. Open GitHub desktop on Ubuntu 16.04 Xfce 4.12
  2. Click clone repository
  3. Pick a repository to clone then click clone repository

Expected Behavior

I expect it to clone the repository

Actual Behavior

I get an error about libcurl.so.4: cannot open shared object file: no such file or directory

Here is a screenshot of the error:

Activity

  1. asianjakepaul commented on Sep 22, 2018

    @asianjakepaul

    I think we have to add libcurl4-openssl-dev to the snap stage packages, will see if I can reproduce this issue and see if my solution fixes it.

    UPDATE
    I can't reproduce this on my ubuntu 16.04 system and ubuntu 18.04 vm, and are you sure you installed 1.4.0-linux2 snap? I don't see that snap package on the releases page? I just installed the 1.4.0-linux3 version, can you give that a try?

  2. ipkpjersi commented on Sep 22, 2018

    @ipkpjersi
    Author

    I am very certain I have installed the 1.4.0-linux2 snap:

    How do I install 1.4.0-linux3 - the latest version on snapcraft is 1.4.0-linux2 as seen here: https://snapcraft.io/github-desktop

  3. asianjakepaul commented on Sep 22, 2018

    @asianjakepaul

    Here is the 1.4.0-linux3 release: https://github.com/shiftkey/desktop/releases/tag/release-1.4.0-linux3

    My bad, this is a pre-release, you can download the snap package and install it via the command line:

    sudo snap install GitHub.snap --classic --dangerous
  4. ipkpjersi commented on Sep 22, 2018

    @ipkpjersi
    Author

    sudo snap install ~/Downloads/GitHubDesktop-linux-amd64-1.4.0-linux3.snap

    error: cannot find signatures with metadata for snap

  5. asianjakepaul commented on Sep 22, 2018

    @asianjakepaul

    You have to add the --classic and --dangerous flags

  6. ipkpjersi commented on Sep 22, 2018

    @ipkpjersi
    Author

    Okay it installs successfully and it works so I'll close this issue, hopefully it will work when it is added to snapcraft. If not, I'll re-open this issue.

  7. shiftkey commented on Sep 22, 2018

    @shiftkey
    Owner

    Thanks for the troubleshooting work @ipkpjersi and @asianjakepaul! I'm co-ordinating with the Snapcraft folks so the latest builds are available there, but they'll also be published here in the meantime.

  8. asianjakepaul commented on Sep 22, 2018

    @asianjakepaul

    @shiftkey it might have something to do with the --dangerous and --classic flags, I believe it does make a difference to how the install works, maybe it allows it to use system libraries outside the snap.

    Also I don't know if something changed since 1.4.0-linux2 and 1.4.0-linux3.

  9. shiftkey commented on Sep 22, 2018

    @shiftkey
    Owner

    Also I don't know if something changed since 1.4.0-linux2 and 1.4.0-linux3.

    I'm not sure what was used before for the stagePackages but upstream we changed our embedded Git to use libcurl with OpenSSL (and not libcurl-gnutls) and the latest build has these stagePackages defined: https://github.com/shiftkey/desktop/pull/64/files#diff-c46ab57cbefdfb467fcd9978d6fff421

  10. ipkpjersi commented on Sep 22, 2018

    @ipkpjersi
    Author

    I'm very pleased how quickly this issue was looked into and resolved. Any chance my other issue - #65 could be looked into some time? Cheers.

  11. ipkpjersi commented on Oct 25, 2018

    @ipkpjersi
    Author

    I know this issue is basically fixed and this is somewhat unrelated but @shiftkey any idea when the snapcraft store will update the snap? It hasn't been updated in over a month so it'd be nice to have the libcurl issue fixed on the latest snapcraft build.

  12. shiftkey commented on Nov 14, 2018

    @shiftkey
    Owner

    I've just published 1.5.0-linux1 that should address the libcurl issue https://github.com/shiftkey/desktop/releases/tag/release-1.5.0-linux1

    I know this issue is basically fixed and this is somewhat unrelated but @shiftkey any idea when the snapcraft store will update the snap?

    @ipkpjersi I'm trying to get access to that feed so I can start publishing these builds to the channel, but I don't have an ETA on that.

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