我在Linux上运行Eclipse的Helios EE包,我添加了颠覆性的插件,m2e Maven集成和Trac的Mylin连接器。在过去的几个星期里,我一直在尝试安装更新,每次我都收到这样的消息

No repository found containing <something or other>

最新的一个是

An error occurred while collecting items to be installed
session context was:(profile=epp.package.jee, phase=org.eclipse.equinox.internal.p2.engine.phases.Collect, operand=, action=).
No repository found containing: osgi.bundle,org.eclipse.team.svn,0.7.9.I20110318-1700
No repository found containing: osgi.bundle,org.eclipse.team.svn.core,0.7.9.I20110523-1700
No repository found containing: osgi.bundle,org.eclipse.team.svn.help,0.7.9.I20110318-1700
No repository found containing: osgi.bundle,org.eclipse.team.svn.mylyn,0.7.9.I20110318-1700
No repository found containing: osgi.bundle,org.eclipse.team.svn.ui,0.7.9.I20110523-1700
No repository found containing: org.eclipse.update.feature,org.eclipse.team.svn,0.7.9.I20110523-1700
No repository found containing: org.eclipse.update.feature,org.eclipse.team.svn.mylyn,0.7.9.I20110523-1700
No repository found containing: org.eclipse.update.feature,org.eclipse.team.svn.resource.ignore.rules.jdt,0.7.9.I20110523-1700

这一切意味着什么,我该如何解决?如果Eclipse能够联系存储库来检查新文件,为什么它不能从这些存储库下载这些文件呢?或者错误消息意味着完全不同的东西?


当前回答

Eclipse找到的更新有需要在安装期间下载的依赖项,但目前无法找到。这可能是一个临时的网络问题或一些回收服务器宕机(如果你幸运的话)。但不幸的是,有时这仅仅意味着依赖项不包含在Eclipse试图从中下载它们的存储库中,至少我偶尔会遇到这种情况(尽管不是经常遇到)。

所以,要么失败是暂时的,你应该再试一次,要么你运气不好,可能不得不使用手动安装程序(下载并解压到插件文件夹中)。

也许您可以通过在“可用软件站点”对话框中添加包含工件的存储库来提高成功率。

不过我也不是百分百确定。事实上,我想为这个问题找到一个“完美”的答案。

通过Eclipse Marketplace安装插件通常效果很好。

哦,有时这是有帮助的:取消选中某些选项(比如您的情况下的OSGI)。

其他回答

对于那些在安装Eclipse代码推荐器时遇到此问题的人,您可以尝试Eclipse社区论坛的建议:

Go to Help -> Install new software...
Add a repository: 
    Name: Code Recommenders
    Location: https://repo.eclipse.org/content/shadows/releases.unzip/org/eclipse/recommenders/stable/2.5.4/stable-2.5.4.zip-unzip/

我想这种方法也可以用于其他归档项目。

上面的一些解决方案解决了我的一些错误……似乎在一段时间后更新连接只是被损坏,没有银弹。通过市场管理更新(Help > marketplace > 'show updates')让我缩小了依赖失败的包。

以下是我的尝试(摘自上面的帖子):

将软件站点的HTTPS切换为HTTP 以管理员身份运行Eclipse “禁用”明显过时的软件网站 “启用”所有软件站点 在软件站点网址的末尾添加反斜杠 卸载和重新安装有问题的软件

尽管尝试了这里的建议,我仍然留下了一些Mylyn wikitext错误

用于JavaScript和Web开发人员的Eclipse IDE

版本:2019-09 R (4.13.0) Build id: 20190917-1200

我帮助解决了以下问题:

Go to Help->Software Updates, then select the Available Software tab and click the Manage Sites button Use the Export button to export the sites to a bookmarks.xml file Open the bookmarks.xml file in your favorite text editor, and add a trailing “/” to any of the site urls which are missing the “/” or remove on the end. Save the changes. Back in the Manage Sites window within Eclipse, select all of the sites and click the Remove button Now, click Import and load in the edited bookmarks.xml file

是从这个链接截取的德文·希拉德的数字避难所

感谢Fredrik指出Eclipse中的原始bug。Richard Shu在评论中描述了几种可行的解决方案:

正如Mauro所说:“您必须删除并重新添加Eclipse项目更新 站点,以便重新计算其元数据。”-作为解决方案 我发现的另一个解决办法是编辑预定义的URL链接 只需在更新站点URL后面加一个“/”。 我偶然发现的第三种解决方法是什么都不做,但是 取消选中“在安装期间联系所有更新站点以查找所需软件” 在检查URL链接之前。

选择2对我来说是可行的。我去了窗口>首选项>安装/更新>可用的软件网站,然后为每个启用的网站,我在URL的末尾添加了一个/(如果它还没有),然后单击重新加载。

对我来说,我在Eclipse Oxygen上安装了Spring IDE。在检查更新期间,它将发现更新,然后它将失败,并出现上述错误。

然后我转到Eclipse市场,单击Installed选项卡,注意到Spring没有出现(它以前在那里,现在已经安装了)。

然后我搜索Spring IDE (Tools),点击install,然后它通知一些包已经安装,只需要更新。

在完成Spring Tools的安装并重新启动后,我可以检查更新并完成正常的软件更新。