Skip to content

broken depedencies in v3.5.1 #4

Closed

Description

@thangckt

hi @pol-rivero
Thank you for the new update.

I am on Fedora 42, and there is runtime error with dependencies

/usr/lib/github-desktop/resources/app/git/libexec/git-core/git-remote-https: error while loading shared libraries: libcurl-gnutls.so.4: cannot open shared object file: No such file or directory
fatal: remote helper 'https' aborted session

Your RPM shipped with libcurl compiled with GnuTLS. On new distros, libcurl is usually built with OpenSSL, not GnuTLS, so it does not provide libcurl-gnutls.so.4.

Can you fix this broken?
Thanks.

Activity

  1. pol-rivero commented on Jul 11, 2025

    @pol-rivero
    Member

    Thanks for reporting! As a temporary workaround, you can fix it by running:

    sudo ln -s /usr/lib64/libcurl.so.4 /usr/lib64/libcurl-gnutls.so.4
    
  2. pol-rivero commented on Jul 11, 2025

    @pol-rivero
    Member

    It should now be fixed in the latest re-release of v3.5.1 (unfortunately I cannot increase the version number, as I'm trying to always follow the upstream version).

    Please let me know if you are still having this issue after reinstalling :)

  3. thangckt commented on Jul 11, 2025

    @thangckt
    Author

    hi @pol-rivero

    Thank you for the fix.
    But I think it is not good idea to solve the problem with this

    sudo ln -s /usr/lib64/libcurl.so.4 /usr/lib64/libcurl-gnutls.so.4
    

    If that is what you actually did in you rpm, so it is a bad idea.

  4. pol-rivero commented on Jul 11, 2025

    @pol-rivero
    Member

    As far as I've seen, libcurl-gnutls is not available in Fedora, and the symlink was the advice given in the upstream: shiftkey#21
    Of course, this is far from a perfect solution, so please let me know if you are able to find a better way.

    Edit: Yes, the symlink is the workaround I added to the RPM. If we find a better solution I will remove it.

  5. thangckt commented on Jul 11, 2025

    @thangckt
    Author

    why not replace libcurl-gnutls with standard libcurl?

  6. pol-rivero commented on Jul 11, 2025

    @pol-rivero
    Member

    That's a dependency of dugite-native, I unfortunately cannot replace the dependency directly.

    Looking at the changes, I don't see anything strange that could have caused the new dependency (other than just updating the Git version). We will have to keep searching...
    Edit: Found it! desktop/dugite-native@c64f13f

  7. thangckt commented on Jul 11, 2025

    @thangckt
    Author

    I did locally with this, and it works for me

    find %{buildroot}/usr/lib/%{name} -type f -executable -exec \
        sed -i 's/libcurl-gnutls\.so\.4/libcurl.so.4\x00\x00\x00\x00\x00\x00\x00/g' {} \; 2>/dev/null || true
  8. pol-rivero commented on Jul 11, 2025

    @pol-rivero
    Member

    @thangckt That's no better than the symlink.

    Let's first see if the GitHub (dugite) team are willing to return to libcurl as a proper solution.

  9. pol-rivero commented on Jul 11, 2025

    @pol-rivero
    Member
  10. thangckt commented on Jul 11, 2025

    @thangckt
    Author

    That's no better than the symlink.

    What happen with such links when you uninstall the app?

  11. pol-rivero commented on Jul 11, 2025

    @pol-rivero
    Member

    That's a fair point

  12. pol-rivero commented on Aug 12, 2025

    @pol-rivero
    Member

    It seems that the dugite-native issue I opened has been completely ignored.
    @thangckt If you feel more comfortable with your sed workaround rather than the symlink, feel free to open a PR and I'll accept it.

  13. thangckt commented on Aug 13, 2025

    @thangckt
    Author

    hi @pol-rivero
    I think the symlink is more straigtht forward.
    The problem to avoid manually manage it is to put it in rpm build, then package manager can handle when user install/uninstall app.

  14. pol-rivero commented on Aug 13, 2025

    @pol-rivero
    Member

    @thangckt I'm not familiar with how DNF/RPM handles file conflicts between packages. If I add /usr/lib64/libcurl-gnutls.so.4 as a package file, what would happen if another package also includes this file?

  15. pol-rivero commented on Aug 13, 2025

    @pol-rivero
    Member

    I've done some digging online and found conflicting information. The rpm docs say that 2 packages can provide the same file as long as "the files they own are identical", but these StackOverflow answers say that "rpm doesn't care about the contents of the file".

    So, right now, we have 3 options:

    1. Provide the symlink as part of the package
      • Pros: The symlink will be cleaned up when the package is uninstalled.
      • Cons: If another package attempts the same workaround (or the user has installed libcurl-gnutls from other sources), installation will (maybe??) fail.
    2. Create the symlink as a post-install script
      • Pros: Doesn't conflict with other packages at install time.
      • Cons: Doesn't remove the symlink when the package is uninstalled. If a package that attempts the method 1 is installed after ours, its installation will probably fail until the user manually removes the symlink.
    3. Use sed to patch the binary.
      • Pros: Doesn't interfere with other packages in any way.
      • Cons: Hacky and fragile.

    I was originally against the sed option, but after seeing the disadvantages of the other alternatives, I think we should probably go with it.

  16. thangckt commented on Aug 30, 2025

    @thangckt
    Author

    hi @pol-rivero, this simple patch seem no longer work with the last update

    It mean, you may need to build rpm against libcurl instead of libcurl-gnutls

  17. pol-rivero commented on Aug 30, 2025

    @pol-rivero
    Member

    this simple patch seem no longer work with the last update

    It's working on my end using docker:

    docker run -it fedora:latest bash
    
    # Run commands below inside the container
    
    sudo rpm --import https://gpg.polrivero.com/public.key
    echo -e "[github-desktop-plus]\nname=GitHub Desktop Plus\nbaseurl=https://rpm.github-desktop.polrivero.com/\nenabled=1\ngpgcheck=1\nrepo_gpgcheck=1\ngpgkey=https://gpg.polrivero.com/public.key" | sudo tee /etc/yum.repos.d/github-desktop-plus.repo
    
    sudo dnf check-update
    sudo dnf install github-desktop-plus
    
    /usr/lib/github-desktop-plus/resources/app/git/libexec/git-core/git-remote-https
    

    The git-remote-https command should print this output (instead of error while loading shared libraries: libcurl-gnutls.so.4):

    /lib64/libcurl.so.4: no version information available (required by /usr/lib/github-desktop-plus/resources/app/git/libexec/git-core/git-remote-https)
    error: remote-curl: usage: git remote-curl <remote> [<url>]
    

    Could you share a sequence of commands that reproduce the error inside the fedora:latest docker container?


    you may need to build rpm against libcurl instead of libcurl-gnutls

    That's unfortunately not possible. The libcurl-gnutls dependency comes from dugite (the embedded git binary inside GitHub Desktop), which I don't have control over. I already opened this issue, but it hasn't been answered.

  18. thangckt commented on Aug 31, 2025

    @thangckt
    Author

    I get this runtime error

    /usr/lib/github-desktop-plus/resources/app/git/libexec/git-core/git-remote-https: /lib64/libcurl.so.4: no version information available (required by /usr/lib/github-desktop-plus/resources/app/git/libexec/git-core/git-remote-https)
    fatal: unable to access 'https://github.com/thangckt/note_dev.git/': Failed to connect to github.com port 443 after 1 ms: Could not connect to server
    

    Do you know how to avoid this?
    Thanks.

  19. pol-rivero commented on Aug 31, 2025

    @pol-rivero
    Member

    Failed to connect to github.com port 443 after 1 ms: Could not connect to server

    It seems that you are having connection errors. Does ping github.com work? Try also curl https://github.com.

  20. thangckt commented on Sep 1, 2025

    @thangckt
    Author

    It seems that you are having connection errors

    It is. Thank you for pointing out. My network becomes crazy without dead, so I did not realize its problem.

    About, original problem, I found another solution is use patchelf. It is safer than sed and ln

  21. added a commit that references this issue on Jan 21, 2026
  22. added a commit that references this issue on Jun 19, 2026
    c012998
  23. added a commit that references this issue on Aug 13, 2026
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