eclipse Eclipse在线访问极慢--无法完成更新或安装新软件
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/4435092/
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 online access extremely slow--cannot complete updates or install new software
提问by zmow
I'm trying to set up an Ubuntu 10.10 image in VMWare to do some Android development (my machine actually runs Windows 7 64bit). I've downloaded Eclipse 3.6.1 and when I tried to install the Android Tools by going to Help -> Install New Software, Eclipse would just get stuck trying to download the software. Even after 20 minutes no progress had been made.
我正在尝试在 VMWare 中设置一个 Ubuntu 10.10 映像来进行一些 Android 开发(我的机器实际上运行的是 Windows 7 64 位)。我已经下载了 Eclipse 3.6.1,当我尝试通过转到“帮助”->“安装新软件”来安装 Android 工具时,Eclipse 会在尝试下载该软件时卡住。即使在 20 分钟之后,也没有取得任何进展。
I tried to check if Eclipse had internet access by checking for updates, and this too is having problems. If I do Help -> Check for Updates, Eclipse will start to search and then take a very long time to do any progress. It took like 20 minutes to go from 12% complete to 25%, and then 30 minutes to go from 25% to 50%.
我试图通过检查更新来检查 Eclipse 是否可以访问互联网,但这也有问题。如果我执行 Help -> Check for Updates,Eclipse 将开始搜索,然后需要很长时间才能取得任何进展。从 12% 完成到 25% 需要 20 分钟,然后从 25% 到 50% 需要 30 分钟。
I installed the Java JDK just a few minutes before at full speed, so I know it's not something to do with my VMWare setup. Any idea as to what could be happening?
我在几分钟前全速安装了 Java JDK,所以我知道这与我的 VMWare 设置无关。关于可能发生什么的任何想法?
回答by skaffman
You're right, Eclipse updating can be horribly slow, regardless of connection speed.
您说得对,无论连接速度如何,Eclipse 更新都可能非常缓慢。
From what I can tell, this is because it checks a whole bunch of slow servers looking for updates every time you try and install something. You can disable this behaviour in the "Install New Software" dialog by unchecking the "Contact all update sites" option. I find that things go an awful lot faster then.
据我所知,这是因为每次您尝试安装某些东西时,它都会检查一大堆缓慢的服务器以寻找更新。您可以通过取消选中“联系所有更新站点”选项,在“安装新软件”对话框中禁用此行为。我发现事情发展得快得多。
回答by Felician
I had the very same issue recently, but finally I managed to figure out what is causing the extremely slow network connections in Eclipse. Actually the issue isn't the low bandwidth, but connection timeouts. The solution in my case was to disable all unnecessary network adapters in Windowslike Hamachi's and TeamViewer's adapter.
我最近遇到了同样的问题,但最终我设法找出了导致 Eclipse 中网络连接速度极慢的原因。实际上问题不是低带宽,而是连接超时。我的解决方案是禁用 Windows 中所有不必要的网络适配器,如 Hamachi 和 TeamViewer 的适配器。
回答by MrTea
Another solution that worked really fast in my case:
在我的情况下,另一个工作得非常快的解决方案:
Do the normal procedure for new software install and wait for getting the "timeout" error message.
In the timeout error message window you can see the URLs of the packages you had requested to download: copy-paste the URLs and download these packages manually (in my case was always very fast) and place them in the eclipse's /plugins directory.
(Restart eclipse?) then relaunch the normal new software install procedure exactly like before (do it from the workbench window). Then this time in my case it installed the packages in just a few seconds maybe I am missing out the real cause why this solution makes things better but well it worked.
执行新软件安装的正常程序并等待收到“超时”错误消息。
在超时错误消息窗口中,您可以看到您请求下载的包的 URL:复制粘贴 URL 并手动下载这些包(在我的情况下总是非常快)并将它们放在 eclipse 的 /plugins 目录中。
(重新启动 eclipse?)然后像以前一样重新启动正常的新软件安装程序(从工作台窗口执行此操作)。然后这次在我的情况下,它在短短几秒钟内安装了软件包,也许我错过了为什么这个解决方案使事情变得更好但效果很好的真正原因。
回答by Alim ?zdemir
This is a constant nag through all the versions. In my case there are "zombie" entries in the sites which confuse the update manager.
这是贯穿所有版本的不断唠叨。在我的情况下,站点中有“僵尸”条目会混淆更新管理器。
Like:
喜欢:
After removing those with empty "name" column (which shouldn't happen normally), updates work flawlessly.
删除那些带有空“名称”列的内容(通常不会发生)后,更新工作完美无缺。