Eclipse 更新不起作用

声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow 原文地址: http://stackoverflow.com/questions/4598167/
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

提示:将鼠标放在中文语句上可以显示对应的英文。显示中英文
时间:2020-09-10 19:51:01  来源:igfitidea点击:

Eclipse updates not working

eclipsenetworkingupdate-site

提问by user563089

I have installed Eclipse 3,6 on 64 bit Windows platform. When I try to connect to update sites by going to Help->install new softwareit gives following error:

我已经在 64 位 Windows 平台上安装了 Eclipse 3,6。当我尝试通过访问Help->install new software它来连接到更新站点时,会出现以下错误:

Unable to connect to repository 
http://download.eclipse.org/releases/galileo/content.xml
Connection refused: connect

I have tried all available sites - they all give me the same error. Dialog box shows: Provision exception.

我已经尝试了所有可用的站点——它们都给我同样的错误。对话框显示:Provision exception

Any idea what's happening?

知道发生了什么吗?

回答by Shitanshu Jain

  1. In Eclipse (go to Window > Preferences > General > Network connections).
  2. Select "Active Provider" as "Manual".
  3. Select HTTP and click edit.
  4. Enter the host and port
  5. Select "Requires Authentication" and enter the username and password.
  6. Repeat Step 1 to 5 for Https.

  7. In "proxy bypass" section click "Add host"

  8. Enter http://download.eclipse.org/releases/galileo/content.xmland OK
  1. 在 Eclipse 中(转到“窗口”>“首选项”>“常规”>“网络连接”)。
  2. 选择“Active Provider”作为“Manual”。
  3. 选择 HTTP 并单击编辑。
  4. 输入主机和端口
  5. 选择“需要身份验证”并输入用户名和密码。
  6. 对 Https 重复步骤 1 到 5。

  7. 在“代理绕过”部分点击“添加主机”

  8. 输入http://download.eclipse.org/releases/galileo/content.xml并确定

After spending an entire week with the issue, this solution finally worked for me

花了整整一周的时间解决这个问题后,这个解决方案终于对我有用了

回答by ChrisJ

Maybe you're behind a firewall, and need to access the web through a proxy. Have you set a proxy in your web browser? If so, you need to set the same proxy in Eclipse (go to Preferences > General > Network connections).

也许您在防火墙后面,需要通过代理访问网络。您是否在网络浏览器中设置了代理?如果是这样,您需要在 Eclipse 中设置相同的代理(转到首选项 > 常规 > 网络连接)。

回答by Moeri

Well, try to enter this website: http://subclipse.tigris.org/update_1.6.x

好吧,尝试进入这个网站:http: //subclipse.tigris.org/update_1.6.x

If that link works, then it's not your fault. I've tried your link, and it doesn't work for me either.

如果该链接有效,那么这不是您的错。我试过你的链接,它对我也不起作用。

If the link I gave you doesn't work either, then the problem is on your side and you need to check your network settings.

如果我给您的链接也不起作用,那么问题出在您这边,您需要检查您的网络设置。

回答by Calon

If you are behind a firewall, have set the proxy settings in the preferences correctly and it's still not working, Try setting -Dsun.net.client.defaultReadTimeout=<"amount in ms, e.g. 30000">in the eclipse.ini worked well for me. It looks like Eclipse has a quick timeout on that updatesite search. Some proxys can slow the process down by a few seconds and you get a timeout before the updatesite is loaded completely

如果您在防火墙后面,在首选项中正确设置了代理设置但它仍然不起作用,请尝试-Dsun.net.client.defaultReadTimeout=<"amount in ms, e.g. 30000">在 eclipse.ini 中进行设置对我来说效果很好。看起来 Eclipse 在该更新站点搜索上有一个快速超时。某些代理可能会使进程慢几秒钟,并且在更新站点完全加载之前您会超时