Android - 存储库同步失败并出现致命错误:无法查找 android.git.kernel.org(端口 9418)(名称或服务未知)
repo 同步 失败并显示以下消息:
$ repo sync
fatal: Unable to look up android.git.kernel.org (port 9418) (Name or service not known)
fatal: Unable to look up android.git.kernel.org (port 9418) (Name or service not known)
error: Cannot fetch repo
似乎 kernel.org 已被黑客攻击,因此这就是导致问题的原因。 是否有解决方法来解决此问题而不是完全切换到不同的 Android 存储库(例如 github 上的存储库等)?
repo sync fails with the following message:
$ repo sync
fatal: Unable to look up android.git.kernel.org (port 9418) (Name or service not known)
fatal: Unable to look up android.git.kernel.org (port 9418) (Name or service not known)
error: Cannot fetch repo
It seems that kernel.org has been hacked, so this is what is causing the issue.
Is there a workaround to resolve this issue and not to completely switch to different Android repository (such as those on github, etc)?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
所有代码现在都位于 github http://www.github.com/android 中。我不相信 Google 已经对清单(或 repo 工具本身,它具有指向 kernel.org 的硬编码 URL)进行了必要的更改,以便轻松地从那里提取。你也许可以通过一些黑客手段让它工作。
All of the code is now in github at http://www.github.com/android. I don't believe Google has made the necessary changes to the manifest (or the repo tool itself, which has a hardcoded URL to kernel.org) to pull from there easily. You could probably make it work with some hacking around.