我刚刚从网站下载并安装了 GitKraken(一个 Git GUI)。当我尝试通过“发现中心”安装它时,它不起作用。所以我在网上找到了命令dpkg -i [filename]
,在 gitkraken .deb 上使用它,然后奇迹发生了!它起作用了!
然后我尝试运行 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)
任何帮助将不胜感激。
答案1
在terminal
...
sudo apt-get update
sudo apt-get install curl libcurl3
现在你的应用程序应该可以运行了。
答案2
我在 ubuntu 16.04 上安装了 libgnome-keyring-common 和 libgnome-keyring-dev,这为我解决了这个问题:
sudo apt install libgnome-keyring-common libgnome-keyring-dev
答案3
我使用了以下命令:
$ 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 所示!