我正在尝试将此存储库添加到 Eclipse (Indigo):-
http://download.eclipse.org /releases/indigo
在浏览器中检查时似乎没问题,但我在 Eclipse 中不断收到“无法连接”的消息,当我检查 URL Eclipse 显然正在寻找:-
http://download.eclipse.org/releases/indigo/content.xml
中浏览器时,我收到“404 未找到”。以前版本(例如伽利略)的位置似乎也不在那里。他们搬家了吗?我误解了什么吗?
我尝试了上一个线程中的一些建议:-
Eclipse 更新不起作用
但它们不起作用似乎没有用(而且我没有使用代理)。
I'm trying to add this repository to Eclipse (Indigo):-
http://download.eclipse.org/releases/indigo
Seems okay when checked in a browser, but I keep getting "unable to connect" in Eclipse, and when I check the URL Eclipse is apparently looking for:-
http://download.eclipse.org/releases/indigo/content.xml
in a browser, I get a "404 not found". The locations for previous releases (e.g. galileo) don't seem to be there either. Have they moved? Am I misunderstanding something?
I tried some of the suggestions in this previous thread:-
Eclipse updates not working
But they don't seem to work (and I'm not using a proxy anyway).
发布评论
评论(6)
这对我有用:
打开终端。导航到 Eclipse 文件夹。
在底部,添加以下行:
然后按 ctrl+O 保存,按 ctrl+X 关闭(它在底部显示)。 IPv4/IPv6 问题?解决了。
然后删除 VonC 所说的缓存:(
这可以使用“sudo rmdir /p2/org.eclipse.equinox.p2.repository/cache”或通过在终端中键入“sudo nautilus”来完成,以打开 root 权限的文件系统浏览器,而不是导航到文件夹,选择文件夹,然后按删除键)。然后重新启动 eclipse,转到帮助>安装新软件>可用软件站点
确保您想要的存储库(例如“
还没有工作吗?窗口>显示视图>内部网络浏览器;检查它是否可以访问互联网。希望有帮助!
信用至:
http://drfits.com/2011/11/13/eclipse-contacting-software-sites-has-encountered-a-problem/
VonC 2011-09-14 6:03
This worked for me:
Open terminal. Navigate to Eclipse folder.
at the bottom, add this line in:
Then ctrl+O to save, ctrl+X to close (it says at bottom). IPv4/IPv6 problems? Solved.
Then delete the cache VonC said to:
(This can be done using "sudo rmdir /p2/org.eclipse.equinox.p2.repository/cache" or by typing "sudo nautilus" into terminal, to open a root-priveleged filesystem browser, than navigating to, selecting the folder, and pressing the delete key). Then restart eclipse, goto Help>install new software>available software sites
Make sure the repos you want (such as "http://download.eclipse.org/egit/updates/") has a "/" right at the end. If it doesn't, delete that entry, and create a new, identical one which does, because Eclipse won't just let you edit it and click ok. Then click ok, and from the combo box choose e.g. the egit link, and lo, it will find it.
Still not working? Window>show view>internal web browser; check it can access internet. Hope that helps!
Credit to:
http://drfits.com/2011/11/13/eclipse-contacting-software-sites-has-encountered-a-problem/
VonC Sep 14 '11 at 6:03
我使用了VonC的答案,效果很好。我还卸载了一个名为 webroot 的程序。我认为这与此有关,因为其他程序也存在网络问题。
I used VonC's answer to good effect. I also uninstalled a program called webroot. I think this had something to do with it because other programs were also having network problems.
这是因为 Windows IPV6 问题。尝试在 eclipse.ini 中添加以下 VM 选项
This is because windows IPV6 issue. Try adding the following VM option in the eclipse.ini
您可以通过 Eclipse 连接到互联网吗?
打开内部网络浏览器。在 Eclipse 中:窗口 ->显示视图->其他->一般:内部网络浏览器。
查找任何正常地址,是否有效?
您可以连接到另一个更新站点吗?尝试使用 Eclipse Emma 为例:http://update.eclemma.org/ 你在那里看到了什么吗?
您的代理偏好是什么?转到窗口 ->偏好->一般:网络连接。
活动提供程序:
指定打开连接时要使用的设置配置文件。选择 Direct 提供程序会导致打开所有连接,而无需使用代理服务器。选择“手动”会导致使用 Eclipse 中定义的设置。在某些平台上,还有一个可用的本机提供程序,选择此提供程序会导致使用在操作系统中发现的设置。
如果互联网在 Eclipse 之外工作正常,请尝试更改为 Native。之后,尝试直接。
我遇到过更新站点无法加载的问题,然后我不得不将其删除并再次添加。这会强制 Eclipse 重新读取站点的内容,即使它有缓存的副本。因此,如果您仍然无法连接到 Indigo 更新站点,但其他一切正常,请尝试一下。转到窗口 ->首选项->安装/更新:可用的软件站点。然后删除并添加靛蓝位点。请记住复制地址,以便您可以再次添加。
正如 @lostiniceland 在下面的评论中所建议的,这是实现上述目标的一种更简单的方法:
转到首选项 ->安装更新 ->可用软件站点 =>选择该条目并单击右侧的“重新加载”按钮。当您有用于测试自定义插件的本地更新站点时,这有时也会很有帮助
Can you connect to internet at all through Eclipse?
Open the internal webbrowser. In Eclipse: Window -> show view -> Other -> General: Internal web browser.
Look up any normal adress, is it working?
Can you connect to another update site? Try for example Eclipse Emma: http://update.eclemma.org/ Do you see anything there?
What are your proxy preferences? Go to Window -> preferences -> General: Network connections.
The active provider:
Specifies the settings profile to be used when opening connections. Choosing the Direct provider causes all the connections to be opened without the use of a proxy server. Selecting Manual causes settings defined in Eclipse to be used. On some platforms there is also a Native provider available, selecting this one causes settings that were discovered in the OS to be used.
If internet is working fine outside of Eclipse, try changing to Native. After that, try Direct.
I have encountered problems where an update site would not load, then I had to remove it and add it again. This forces Eclipse to reread the contents of the site even if it has a cached copy. So, if you still get no connection to the indigo update site, but everything else is working, try that. Go to Window -> Preferences -> Install/update: Available Software sites. Then remove and add the indigo site. Just remember to copy the adress so you can add it again.
As suggested in a comment below by @lostiniceland, this is a simpler way to achieve the above:
Goto Preferences -> Install Update -> Available Software Sites => select the entry and click the "Reload" button to the right. This is sometimes also helpful when you have a local updatesite for testing custom plugins
首先解决代理冲突,如果Eclipse也无法连接到互联网*关闭您的防火墙/防病毒*并重试
要解决代理冲突:转到windows-> ;首选项 - 常规选项卡 -> 网络设置
检查您的 SOCK 是否也在操作系统上被禁用。或者打开“Internet 选项”对话框。转到连接并按 LAN 连接。按“高级”按钮并清除“袜子”前面的文本框,然后取消选中“对其他网络协议使用相同地址”的消息
我这样做并为我工作
first resolve proxy conflicts and if then too eclipse is not getting connected to internet *turnoff your firewall/antiviru*s and try again
To resolve proxy conflicts:Go to windows->prefernces-general tab->network settings
check if your SOCK is disabled on operating system too. or doing it open to 'Internet options' dailog box. Go to connections and press lan connection. press 'advanced' button ans clear the textboxes in front of 'socks' and uncheck the msg saying 'use same address for other network protocols'
I did this and worked for me
如果您使用 Fiddler2(或任何其他网络嗅探器/调试器工具),这可能是您的问题,因为它充当本地代理。
有时,即使它没有运行,我发现自己有义务启动它并禁用流量捕获。
希望有帮助!
If you are using Fiddler2 (or any other web sniffer/debugger tool), it may be your problem, as it acts as a local proxy.
Sometimes, even if its not running, I find myself obligated to start it and disable traffic capture.
Hope that helps!