简体   繁体   English

使用cygwin在Windows 7中使用repo init错误

[英]repo init error in windows 7 with cygwin

I work in the Windows7 platform, and I want to download the Android source code, so I tried to get it to work together with cygwin + git + repo. 我在Windows7平台上工作,我想下载Android源代码,所以我试着让它与cygwin + git + repo一起工作。 But an error occurred while I executed the following code to init the repo tool: 但是,当我执行以下代码来初始化repo工具时发生错误:

$ repo init -u https://android.googlesource.com/platform/manifest

Error message: 错误信息:

$ repo init -u https://android.googlesource.com/platform/manifest
gpg: keyblock resource `/home/Administrator/.repoconfig/gnupg\secring.gpg': file open error
gpg: keyblock resource `/home/Administrator/.repoconfig/gnupg\pubring.gpg': file open error
gpg: no writable keyring found: eof
gpg: error reading `[stdin]': general error
gpg: import from `[stdin]' failed: general error
gpg: Total number processed: 0
fatal: registering repo maintainer keys failed

I looked at the directory for /home/Administrator/.repoconfig/gnupg\\ ,and there was nothing! 我查看了/home/Administrator/.repoconfig/gnupg \\的目录,什么都没有!

Has anyone ever had this problem before? 以前有没有人遇到这个问题? What can I do to make it correct. 我该怎么做才能使它正确。 Thank you very much. 非常感谢你。

I had same problem. 我有同样的问题。 But I installed gnupg and resolved. 但我安装了gnupg并解决了。
I thought that I installed msysgit and system path include msysgit/mingw/bin/gpg.exe file. 我以为我安装了msysgit,系统路径包含msysgit / mingw / bin / gpg.exe文件。

So, cygwin shell can reference to incorrect gpg.exe( Not sure :) ) 所以,cygwin shell可以引用不正确的gpg.exe(不确定:))

First, you need to execute cygwin setup.exe. 首先,您需要执行cygwin setup.exe。 And then, check Utils/gnupg and install. 然后,检查Utils / gnupg并安装。
And then retry. 然后重试。

Well turns out my problem was caused by the windows version of git using "\\". 好吧结果我的问题是由使用“\\”的Windows版本的git引起的。 I simply uninstalled the windows version of git and then installed git for Cygwin(found under Devel) using the setup program. 我只是卸载了windows版本的git,然后使用安装程序为Cygwin(在Devel下找到)安装了git。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM