如何处理 Eclipse 的“未找到包含以下内容的存储库:...”错误消息?
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/6470802/
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
What to do about Eclipse's "No repository found containing: ..." error messages?
提问by agnul
I'm running Eclipse's Helios EE bundle on Linux to which I added the subversive plugins, the m2e Maven integration and the Mylin connector for Trac. For the last couple of weeks I've been trying to install updates, and every time I get back a message like
我在 Linux 上运行 Eclipse 的 Helios EE 包,我在其中添加了颠覆性插件、m2e Maven 集成和用于 Trac 的 Mylin 连接器。在过去的几周里,我一直在尝试安装更新,每次收到类似的消息时
No repository found containing <something or other>
The latest one was
最新的一个是
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
What does it all mean and how do I fix that? If Eclipse has been able to contact the repositories to check for new files, why isn't it able to download those files from those some repositories? Or does the error message mean something entirely different?
这一切意味着什么,我该如何解决?如果 Eclipse 能够联系存储库以检查新文件,为什么它不能从那些存储库下载这些文件?还是错误消息的含义完全不同?
回答by gebitang
Quick answer
快速回答
Go to Help → Install new software → Here uncheck “Contact all update sites during install to find required software”
转到帮助 → 安装新软件 → 此处取消选中“安装期间联系所有更新站点以查找所需软件”
Eclipse will prompt that the content isn't authorized or something like that. just ignore and continue. then everything will be OK.
Eclipse 会提示内容未经授权或类似内容。只需忽略并继续。那么一切都会好起来的。
At least this trick resolved my problems similar like this:
至少这个技巧解决了我的类似问题:
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.emf,2.6.0.v20120917-0436 No repository found containing: osgi.bundle,org.eclipse.emf.ant,2.7.0.v20120917-0436 No repository found containing: osgi.bundle,org.eclipse.emf.codegen,2.8.0.v20120917-0436 No repository found containing: osgi.bundle,org.eclipse.emf.codegen.ecore,2.8.1.v20120917-0436 No repository found containing: osgi.bundle,org.eclipse.emf.codegen.ecore.ui,2.8.0.v20120917-0436 No repository found containing: osgi.bundle,org.eclipse.emf.codegen.ui,2.6.0.v20120917-0436 No repository found containing: osgi.bundle,org.eclipse.emf.common,2.8.0.v20120911-0500 No repository found containing: osgi.bundle,org.eclipse.emf.common.ui,2.7.0.v20120917-0436 No repository found containing: osgi.bundle,org.eclipse.emf.converter,2.5.0.v20120917-0436 No repository found containing: osgi.bundle,org.eclipse.emf.databinding,1.2.0.v20120917-0436 No repository found containing: osgi.bundle,org.eclipse.emf.databinding.edit,1.2.0.v20120917-0436 No repository found containing: osgi.bundle,org.eclipse.emf.ecore,2.8.1.v20120911-0500 No repository found containing: osgi.bundle,org.eclipse.emf.ecore.change,2.8.0.v20120911-0500 No repository found containing: osgi.bundle,org.eclipse.emf.ecore.change.edit,2.5.0.v20120917-0436 No repository found containing: osgi.bundle,org.eclipse.emf.ecore.edit,2.8.0.v20120917-0436 No repository found containing: osgi.bundle,org.eclipse.emf.ecore.editor,2.8.0.v20120917-0436 No repository found containing: osgi.bundle,org.eclipse.emf.ecore.xmi,2.8.0.v20120911-0500 No repository found containing: osgi.bundle,org.eclipse.emf.edit,2.8.0.v20120917-0436 No repository found containing: osgi.bundle,org.eclipse.emf.edit.ui,2.8.0.v20120917-0436 No repository found containing: osgi.bundle,org.eclipse.emf.exporter,2.6.0.v20120917-0436 No repository found containing: osgi.bundle,org.eclipse.emf.importer,2.7.0.v20120917-0436 No repository found containing: osgi.bundle,org.eclipse.emf.importer.ecore,2.6.0.v20120917-0436 No repository found containing: osgi.bundle,org.eclipse.emf.importer.java,2.6.0.v20120917-0436 No repository found containing: osgi.bundle,org.eclipse.emf.importer.rose,2.6.0.v20120917-0436 No repository found containing: osgi.bundle,org.eclipse.emf.mapping,2.7.0.v20120917-0436 No repository found containing: osgi.bundle,org.eclipse.emf.mapping.ecore,2.6.0.v20120917-0436 No repository found containing: osgi.bundle,org.eclipse.emf.mapping.ecore.editor,2.6.0.v20120917-0436 No repository found containing: osgi.bundle,org.eclipse.emf.mapping.ecore2ecore,2.7.0.v20120917-0436 No repository found containing: osgi.bundle,org.eclipse.emf.mapping.ecore2ecore.editor,2.5.0.v20120917-0436 No repository found containing: osgi.bundle,org.eclipse.emf.mapping.ecore2xml,2.7.0.v20120917-0436 No repository found containing: osgi.bundle,org.eclipse.emf.mapping.ecore2xml.ui,2.6.0.v20120917-0436 No repository found containing: osgi.bundle,org.eclipse.emf.mapping.ui,2.6.0.v20120917-0436 No repository found containing: osgi.bundle,org.eclipse.wst.common.project.facet.core,1.4.300.v201111030424 No repository found containing: osgi.bundle,org.eclipse.wst.common.project.facet.ui,1.4.300.v201111030424 No repository found containing: org.eclipse.update.feature,org.eclipse.emf.codegen.ecore,2.8.1.v20120917-0436 No repository found containing: org.eclipse.update.feature,org.eclipse.emf.codegen.ecore.ui,2.8.0.v20120917-0436 No repository found containing: org.eclipse.update.feature,org.eclipse.emf.codegen,2.8.0.v20120917-0436 No repository found containing: org.eclipse.update.feature,org.eclipse.emf.codegen.ui,2.7.0.v20120917-0436 No repository found containing: org.eclipse.update.feature,org.eclipse.emf.common,2.8.0.v20120911-0500 No repository found containing: org.eclipse.update.feature,org.eclipse.emf.common.ui,2.7.0.v20120917-0436 No repository found containing: org.eclipse.update.feature,org.eclipse.emf.converter,2.8.0.v20120917-0436 No repository found containing: org.eclipse.update.feature,org.eclipse.emf.databinding.edit,1.2.0.v20120917-0436 No repository found containing: org.eclipse.update.feature,org.eclipse.emf.databinding,1.2.0.v20120917-0436 No repository found containing: org.eclipse.update.feature,org.eclipse.emf.ecore.edit,2.8.0.v20120917-0436 No repository found containing: org.eclipse.update.feature,org.eclipse.emf.ecore.editor,2.8.0.v20120917-0436 No repository found containing: org.eclipse.update.feature,org.eclipse.emf.ecore,2.8.1.v20120911-0500 No repository found containing: org.eclipse.update.feature,org.eclipse.emf.edit,2.8.0.v20120917-0436 No repository found containing: org.eclipse.update.feature,org.eclipse.emf.edit.ui,2.8.0.v20120917-0436 No repository found containing: org.eclipse.update.feature,org.eclipse.emf,2.8.1.v20120917-0436 No repository found containing: org.eclipse.update.feature,org.eclipse.emf.mapping.ecore.editor,2.7.0.v20120917-0436 No repository found containing: org.eclipse.update.feature,org.eclipse.emf.mapping.ecore,2.7.0.v20120917-0436 No repository found containing: org.eclipse.update.feature,org.eclipse.emf.mapping,2.7.0.v20120917-0436 No repository found containing: org.eclipse.update.feature,org.eclipse.emf.mapping.ui,2.7.0.v20120917-0436 No repository found containing: org.eclipse.update.feature,org.eclipse.wst.common.fproj,3.4.0.v201202292300-377F8N8s735555393B7B
收集要安装的项目时发生错误会话上下文是:(profile=epp.package.jee,phase=org.eclipse.equinox.internal.p2.engine.phases.Collect,operand=,action=)。未找到包含以下内容的存储库:osgi.bundle,org.eclipse.emf,2.6.0.v20120917-0436 未找到包含:osgi.bundle,org.eclipse.emf.ant,2.7.0.v20120917-0436 的存储库: osgi.bundle,org.eclipse.emf.codegen,2.8.0.v20120917-0436 未找到包含以下内容的存储库:osgi.bundle,org.eclipse.emf.codegen.ecore,2.8.1.v20120917-0436 未找到包含的存储库: osgi.bundle,org.eclipse.emf.codegen.ecore.ui,2.8.0.v20120917-0436 未找到包含以下内容的存储库:osgi.bundle,org.eclipse.emf.codegen.ui,2.6.0.v20120917-0436未找到包含以下内容的存储库:osgi.bundle,org.eclipse.emf.common,2.8.0。
回答by Hunternif
Thanks to Fredrik for pointing to the original bug in Eclipse. A comment by Richard Shu there describes several available solutions:
感谢 Fredrik 指出Eclipse 中的原始错误。Richard Shu 在那里的评论描述了几种可用的解决方案:
As Mauro said: "you have to remove and re-add the Eclipse Project Update site, so that its metadata are re-calculated." - works as workaround
Another workaround I found, is to edit the pre-defined URL link by adding just a trailing “/” to the update site URL.
The third workaround I discoverd accidentaly is to do nothing, but to uncheck the 'Contact all update sites during install to find required software' before checking the URL link.
正如 Mauro 所说:“您必须删除并重新添加 Eclipse 项目更新站点,以便重新计算其元数据。” - 作为解决方法
我发现的另一个解决方法是通过在更新站点 URL 中仅添加一个尾随“/”来编辑预定义的 URL 链接。
我偶然发现的第三个解决方法是什么都不做,而是在检查 URL 链接之前取消选中“安装期间联系所有更新站点以查找所需软件”。
Option #2 worked for me. I went to Window > Preferences > Install/Update > Available Software Sites
, then for each enabled site I added a /
to the end of the URL (if it wasn't there already), then clicked Reload
.
选项#2 对我有用。我去了Window > Preferences > Install/Update > Available Software Sites
,然后对于每个启用的站点,我/
在 URL 的末尾添加了一个(如果它还没有),然后单击Reload
。
回答by Fredrik
What you most likely has encountered is a bug in Eclipse.
Luckily the solution is simple enough, remove the update site and install it again.
幸运的是,解决方案很简单,删除更新站点并重新安装。
回答by Roman Nazarevych
Me helped the following solution:
我帮助了以下解决方案:
- 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 removeon 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
- 转到“帮助”->“软件更新”,然后选择“可用软件”选项卡并单击“管理站点”按钮
- 使用“导出”按钮将站点导出到 bookmarks.xml 文件
- 在您喜欢的文本编辑器中打开 bookmarks.xml 文件,并在任何缺少“/”或在末尾删除的站点 url 添加尾随“/” 。保存更改。
- 返回 Eclipse 中的 Manage Sites 窗口,选择所有站点并单击 Remove 按钮
- 现在,单击导入并加载到已编辑的 bookmarks.xml 文件中
It was taken from this link Devon Hillard's Digital Sanctuary
回答by mkro
The updates that Eclipse has found have dependencies that need to be downloaded during the installation but which cannot currently be found. This may be a temporary network problem or some repo server being down (if you're lucky). But unfortunately, sometimes this simply means that the dependencies are not contained in the repositories that Eclipse is trying to download them from, at least that is what i have encountered every now and then (not annoyingly often though).
Eclipse 发现的更新具有需要在安装期间下载但当前无法找到的依赖项。这可能是暂时的网络问题或某些 repo 服务器出现故障(如果你很幸运)。但不幸的是,有时这只是意味着依赖项不包含在 Eclipse 试图从中下载它们的存储库中,至少这是我时不时遇到的(虽然并不经常令人讨厌)。
So either the failure is temporary and you should try again or you are out of luck and may have to use a manual installation procedure (download and unpack in plugins folder).
所以要么失败是暂时的,你应该再试一次,要么你运气不好,可能不得不使用手动安装过程(在插件文件夹中下载和解压)。
Maybe you can increase your success rate by adding the repositories that supposedly contain the artifacts in the 'Available Software Sites' dialogue.
也许您可以通过在“可用软件站点”对话框中添加据称包含工件的存储库来提高成功率。
I'm not 100% sure of that though. In fact, I would like to find a 'perfect' answer to this question myself.
不过,我不是 100% 确定。事实上,我想自己为这个问题找到一个“完美”的答案。
What usually works quite well is installing plugins via the Eclipse Marketplace.
通常效果很好的是通过 Eclipse Marketplace 安装插件。
Oh and sometimes this helps: Uncheck some options (like OSGI in your case).
哦,有时这会有所帮助:取消选中某些选项(例如您的情况下的 OSGI)。
回答by shibin
Simple!!!!!!!!
简单的!!!!!!!!
Right click on eclipse folder and go to properties. Uncheck checkbox "read only" if checked. apply changes.click oK.
右键单击 eclipse 文件夹并转到属性。如果选中,请取消选中“只读”复选框。应用更改。单击“确定”。
after go to Help>Install new software>Uncheck “Contact all update sites during install to find required software”.
转到帮助>安装新软件>取消选中“安装期间联系所有更新站点以查找所需软件”。
回答by Spartan
I am trying to make an update for Spring STS 3.6.3 to the version 3.6.4 in Eclipse Luna (4.4.1) and I tried the following solution and it worked for me:
我正在尝试将 Spring STS 3.6.3 更新到 Eclipse Luna (4.4.1) 中的 3.6.4 版本,我尝试了以下解决方案,它对我有用:
- go to Help > Install new Softwares > Available software sites
- Uncheck all and check only the sites SpringSource Update Site for Eclipse 4.4 it means that you check only the update site for your version of eclipse
- And validate and make your update
- 转到帮助 > 安装新软件 > 可用的软件站点
- 取消选中所有并只选中用于 Eclipse 4.4 的 SpringSource 更新站点这意味着您只检查您的 Eclipse 版本的更新站点
- 并验证并进行更新
回答by Luke
What I did was:
我所做的是:
- I went to Window > Preferences > Install/Update > Available Software Sites, then for each enabled site I added a / to the end of the URL (if it wasn't there already), then clicked Reload as per @Hunternif answer. But the problem still persisted.
- Then I disabled all the software sites and re-enalbed them one by one and ran updates to keep only those that worked. After step 2. the problem was solved. Now I have enabled only the update sites that do not give the error and updates work.
- 我转到“窗口”>“首选项”>“安装/更新”>“可用软件站点”,然后对于每个启用的站点,我在 URL 的末尾添加了一个 /(如果它还没有),然后根据@Hunternif 的回答单击“重新加载”。但问题仍然存在。
- 然后我禁用了所有软件站点,并一个一个地重新启用它们并运行更新以仅保留那些有效的站点。经过第2步,问题就解决了。现在我只启用了不会出现错误和更新工作的更新站点。
回答by Yost777
I've had the same issue since mid 2018. Performing a search, this issue has been reported since 2011. I'm surprised workarounds are proposed for this. Unfortunately they havent't worked for me, currently the only fix seems to completely reinstall Eclipse. As the most upvoted suggestion here, many of the suggestions are contradicting, suggesting trial-error guesses.
自 2018 年年中以来,我遇到了同样的问题。执行搜索时,自 2011 年以来已报告此问题。我很惊讶为此提出了解决方法。不幸的是,它们对我不起作用,目前唯一的修复似乎是完全重新安装 Eclipse。作为这里最受好评的建议,许多建议是矛盾的,建议尝试错误猜测。
Besides these workarounds, IMHO this requires a fix. We're in 2019 now, surely there is a way to fix this recurring issue? How can there not be a simple fix i.e. if repo URL not found: skip and continue with next URL / update (without aborting as critical error and preventing any other update)?
除了这些解决方法,恕我直言,这需要修复。我们现在在 2019 年,肯定有办法解决这个反复出现的问题吗?怎么可能没有简单的修复,即如果未找到 repo URL:跳过并继续下一个 URL / 更新(不会作为严重错误中止并阻止任何其他更新)?
回答by frrlod
None of the other answers worked for me (Windows 10, Eclipse Neon). Running Eclipse as Administrator fixed it.
其他答案都不适合我(Windows 10,Eclipse Neon)。以管理员身份运行 Eclipse 修复了它。