eclipse 更新站点:需要 HTTP 代理身份验证错误

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

eclipse update sites: HTTP Proxy Authentication Required error

eclipseproxy

提问by Luká? Budo?

when I go to Install new software and select an update site, I get a "HTTP Proxy Authentication Required" error.

当我转到安装新软件并选择更新站点时,出现“需要 HTTP 代理身份验证”错误。

I have searched the internets for quite some time, and I still did not get an answer.

我在网上搜索了很长时间,仍然没有得到答案。

Facts:

事实:

  • I get this error for every update site.
  • I am able to access the update site link both in an internal or external browser.
  • I am using the "native" proxy in eclipse network settings.
  • direct proxy in eclipse network settings does not work either.
  • our helpdesk told me that it's not possible to set up the manual proxy in eclipse network settings (or they don't know)
  • I've tried manually inserting a proxy server:port that I found in a proxy.pac file that I've discovered, no luck...
  • I've tried reinstalling Eclipse, re-adding and/or reloading repositories and deleting repo cache dir
  • I'm using: -Djava.net.preferIPv4Stack=true in ini file
  • I've tried mirroring the repositories using both methods, but log file gives the same proxy error
  • 对于每个更新站点,我都会收到此错误。
  • 我可以在内部或外部浏览器中访问更新站点链接。
  • 我在 eclipse 网络设置中使用“本机”代理。
  • eclipse 网络设置中的直接代理也不起作用。
  • 我们的帮助台告诉我无法在 eclipse 网络设置中设置手动代理(或者他们不知道)
  • 我试过手动插入一个代理服务器:在我发现的 proxy.pac 文件中找到的端口,没有运气......
  • 我尝试重新安装 Eclipse,重新添加和/或重新加载存储库并删除 repo 缓存目录
  • 我在 ini 文件中使用:-Djava.net.preferIPv4Stack=true
  • 我尝试使用这两种方法镜像存储库,但日志文件给出了相同的代理错误

My system: Eclipse for PHP Developers
Version: Luna Service Release 1a (4.4.1)
Build id: 20150109-0600
Windows 7, 64bit

我的系统:Eclipse for PHP Developers
版本:Luna Service Release 1a (4.4.1)
Build id:20150109-0600
Windows 7, 64bit

回答by ViToni

Just add this at the end of your eclipse.ini:

只需在您的末尾添加eclipse.ini

-Dorg.eclipse.ecf.provider.filetransfer.excludeContributors=org.eclipse.ecf.provider.filetransfer.httpclient4

In my case I had to set the proxy also to manual (SOCKS should be unchecked). But then, no more hassle.

在我的情况下,我还必须将代理设置为手动(应取消选中 SOCKS)。但接下来,就没有更多的麻烦了。

It basically disables the default Apache HTTP client and will use an HTTP client based on the JRE URL connection. See: https://wiki.eclipse.org/Disabling_Apache_Httpclient

它基本上禁用了默认的 Apache HTTP 客户端,并将使用基于 JRE URL 连接的 HTTP 客户端。请参阅:https: //wiki.eclipse.org/Disabling_Apache_Httpclient

回答by Vivit

I could solve the same problem by going to "Windows""Preferences""Network Connections"and set "Active Provider"to "Direct". See more details and a screenshot in my answer here.

我可以通过转到"Windows""Preferences""Network Connections"并设置"Active Provider"为 来解决同样的问题"Direct"。请在此处查看我的回答中的更多详细信息和屏幕截图。

回答by Anton

  1. Switch to the manual proxy options
  2. Enter your proxy, user and password
  3. Do it for al except SOCKS. SOCKS you may leave empty.
  1. 切换到手动代理选项
  2. 输入您的代理、用户和密码
  3. 除了袜子外,其他人都可以这样做。袜子你可以留空。

I've tried a lot of solutions in Google, but nothing :( I was going to forget about eclipse, but suddenly it worked :)

我在 Google 中尝试了很多解决方案,但什么都没有:( 我本来要忘记 eclipse,但突然间它奏效了 :)

回答by Luká? Budo?

In the end I talked to a guy who manages the proxy settings in our company and luckily he did some changes to the proxy server and now I'm able to install addons & update software from within eclipse :-)

最后,我与一位管理我们公司代理设置的人进行了交谈,幸运的是他对代理服务器进行了一些更改,现在我可以从 eclipse 中安装插件和更新软件了 :-)

回答by Jon Minogue

For my proxy settings, I HAD to leave SOCKS proxy configuration empty after entering manual proxy settings for both HTTP and HTTPS. Leaving them all empty didn't work, and filling them all out didn't work either.

对于我的代理设置,在输入 HTTP 和 HTTPS 的手动代理设置后,我必须将 SOCKS 代理配置留空。把它们都留空是行不通的,把它们都填满也行不通。

回答by Marcello

It worked for me using this in eclipse.ini:

在 eclipse.ini 中使用它对我有用:

-Dorg.eclipse.ecf.provider.filetransfer.excludeContributors=org.eclipse.ecf.provider.filetransfer.httpclient45,org.eclipse.ecf.provider.filetransfer.httpclient4

Source: https://wiki.eclipse.org/Disabling_Apache_Httpclient45

来源:https: //wiki.eclipse.org/Disabling_Apache_Httpclient45