git Github 推送错误。无法读取 askpass 且无法读取用户名
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/14937496/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me):
StackOverFlow
Github push error. unable to read askpass & could not read Username
提问by misschoksondik
I am trying to push within Aptana but am getting the following error. I have successfully pulled, but can't figure out why my push won't work.
我正在尝试在 Aptana 中推送,但出现以下错误。我已经成功拉动了,但不知道为什么我的推送不起作用。
/home/jeni/apps/Aptana_Studio_3/plugins/com.aptana.git.core_3.0.0.1350339960/os/linux/askpass. tcl: 3: exec: wish: not found
error: unable to read askpass response from '/home/jeni/apps/Aptana_Studio_3/plugins/com.aptana.git.core_3.0.0.1350339960/os/linux/askpass.tcl'
fatal: could not read Username for 'https://github.com': No such device or address
回答by Seborreia
I have had the same problem.
我曾经也有过一样的问题。
I am using Ubuntu 12.04, Eclipse with Aptana plug-in. Through Aptana's Git I was having the same problem.
我正在使用 Ubuntu 12.04、Eclipse 和 Aptana 插件。通过 Aptana 的 Git,我遇到了同样的问题。
I solved it by installing TK and TCL packages. It then was able to read the askpass.tcl file.
我通过安装 TK 和 TCL 包解决了它。然后它能够读取 askpass.tcl 文件。
sudo apt-get install tcl
sudo apt-get install tk
Hope this helps
希望这可以帮助
回答by Sawan Vaidya
The message "error: unable to read askpass response from '/tmp/git-askpass-0.sh'" was shown to me when I used Git from Intellij, but git worked fine from the terminal.
当我从 Intellij 使用 Git 时,向我显示了消息“错误:无法从 '/tmp/git-askpass-0.sh' 读取 askpass 响应”,但 git 在终端上运行良好。
I tried Seborreia's method but it did not work
我尝试了 Seborreia 的方法,但没有奏效
Someone suggested rebooting the computer.
有人建议重新启动计算机。
Later on I realized that my jre/bin folder did not have appropriate permissions. Adding +x permissions fixed the issue.
后来我意识到我的 jre/bin 文件夹没有适当的权限。添加 +x 权限修复了该问题。