无法安装GitKraken


16

我刚刚从网站下载了GitKraken(一个Git GUI)。当我尝试通过“发现中心”安装它时,它不起作用。因此,我在网上某个地方找到了该命令dpkg -i [filename],并在gitkraken .deb和andddd MAGIC上使用了该命令!有用!

然后,我尝试运行GitKraken(gitkraken在终端中键入),这给了我这个美丽的错误:

Node started time: 1489531028950
libcurl.so.4: cannot open shared object file: No such file or directory
Error: libcurl.so.4: cannot open shared object file: No such file or directory
    at Error (native)
    at process.module.(anonymous function) [as dlopen] (ELECTRON_ASAR.js:158:20)
    at Object.Module._extensions..node (module.js:568:18)
    at Object.module.(anonymous function) [as .node] (ELECTRON_ASAR.js:169:18)
    at Module.load (module.js:456:32)
    at tryModuleLoad (module.js:415:12)
    at Function.Module._load (module.js:407:3)
    at Module.require (module.js:466:17)
    at require (internal/module.js:20:19)
    at Object.<anonymous> (/usr/share/gitkraken/resources/app.asar/node_modules/nodegit/dist/nodegit.js:11:12)
    at Module._compile (module.js:541:32)
    at Object.Module._extensions..js (module.js:550:10)
    at Module.load (module.js:456:32)
    at tryModuleLoad (module.js:415:12)
    at Function.Module._load (module.js:407:3)
    at Module.require (module.js:466:17)
    at require (internal/module.js:20:19)
    at Object.<anonymous> (/usr/share/gitkraken/resources/app.asar/src/appBootstrap/upgradeScripts/versionScripts/v1_5_0.js:7:17)
    at Module._compile (module.js:541:32)
    at Object.Module._extensions..js (module.js:550:10)
    at Module.load (module.js:456:32)
    at tryModuleLoad (module.js:415:12)
    at Function.Module._load (module.js:407:3)
    at Module.require (module.js:466:17)
    at require (internal/module.js:20:19)
    at Object.<anonymous> (/usr/share/gitkraken/resources/app.asar/src/appBootstrap/upgradeScripts/versionScripts/index.js:5:28)
    at Module._compile (module.js:541:32)
    at Object.Module._extensions..js (module.js:550:10)
    at Module.load (module.js:456:32)
    at tryModuleLoad (module.js:415:12)
    at Function.Module._load (module.js:407:3)
    at Module.require (module.js:466:17)
    at require (internal/module.js:20:19)
    at Object.<anonymous> (/usr/share/gitkraken/resources/app.asar/src/appBootstrap/upgradeScripts/index.js:7:24)
    at Module._compile (module.js:541:32)
    at Object.Module._extensions..js (module.js:550:10)
    at Module.load (module.js:456:32)
    at tryModuleLoad (module.js:415:12)
    at Function.Module._load (module.js:407:3)
    at Module.require (module.js:466:17)
    at require (internal/module.js:20:19)
    at EventEmitter.module.exports.app.on (/usr/share/gitkraken/resources/app.asar/src/appBootstrap/main.js:146:5)
    at emitOne (events.js:101:20)
    at EventEmitter.emit (events.js:188:7)

任何帮助将不胜感激。



@steeldriver已经看到了这个问题。没有答案有效。
Matias K

试试这些:sudo apt update,然后sudo apt dist-upgrade再试一次
George Udosen

Answers:


14

terminal...

  • sudo apt-get update
  • sudo apt-get install curl libcurl3

现在,您的应用程序应该可以运行了。


你是救星。
Matias K

8

我在ubuntu 16.04上安装了libgnome-keyring-common和libgnome-keyring-dev,为我解决了这个问题:

sudo apt install libgnome-keyring-common libgnome-keyring-dev 

1
这适用于不基于GNOME的桌面环境(例如Kubuntu)的发行版。
布鲁诺·

1
这对我在Kubuntu上也起作用!谢谢!
布罗克·沃恩德

1

我使用以下命令:

$ sudo apt-get install curl libcurl3 

并得到以下错误:

Reading package lists... Done
Building dependency tree       
Reading state information... Done
Some packages could not be installed. This may mean that you have
requested an impossible situation or if you are using the unstable
distribution that some required packages have not yet been created
or been moved out of Incoming.
The following information may help to resolve the situation:

The following packages have unmet dependencies:
 curl : Depends: libcurl4 (= 7.58.0-2ubuntu3.8) but it is not going to be installed
E: Unable to correct problems, you have held broken packages.

所以我将命令更改为:

$ sudo apt-get install curl libcurl4

并始终记得之前要更新软件包,如Heynnema所示!

By using our site, you acknowledge that you have read and understand our Cookie Policy and Privacy Policy.
Licensed under cc by-sa 3.0 with attribution required.