在 Eclipse Luna 中安装新软件总是出现错误 No repository found contains: osgi.bundle,org.eclipse.net4j.jms.api?
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/27275035/
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
Install new software in Eclipse Luna gives always the error No repository found containing: osgi.bundle,org.eclipse.net4j.jms.api?
提问by tonix
I am using STS (Spring Tool Suite) with Eclipse Luna 4.4 and I noticed that everytime I try to install something (for example Apache IvyDE, Web Tools Platform)via Help -> "Install new Software"I get the following error:
我在 Eclipse Luna 4.4 中使用 STS(Spring 工具套件),我注意到每次我尝试通过帮助 ->“安装新软件”安装某些东西(例如 Apache IvyDE、Web 工具平台)时,我都会收到以下错误:
An error occurred while collecting items to be installed
session context was:(profile=DefaultProfile, phase=org.eclipse.equinox.internal.p2.engine.phases.Collect, operand=, action=).
No repository found containing: osgi.bundle,org.eclipse.net4j.jms.api,3.1.100.v20140218-1709
How can I get rid of this error and install Eclipse's software and plugins?
我怎样才能摆脱这个错误并安装 Eclipse 的软件和插件?
EDIT: here is what it looks like:
编辑:这是它的样子:
Then I click "Next", while eclipse loads:
然后我点击“下一步”,同时 Eclipse 加载:
There's a "Cannot perform operation" message on the progress bar, and after that:
进度条上显示“无法执行操作”消息,之后:
Then I accept the license and after clicking finish I get the error:
然后我接受许可证,单击完成后出现错误:
回答by Master Slave
In the same dialog you'll see an option Contact all update sites during install to find required software, un-check it, ignore the prompt and click on Continue.
在同一个对话框中,您将看到一个选项Contact all update sites during install to find required software,取消选中它,忽略提示并单击Continue。
The above suggested solution worked when I've faced the problem. For this issue people are referencing https://bugs.eclipse.org/bugs/show_bug.cgi?id=290782, a colleague of mine picked a solution from this comment https://bugs.eclipse.org/bugs/show_bug.cgi?id=290782#c2
当我遇到问题时,上述建议的解决方案有效。对于这个问题,人们参考了https://bugs.eclipse.org/bugs/show_bug.cgi?id=290782,我的一位同事从这个评论https://bugs.eclipse.org/bugs/show_bug 中选择了一个解决方案。 cgi?id=290782#c2
While all this solution are general to repository not found, I've found a thread discussing an issue with the plugin you mentioned, did you check it out already unable to install CDT in Eclipse Luna. The OP in this question solved the issue by upgrading from Java 1.6 to 1.8.
虽然所有这些解决方案对于找不到存储库都是通用的,但我发现了一个讨论您提到的插件问题的线程,您是否检查过它已经无法在 Eclipse Luna 中安装 CDT。这个问题中的 OP 通过从 Java 1.6 升级到 1.8 解决了这个问题。
回答by NoDataFound
I had the same exact problem, until I asked me the question: what provide the org.eclipse.net4j.jms.api
package ?
我遇到了同样的问题,直到我问我这个问题:什么提供了org.eclipse.net4j.jms.api
包裹?
I've found this file in some git repositorythat looks like a configuration file for Eclipse plugins. What was interesting in that in the name of the provider: Eclipse Modeling Project.
我在一些 git 存储库中找到了这个文件,它看起来像 Eclipse 插件的配置文件。以提供者的名义,有趣的是:Eclipse 建模项目。
With that, and the help of DuckduckGo, I've that the update site for this artefact is: http://www.eclipse.org/modeling/updates/
有了这个,在 DuckduckGo 的帮助下,我知道这个人工制品的更新站点是:http: //www.eclipse.org/modeling/updates/
- You should try to see what it contains using the "Install new software", after entering the URL in the first input field. It is very slow to fetch
- You should be able to install or update (that was what I was doing).
- 在第一个输入字段中输入 URL 后,您应该尝试使用“安装新软件”查看它包含的内容。获取速度很慢
- 您应该能够安装或更新(这就是我正在做的)。
I guess someone at Eclipse.org had the idea to update the repository, and that the system is so bad there is no way to tell Eclipse to look from old URL to a new. I'd rather like to see a Eclipse Central Plugin Repositorylike there is a Maven Central Repository, but that's another story.
我猜 Eclipse.org 上的某个人有更新存储库的想法,而且系统太糟糕了,无法告诉 Eclipse 从旧 URL 查找新 URL。我宁愿看到Eclipse Central Plugin Repository就像有一个Maven Central Repository 一样,但那是另一回事了。
回答by Christian Müller
I also had an issue like this, my error message 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.net4j.jms.api,3.1.100.v20140218-1709
收集要安装的项目时发生错误会话上下文是:(profile=epp.package.jee,phase=org.eclipse.equinox.internal.p2.engine.phases.Collect,operand=,action=)。未找到包含以下内容的存储库:osgi.bundle,org.eclipse.net4j.jms.api,3.1.100.v20140218-1709
In my case an inactive repository was responsible for the error. By adding it to the Available Software Siteswith Oracle Enterprise Pack for Eclipseand http://download.oracle.com/otn_software/oepe/12.1.3.5/luna/repository/the error could be resolved.
在我的情况下,不活动的存储库是导致错误的原因。通过使用Oracle Enterprise Pack for Eclipse和http://download.oracle.com/otn_software/oepe/12.1.3.5/luna/repository/将其添加到可用软件站点,可以解决错误。
回答by manuelvigarcia
Ensure trailing '/
' for all Available Software Sites
确保/
所有可用软件站点的尾随 ' '
For the No repository found containing: osgi.bundle...
problem I tried several options and the only one that worked was #2 in this answer.
对于这个No repository found containing: osgi.bundle...
问题,我尝试了几种选择,唯一有效的方法是这个答案中的#2 。
- Help -> Install new software...
- Click "Available Software Sites"
- Ensure all the URLs have a trailing '
/
' (slash) - Try installation/update again
- 帮助 -> 安装新软件...
- 单击“可用的软件站点”
- 确保所有 URL 都有一个尾随 '
/
'(斜杠) - 再次尝试安装/更新
My version: Luna Service Release 2 (4.4.2)
我的版本:Luna Service Release 2 (4.4.2)