Eclipse Indigo“无法连接到存储库” [英] Eclipse Indigo "unable to connect to repository"

查看:169
本文介绍了Eclipse Indigo“无法连接到存储库”的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我试图将这个存储库添加到Eclipse(Indigo)中: -



http://download.eclipse.org/releases/indigo



在浏览器中检查时看起来不错,但是我在Eclipse中不断获得无法连接,当我检查URL时,Eclipse显然正在寻找: -



http://download.eclipse.org/releases/indigo/content.xml



在浏览器中,我得到一个404未找到。以前版本的位置(例如伽利略)似乎也不在那里。他们搬家了吗我误会了什么吗?



我在以前的线程中尝试了一些建议: -



Eclipse更新不工作



但是他们不似乎工作(我也没有使用代理)。




  • Hemdoar


解决方案

这对我有用:



打开终端。导航到Eclipse文件夹。

  sudo nano eclipse.ini 

在底部添加以下行:

  -Djava.net .preferIPv4Stack = true 

然后ctrl + O保存,ctrl + X关闭(它在底部说)。 IPv4 / IPv6问题?解决了。
然后删除缓存VonC表示为:

 < eclipse> /p2/org.eclipse.equinox.p2 .repository / cache 

(这可以使用sudo rmdir /p2/org.eclipse.equinox或者通过在终端中输入sudo nautilus,打开根目录下的文件系统浏览器,而不是导航到,选择文件夹,然后按删除键)。然后重新启动eclipse,goto帮助>安装新软件>可用的软件站点



确保您要的repos(如 http://download.eclipse.org/egit/updates/ )最后有一个/权限。如果没有,请删除该条目,并创建一个新的,相同的,因为Eclipse不会让您编辑它,并单击确定。然后单击确定,并从组合框中选择例如egit链接,和lo,它会找到它。



仍然不工作?窗口>显示视图>内部Web浏览器;检查它可以访问互联网。希望有帮助!



信用:
http://drfits.com/2011/11/13/eclipse-contacting-软件站点有遇到问题/ $ $ $ $ $ $ $ $ $ $ $ $ $ $ $ $ $ $ $ $

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).

  • Hemdoar

解决方案

This worked for me:

Open terminal. Navigate to Eclipse folder.

sudo nano eclipse.ini

at the bottom, add this line in:

-Djava.net.preferIPv4Stack = true

Then ctrl+O to save, ctrl+X to close (it says at bottom). IPv4/IPv6 problems? Solved. Then delete the cache VonC said to:

<eclipse>/p2/org.eclipse.equinox.p2.repository/cache

(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

这篇关于Eclipse Indigo“无法连接到存储库”的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆