Repository navigation
Closed
Description
Description
I can't install the .deb package. Seems like broken dependencies on Ubuntu.
Version
- GitHub Desktop: 1.4.0 Linux RC
- Operating system: Ubuntu 18.04 LTS (Minimal Install)
Steps to Reproduce
sudo dpkg -i GitHubDesktop-linux-amd64-1.4.0.deb
Preparing to unpack GitHubDesktop-linux-amd64-1.4.0.deb ...
Unpacking desktop (1.4.0) ...
dpkg: dependency problems prevent configuration of desktop:
desktop depends on libcurl3; however:
Package libcurl3 is not installed.
dpkg: error processing package desktop (--install):
dependency problems - leaving unconfigured
Processing triggers for hicolor-icon-theme (0.17-2) ...
Processing triggers for gnome-menus (3.13.3-11ubuntu1.1) ...
Processing triggers for desktop-file-utils (0.23-1ubuntu3.18.04.1) ...
Processing triggers for mime-support (3.60ubuntu1) ...
Errors were encountered while processing:
desktop
sudo apt install libcurl3
You might want to run 'apt --fix-broken install' to correct these.
The following packages have unmet dependencies:
libcurl3 : Conflicts: libcurl4 but 7.58.0-2ubuntu3.2 is to be installed
libcurl4 : Conflicts: libcurl3 but 7.58.0-2ubuntu2 is to be installed
E: Unmet dependencies. Try 'apt --fix-broken install' with no packages (or specify a solution).
sudo apt install --fix-broken
The following packages will be REMOVED:
desktop
0 upgraded, 0 newly installed, 1 to remove and 0 not upgraded.
1 not fully installed or removed.
- Repeat
Expected Behavior
The program should install.
Actual Behavior
It doesn't install, and attempting to fix the dependencies sends the user in circles.
Additional Information
The GitHub Desktop 1.3.5 Linux RC installs just fine, and the 1.4.0 Linux RC AppImage runs fine.
Metadata
Metadata
Assignees
Labels
No labels
Activity
shiftkey commentedon Sep 12, 2018
@qwertysam the previous installer worked because it didn't define any dependencies 🙊 I wanted to ensure that the new app depended on
libcurl.so.4and I thoughtlibcurl3would do the trick, but maybe that's meant to belibcurl4?Are you able to install
libcurl4viaapt?joaomlneto commentedon Sep 12, 2018
Same issue here.
Setup
shiftkey/desktopmaster branchAfter
yarn run packageinstalling usingsudo dpkg -i dist/GitHubDesktop-linux-amd64-1.4.0.debI have
libcurl4installed; can't installlibcurl3as it results in a conflict(?).joaomlneto commentedon Sep 12, 2018
Updating
script/electron-builder-linux.ymltolibcurl4fixes it for me (installs and launches)shiftkey commentedon Sep 12, 2018
@joaomlneto thanks for confirming that change works - I'll put together a new build this evening.
Am I likely to get people who still rely on
libcurl3or is that only for compatibility and everyone should be depending onlibcurl4?joaomlneto commentedon Sep 12, 2018
Seems
libcurl4is a common dependency starting in Ubuntu 18.04.curldepends onlibcurl4starting on Ubuntu 18.04. Older Ubuntu versions requirelibcurl3.cmakealso depends onlibcurl4starting from 18.04.The insomnia REST client guys had the same issue and seem to have worked a PR to fix it using
snap. Same goes for Spotifyshiftkey commentedon Sep 12, 2018
I just poked at this in Ubuntu
14.04and onlylibcurl3is available (looks the same for Ubuntu16.04) so moving to thelibcurl4dependency will break older Debian-based distros.I'm going to hold off on that update while I figure out other options (maybe ship two deb packages?) and wait for other bright ideas from others.
joaomlneto commentedon Sep 12, 2018
I tried setting the dependency to
libcurl3 | libcurl4and it worked -- same deb package installed fine on my Linux Mint (~18.04) and on a 14.04 docker instance.But this is way out of my league :-) I have no idea of what I'm doing.
shiftkey commentedon Sep 12, 2018
@joaomlneto I just tested that change out too and
dpkg -I *.debseems happy with it, and installing it on my 14.04 VM both seem fine. I'm going to proceed and cut another RC - thanks for your help!shiftkey commentedon Sep 12, 2018
This has been published with
1.4.0 RC2. @qwertysam @joaomlneto please try it out and confirm it's fixed for recent Ubuntu distros!joaomlneto commentedon Sep 12, 2018
Works fine on my fake 18.04 :-)
immackay commentedon Sep 13, 2018
On Arch Linux as of the changes in desktop#5478 I now get the error
/usr/lib/libcurl.so.4: version `CURL_OPENSSL_3' not found (required by /opt/github-desktop/resources/app/git/libexec/git-core/git-remote-https)A fix (that was previously in use, but hadn't been necessary for a while due to linking to libcurl-gnutls) is to install libcurl-openssl-1.0 and then LD_PRELOAD the libraries provided by that package. Not sure if this is necessary though, thoughts?
defaultsamson commentedon Sep 13, 2018
Works fine on my real 18.04 :)
Thanks for the fast response and quick fix, @shiftkey and @joaomlneto
joaomlneto commentedon Sep 13, 2018
Can confirm I have the same problem as @immackay
While it now installs and launches just fine, I'm unable to clone/fetch repositories.
shiftkey commentedon Sep 13, 2018
Looks like I'm now encountering curl/curl#2433 (but that issue discusses Debian distros in particular, which is relevant given Git is compiled on Ubuntu Trusty).
@immackay I think you might have to use that workaround again while I dig into this.
shiftkey commentedon Sep 13, 2018
@joaomlneto @immackay let's talk about this more in desktop/dugite-native#109 because that's where the proper fix needs to occur
shiftkey commentedon Nov 14, 2018
I've just published
1.5.0-linux1that should address thelibcurlissue on newer Ubuntu distros https://github.com/shiftkey/desktop/releases/tag/release-1.5.0-linux1