You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
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 :)
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.
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
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.
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.
@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?
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:
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.
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.
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.
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.
/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
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.
Activity
pol-rivero commentedon Jul 11, 2025
Thanks for reporting! As a temporary workaround, you can fix it by running:
pol-rivero commentedon Jul 11, 2025
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 :)
thangckt commentedon Jul 11, 2025
hi @pol-rivero
Thank you for the fix.
But I think it is not good idea to solve the problem with this
If that is what you actually did in you rpm, so it is a bad idea.
pol-rivero commentedon Jul 11, 2025
As far as I've seen,
libcurl-gnutlsis not available in Fedora, and the symlink was the advice given in the upstream: shiftkey#21Of 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.
thangckt commentedon Jul 11, 2025
why not replace
libcurl-gnutlswith standardlibcurl?pol-rivero commentedon Jul 11, 2025
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
thangckt commentedon Jul 11, 2025
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 || truepol-rivero commentedon Jul 11, 2025
@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.
pol-rivero commentedon Jul 11, 2025
Upstream issue: desktop/dugite-native#527
thangckt commentedon Jul 11, 2025
What happen with such links when you uninstall the app?
pol-rivero commentedon Jul 11, 2025
That's a fair point
pol-rivero commentedon Aug 12, 2025
It seems that the dugite-native issue I opened has been completely ignored.
@thangckt If you feel more comfortable with your
sedworkaround rather than the symlink, feel free to open a PR and I'll accept it.thangckt commentedon Aug 13, 2025
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.
pol-rivero commentedon Aug 13, 2025
@thangckt I'm not familiar with how DNF/RPM handles file conflicts between packages. If I add
/usr/lib64/libcurl-gnutls.so.4as a package file, what would happen if another package also includes this file?pol-rivero commentedon Aug 13, 2025
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:
libcurl-gnutlsfrom other sources), installation will (maybe??) fail.sedto patch the binary.I was originally against the
sedoption, but after seeing the disadvantages of the other alternatives, I think we should probably go with it.RPM: Patch binaries instead of creating symlink
thangckt commentedon Aug 30, 2025
hi @pol-rivero, this simple patch seem no longer work with the last update
It mean, you may need to build rpm against
libcurlinstead oflibcurl-gnutlspol-rivero commentedon Aug 30, 2025
It's working on my end using docker:
The
git-remote-httpscommand should print this output (instead oferror while loading shared libraries: libcurl-gnutls.so.4):Could you share a sequence of commands that reproduce the error inside the
fedora:latestdocker container?That's unfortunately not possible. The
libcurl-gnutlsdependency comes from dugite (the embeddedgitbinary inside GitHub Desktop), which I don't have control over. I already opened this issue, but it hasn't been answered.thangckt commentedon Aug 31, 2025
I get this runtime error
Do you know how to avoid this?
Thanks.
pol-rivero commentedon Aug 31, 2025
It seems that you are having connection errors. Does
ping github.comwork? Try alsocurl https://github.com.thangckt commentedon Sep 1, 2025
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 thansedandlnMerge pull request #4 from garethedwards-tass/multi-user
Address review feedback: fix overflow toggle, no-resolution state, docs
Remove libcurl-gnutls dependency