尝试连接到 Eclipse 插件存储库时出现未知主机错误

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

Unknown Host error when attempting to connect to connect to Eclipse plugin repository

eclipseeclipse-pluginhost

提问by BordrGuy108

I am running Ubuntu 9.10 and I'm attempting to install a plugin for Eclipse 3.5 from a repository that my company created. This worked in the past on this linux box and also works just fine on my laptop which has Windows XP installed.

我正在运行 Ubuntu 9.10,我正在尝试从我公司创建的存储库中为 Eclipse 3.5 安装一个插件。这过去在这个 linux 机器上工作过,在我安装了 Windows XP 的笔记本电脑上也工作得很好。

The exact error message I'm getting in Eclipse is:

我在 Eclipse 中收到的确切错误消息是:

Unknown Host: <location of repository>

org.eclipse.equinox.internal.provisional.p2.core.ProvisionException

Any ideas what might be causing something that used to work not to work anymore?

有什么想法可能会导致以前工作的东西不再工作?

Thanks!

谢谢!

EDIT: Also, it might be useful to know that I can connect to other eclipse plugin repositories fine; it seems that only my company's internal one is the problem.

编辑:另外,知道我可以很好地连接到其他 eclipse 插件存储库可能很有用;看来只有我公司内部有问题。

回答by VonC

It is usually due to a proxy used by Eclipse where it shouldn't use it to access a local self-hosted repo.

这通常是由于 Eclipse 使用的代理不应该使用它来访问本地自托管存储库。

Try to set the proxy to "Direct" (hence selecting no Proxy entries at all)

尝试将代理设置为“直接”(因此根本不选择代理条目)

Preferences > General > Network Connections,

http://ftp.ntua.gr/eclipse/eclipse/downloads/drops/R-3.5-200906111540/images/proxy-settings-ui.png

http://ftp.ntua.gr/eclipse/eclipse/downloads/drops/R-3.5-200906111540/images/proxy-settings-ui.png

(so switch from "Native" or "Manual" to "Direct")

(所以从“本地”或“手动”切换到“直接”)

回答by BordrGuy108

Try other link. I got the same error while using link for "Paris, France - Europe". But than I tried with http://emonic.sourceforge.net/updatesite/nchc/site.xml"Tainan, Taiwan - Asia" and all worked just fine.

尝试其他链接。我在使用“巴黎,法国 - 欧洲”的链接时遇到了同样的错误。但比我尝试使用http://emonic.sourceforge.net/updatesite/nchc/site.xml"Tainan, Taiwan - Asia" 并一切正常。