insomnia icon indicating copy to clipboard operation
insomnia copied to clipboard

[Installation] Insomnia cannot be installed on ubuntu 18.04

Open Djaler opened this issue 8 years ago • 63 comments

Insomnia package depends on libcurl3. But in Ubuntu 18.04, there are also a libcurl4 package. And curl depends on libcurl4. And, because many of apps depends on curl (and, recursively, on libcurl4), Insomnia cannot be installed.

Djaler avatar Mar 09 '18 14:03 Djaler

Hmm. Are you seeing an error during installation or at runtime?

gschier avatar Mar 10 '18 21:03 gschier

During installation. There are dependencies conflict.

Djaler avatar Mar 10 '18 21:03 Djaler

Can you post the exact error message?

gschier avatar Mar 10 '18 21:03 gschier

dpkg: dependency problems prevent configuration of insomnia:
 insomnia depends on libcurl3; however:
  Package libcurl3 is not installed.

Djaler avatar Mar 10 '18 21:03 Djaler

And, if I try to install libcurl3:

The following packages will be REMOVED:
  curl libcurl4
The following NEW packages will be installed:
  libcurl3

Djaler avatar Mar 10 '18 21:03 Djaler

In Ubuntu 18.04, libcurl3 is deprecated version and all software depends on libcurl4 instead

Djaler avatar Mar 10 '18 21:03 Djaler

Interesting. Is there a libcurl (without the number) package that aliases the latest one that could be included instead maybe?

gschier avatar Mar 10 '18 22:03 gschier

(I haven't used Ubuntu in a few years)

gschier avatar Mar 10 '18 22:03 gschier

I edit debian/control file in deb-package by adding or statement to Depends section (libcurl3 | libcurl4). And after this it was installed successfully. But, in runtime I get this error:

Uncaught Error: /usr/lib/x86_64-linux-gnu/libcurl.so.4: version `CURL_OPENSSL_3' not found (required by /tmp/.org.chromium.Chromium.XnqfXj)
    at process.module.(anonymous function) [as dlopen] (ELECTRON_ASAR.js:173:20)
    at Object.Module._extensions..node (module.js:598:18)
    at Object.module.(anonymous function) [as .node] (ELECTRON_ASAR.js:187:18)
    at Module.load (module.js:488:32)
    at tryModuleLoad (module.js:447:12)
    at Function.Module._load (module.js:439:3)
    at Module.require (module.js:498:17)
    at require (internal/module.js:20:19)
    at Object.<anonymous> (/opt/Insomnia/resources/app.asar/node_modules/insomnia-node-libcurl/lib/Easy.js:40:29)
    at Object.<anonymous> (/opt/Insomnia/resources/app.asar/node_modules/insomnia-node-libcurl/lib/Easy.js:280:3)

Djaler avatar Mar 11 '18 08:03 Djaler

Hmm, this one might be harder to fix than I thought.

gschier avatar Mar 12 '18 22:03 gschier

P.S. If anyone reading this has any ideas for fixing this cleanly, please share below.

gschier avatar Mar 12 '18 22:03 gschier

@Djaler how did you get that runtime error? My window just stays blank and no output to any std.

insomnia

migueldemoura avatar Mar 13 '18 19:03 migueldemoura

@migueldemoura View > Toggle DevTools

Djaler avatar Mar 13 '18 19:03 Djaler

Yeah, same thing here. Just checked, spotify and a bunch of other electron apps have the same issue.

migueldemoura avatar Mar 13 '18 19:03 migueldemoura

Can you create issues in their repos? May be they can find solution

Djaler avatar Mar 13 '18 19:03 Djaler

Spotify has one now: https://community.spotify.com/t5/Desktop-Linux/libcurl4/td-p/4411011. No idea how fix this.

migueldemoura avatar Mar 13 '18 19:03 migueldemoura

@gschier Snap can be workaround for now. What about it?

Djaler avatar Mar 13 '18 19:03 Djaler

Also, bug report in curl repo https://bugs.launchpad.net/ubuntu/+source/curl/+bug/1754686

Djaler avatar Mar 13 '18 19:03 Djaler

@Djaler, there are a couple of those bug reports. See this one as well: https://bugs.launchpad.net/ubuntu/+source/curl/+bug/1754294

migueldemoura avatar Mar 13 '18 19:03 migueldemoura

Yeah, already checked it

Djaler avatar Mar 13 '18 19:03 Djaler