Eclipse 存储库失败“无法读取存储库”
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/18963294/
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
Eclipse Repositories fail "Unable to read repository at"
提问by BeanBagKing
I generally don't use Eclipse, so perhaps I'm doing something wrong, but I've spent several hours going over this and can't find a problem.
我通常不使用 Eclipse,所以也许我做错了什么,但我花了几个小时来解决这个问题,但找不到问题。
I needed a plugin for Eclipse (PigEditor or PigPen) and attempted to install it via repository, this failed with the error below. When it wouldn't install, I downloaded the .zip version, extracted the archive, found the folder containing features and plugins directory and tried installing it. This also failed. I also tried a PigPen .jar and it wasn't picked up at all when placing it into the plugins folder.
我需要一个 Eclipse 插件(PigEditor 或 PigPen)并尝试通过存储库安装它,但失败并出现以下错误。当它无法安装时,我下载了 .zip 版本,解压缩了存档,找到了包含 features 和 plugins 目录的文件夹并尝试安装它。这也失败了。我还尝试了 PigPen .jar,但在将其放入 plugins 文件夹时根本没有被拾取。
I noticed along the way that I received a bunch of error messages where it looked like Eclipse was trying to fetch dependencies. For example...
我注意到一路上我收到了一堆错误消息,看起来 Eclipse 正在尝试获取依赖项。例如...
Error
Unable to read repository at http://download.eclipse.org/eclipse/updates/4.3.
java.io.IOException: http://download.eclipse.org/eclipse/updates/4.3 is not a valid repository location.
That -should- be a valid repository location, it's listed about halfway down here. This unable to read repository is the same error that I got when trying to install the previous plugin from repository.
那 - 应该 - 是一个有效的存储库位置,它在此处列出了大约一半。无法读取存储库与我尝试从存储库安装以前的插件时遇到的错误相同。
I then went to the Preferences -> Available Software Sites and tried all of the default installed repositories. There were 2 checked (the one listed above, and http://download.eclipse.org/releases/kepler) and 2 unchecked (http://download.eclipse.org/egit/updatesand http://www.eclipse.org/modeling/updates). I hit reload on any of those and receive the same error message as above.
然后我转到首选项 -> 可用软件站点并尝试所有默认安装的存储库。有 2 个已选中(上面列出的一个,以及http://download.eclipse.org/releases/kepler)和 2 个未选中(http://download.eclipse.org/egit/updates和http://www.eclipse .org/modeling/updates)。我在其中任何一个上重新加载并收到与上述相同的错误消息。
I can access websites from the internal browser. I've also tried changing my Network Connections preference to "Direct".
我可以从内部浏览器访问网站。我还尝试将我的网络连接首选项更改为“直接”。
Really all I care about is getting a working Pig plugin, so I'll accept that as an answer. I'm getting the feeling though that my failure to get any repositories is a symptom of a bigger problem (and I really want to know what's going on), so if you have troubleshooting steps I'm willing to try anything.
我真正关心的是获得一个有效的 Pig 插件,所以我会接受它作为答案。我有一种感觉,虽然我无法获得任何存储库是一个更大问题的症状(我真的很想知道发生了什么),所以如果你有故障排除步骤,我愿意尝试任何事情。
Sites I'm trying to get the Pig editor from: https://wiki.apache.org/pig/PigPenhttp://romainr.github.io/PigEditor/https://github.com/romainr/PigEditor
我正在尝试从以下位置获取 Pig 编辑器的站点: https://wiki.apache.org/pig/PigPen http://romainr.github.io/PigEditor/ https://github.com/romainr/PigEditor
回答by Fareed Mohammed
Solution :
解决方案 :
Open up .exe eclipse file from command promtp followed by command -vmargs -Djava.net.preferIPv4Stack=true
从命令 promtp 打开 .exe eclipse 文件,然后是命令 -vmargs -Djava.net.preferIPv4Stack=true
or
或者
changed in eclipse.init file.
在 eclipse.init 文件中更改。