eclipse 更新eclipse时出错

声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow 原文地址: http://stackoverflow.com/questions/511367/
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

提示:将鼠标放在中文语句上可以显示对应的英文。显示中英文
时间:2020-09-10 18:36:46  来源:igfitidea点击:

Error when updating eclipse

eclipseeclipse-plugin

提问by IAdapter

I click update in eclipse and I get an error, it's because I updated eclipse more than once. Is there any way to fix eclipse and have the ability to use update?

我在 Eclipse 中单击更新,但出现错误,这是因为我不止一次更新了 Eclipse。有什么办法可以修复eclipse并有能力使用update吗?

An error occurred while collecting items to be installed
  No repository found containing: org.eclipse.jem/osgi.bundle/2.0.202.v200810282000
  No repository found containing: org.eclipse.jem.workbench/osgi.bundle/2.0.102.v200810230530
  No repository found containing: org.eclipse.jpt.core/osgi.bundle/2.1.0.v200812160210
  No repository found containing: org.eclipse.jpt.doc.user/osgi.bundle/1.0.300.v200812110000
  No repository found containing: org.eclipse.jpt.eclipselink.core/osgi.bundle/1.1.0.v200812110000
  No repository found containing: org.eclipse.jpt.eclipselink.core.ddlgen/osgi.bundle/1.0.100.v200811030000
  No repository found containing: org.eclipse.jpt.eclipselink.feature/org.eclipse.update.feature/2.1.0.v200812180210-318Y9oA55S8_795555
  No repository found containing: org.eclipse.jpt.eclipselink.ui/osgi.bundle/1.1.0.v200812100000
  No repository found containing: org.eclipse.jpt.feature/org.eclipse.update.feature/2.1.0.v200812180210-7979AgCYQCD4IRJdCEDC
  No repository found containing: org.eclipse.jpt.ui/osgi.bundle/2.1.0.v200812080000
  No repository found containing: org.eclipse.jst.common.frameworks/osgi.bundle/1.1.201.v200810161330
  No repository found containing: org.eclipse.jst.ejb.doc.user/osgi.bundle/1.1.100.v200810092245
  No repository found containing: org.eclipse.jst.ejb.ui/osgi.bundle/1.1.203.v200810010400
  No repository found containing: org.eclipse.jst.enterprise_core.feature/org.eclipse.update.feature/3.0.3.v200810010400-42E_4_kE77c_FAP7X99
  No repository found containing: org.eclipse.jst.enterprise_ui.feature/org.eclipse.update.feature/3.0.3.v200810010400-7Y7BFSrEPOwQPnUuwhYV60NEQtTn
  No repository found containing: org.eclipse.jst.enterprise_userdoc.feature/org.eclipse.update.feature/3.0.3.v200810131754-52EFBAgI99mAV9oGIHb
  No repository found containing: org.eclipse.jst/org.eclipse.update.feature/3.0.3.v200809250443-7U-9-9LJGGJebgG8HYgv5FBP0NUr
  No repository found containing: org.eclipse.jst.j2ee/osgi.bundle/1.1.204.v200811130630
  No repository found containing: org.eclipse.jst.j2ee.core/osgi.bundle/1.1.202.v200811111600
  No repository found containing: org.eclipse.jst.j2ee.ejb/osgi.bundle/1.1.203.v200811060500
  No repository found containing: org.eclipse.jst.j2ee.jca/osgi.bundle/1.1.203.v200811060900
  No repository found containing: org.eclipse.jst.j2ee.navigator.ui/osgi.bundle/1.1.202.v200810222000
  No repository found containing: org.eclipse.jst.j2ee.ui/osgi.bundle/1.1.204.v200811041823
  No repository found containing: org.eclipse.jst.j2ee.web/osgi.bundle/1.1.202.v200811060500
  No repository found containing: org.eclipse.jst.j2ee.webservice.ui/osgi.bundle/1.1.201.v200811062130
  No repository found containing: org.eclipse.jst.jee/osgi.bundle/1.0.102.v200811060500
  No repository found containing: org.eclipse.jst.jee.ejb/osgi.bundle/1.0.102.v200810230722
  No repository found containing: org.eclipse.jst.jee.ui/osgi.bundle/1.0.103.v200811131900
  No repository found containing: org.eclipse.jst.jee.web/osgi.bundle/1.0.101.v200810230738
  No repository found containing: org.eclipse.jst.jsp.core/osgi.bundle/1.2.120.v200810301812
  No repository found containing: org.eclipse.jst.jsp.ui/osgi.bundle/1.1.311.v200810210016
  No repository found containing: org.eclipse.jst.server.core/osgi.bundle/1.1.2.v20080930
  No repository found containing: org.eclipse.jst.server.tomcat.core/osgi.bundle/1.1.104.v20081006
  No repository found containing: org.eclipse.jst.server_adapters.feature/org.eclipse.update.feature/3.0.3.v20081006b-787KEKFDUUEFDFrPa7AMQ
  No repository found containing: org.eclipse.jst.server_core.feature/org.eclipse.update.feature/3.0.3.v20080930b-377Ap9oA55S5N_C35AC
  No repository found containing: org.eclipse.jst.server_ui.feature/org.eclipse.update.feature/3.0.3.v20081001-79-EDn9wKSZRCCNQMfVnIG8BHD
  No repository found containing: org.eclipse.jst.servlet.ui/osgi.bundle/1.1.203.v200810222000
  No repository found containing: org.eclipse.jst.web_core.feature/org.eclipse.update.feature/3.0.3.v200810020322-7M7AEX2EFp_acwkiuz-bTpl
  No repository found containing: org.eclipse.jst.web_ui.feature/org.eclipse.update.feature/3.0.3.v200810020322-7E4EArDgvY1en0e_Bm21-ljvz00c
  No repository found containing: org.eclipse.jst.ws.axis.consumption.core/osgi.bundle/1.0.306.v200810082309
  No repository found containing: org.eclipse.jst.ws.axis.consumption.ui/osgi.bundle/1.0.305.v200809301934
  No repository found containing: org.eclipse.jst.ws.axis2.core/osgi.bundle/1.0.104.v200810151442
  No repository found containing: org.eclipse.jst.ws.axis2tools.feature/org.eclipse.update.feature/1.0.2.v200810151341-77-E_ECYQCD4FdMjLXVW
  No repository found containing: org.eclipse.jst.ws.consumption/osgi.bundle/1.0.306.v200810012118
  No repository found containing: org.eclipse.jst.ws.consumption.ui/osgi.bundle/1.1.3.v200810012118
  No repository found containing: org.eclipse.jst.ws.consumption.ui.doc.user/osgi.bundle/1.0.500.v200810082020
  No repository found containing: org.eclipse.jst.ws.creation.ui/osgi.bundle/1.0.307.v200810012118
  No repository found containing: org.eclipse.wst.command.env/osgi.bundle/1.0.307.v200810082309
  No repository found containing: org.eclipse.wst.common.emf/osgi.bundle/1.1.203.v200811022047
  No repository found containing: org.eclipse.wst.common.emfworkbench.integration/osgi.bundle/1.1.202.v200811131900
  No repository found containing: org.eclipse.wst.common.frameworks/osgi.bundle/1.1.201.v200811060900
  No repository found containing: org.eclipse.wst.common.frameworks.ui/osgi.bundle/1.1.201.v200810020330
  No repository found containing: org.eclipse.wst.common.modulecore/osgi.bundle/1.1.204.v200811062000
  No repository found containing: org.eclipse.wst.common.project.facet.core/osgi.bundle/1.3.4.v200810151458
  No repository found containing: org.eclipse.wst.common.ui/osgi.bundle/1.1.302.v200810160107
  No repository found containing: org.eclipse.wst.common_core.feature/org.eclipse.update.feature/3.0.3.v200809301154-7C7_EVIE_EkMNrTtU7X4h2
  No repository found containing: org.eclipse.wst.common_ui.feature/org.eclipse.update.feature/3.0.3.v200809301154-7C78ELcE8VrRVouGlyiT4DsUuV8Y
  No repository found containing: org.eclipse.wst/org.eclipse.update.feature/3.0.3.v200809250443-7A-8i8Qqcz0FaVgjXSD6brFQN64Z
  No repository found containing: org.eclipse.wst.html.core/osgi.bundle/1.1.203.v200810291731
  No repository found containing: org.eclipse.wst.html.ui/osgi.bundle/1.0.302.v200810291731
  No repository found containing: org.eclipse.wst.jsdt.core/osgi.bundle/1.0.103.v200811042159
  No repository found containing: org.eclipse.wst.jsdt.doc/osgi.bundle/1.0.103.v200810081720
  No repository found containing: org.eclipse.wst.jsdt.feature/org.eclipse.update.feature/1.0.3.v200810020426-6-E73BcMAAwFIFUHpRJ
  No repository found containing: org.eclipse.wst.jsdt.support.firefox/osgi.bundle/1.0.103.v200810021840
  No repository found containing: org.eclipse.wst.jsdt.support.ie/osgi.bundle/1.0.103.v200810021840
  No repository found containing: org.eclipse.wst.jsdt.ui/osgi.bundle/1.0.103.v200810301820
  No repository found containing: org.eclipse.wst.jsdt.web.core/osgi.bundle/1.0.103.v200810021840
  No repository found containing: org.eclipse.wst.jsdt.web.support.jsp/osgi.bundle/1.0.103.v200810081720
  No repository found containing: org.eclipse.wst.jsdt.web.ui/osgi.bundle/1.0.103.v200810021840
  No repository found containing: org.eclipse.wst.server.core/osgi.bundle/1.1.2.v20081020
  No repository found containing: org.eclipse.wst.server.ui/osgi.bundle/1.1.3.v20080930
  No repository found containing: org.eclipse.wst.server.ui.doc.user/osgi.bundle/1.1.100.v200810082048
  No repository found containing: org.eclipse.wst.server_core.feature/org.eclipse.update.feature/3.0.3.v20080930b-20Al8s733I48671256
  No repository found containing: org.eclipse.wst.server_ui.feature/org.eclipse.update.feature/3.0.3.v20080930b-791CO9vESQmvbHKYENNI76CH
  No repository found containing: org.eclipse.wst.server_userdoc.feature/org.eclipse.update.feature/3.0.100.v200810082053-108Y7w311921193159
  No repository found containing: org.eclipse.wst.sse.ui/osgi.bundle/1.1.3.v200810301815
  No repository found containing: org.eclipse.wst.validation/osgi.bundle/1.2.3.v200811101716
  No repository found containing: org.eclipse.wst.validation.ui/osgi.bundle/1.2.2.v200810221105
  No repository found containing: org.eclipse.wst.web/osgi.bundle/1.1.205.v200811132030
  No repository found containing: org.eclipse.wst.web_core.feature/org.eclipse.update.feature/3.0.3.v200810010400-7G2EAsAM214fK_RKaovH35PiPtaH
  No repository found containing: org.eclipse.wst.web_ui.feature/org.eclipse.update.feature/3.0.3.v200810010400-7R0EOzE8Ks9uCz0nqrQF6yCFSQyI
  No repository found containing: org.eclipse.wst.ws.explorer/osgi.bundle/1.0.308.v200811062250
  No repository found containing: org.eclipse.wst.ws_core.feature/org.eclipse.update.feature/3.0.3.v200810012109-7H7QECgED69XqKg9nufm2_7C5J
  No repository found containing: org.eclipse.wst.ws_ui.feature/org.eclipse.update.feature/3.0.3.v200810012109-7E2EFVC-2f_FDJhnGKZmULIbsTaU
  No repository found containing: org.eclipse.wst.ws_userdoc.feature/org.eclipse.update.feature/3.0.2.v200810081944-34EDe9oA55S6I5S8KCS
  No repository found containing: org.eclipse.wst.ws_wsdl14.feature/org.eclipse.update.feature/1.4.1.v200809302010-13-7w311917141518
  No repository found containing: org.eclipse.wst.ws_wsdl15.feature/org.eclipse.update.feature/1.5.2.v200809302010-1407w311917141519
  No repository found containing: org.eclipse.wst.wsdl/osgi.bundle/1.1.202.v200809291819
  No repository found containing: org.eclipse.wst.wsdl.ui/osgi.bundle/1.2.103.v200810301738
  No repository found containing: org.eclipse.wst.wsdl.ui.doc.user/osgi.bundle/1.0.501.v200810081958
  No repository found containing: org.eclipse.wst.xml.core/osgi.bundle/1.1.306.v200810210016
  No repository found containing: org.eclipse.wst.xml.ui/osgi.bundle/1.0.420.v200810220345
  No repository found containing: org.eclipse.wst.xml_core.feature/org.eclipse.update.feature/3.0.3.v200810021802-7A7NEH0E7QYGHNIxPlGgVY
  No repository found containing: org.eclipse.wst.xml_ui.feature/org.eclipse.update.feature/3.0.3.v200809292000-7F2ENZCwum8U9-9yPhHnPkSb2VAc
  No repository found containing: org.eclipse.wst.xml_userdoc.feature/org.eclipse.update.feature/3.0.3.v200810090336-40EJs_kE77c8P_TALGS
  No repository found containing: org.eclipse.wst.xmleditor.doc.user/osgi.bundle/1.0.500.v200810081958
  No repository found containing: org.eclipse.wst.xsd.core/osgi.bundle/1.1.302.v200810020300
  No repository found containing: org.eclipse.wst.xsd.ui/osgi.bundle/1.2.104.v200810020602
  No repository found containing: org.eclipse.jpt.db/osgi.bundle/1.2.0.v200810300000
  No repository found containing: org.eclipse.jpt.db.ui/osgi.bundle/1.1.0.v200808210000
  No repository found containing: org.eclipse.jpt.gen/osgi.bundle/1.2.0.v200810080000
  No repository found containing: org.eclipse.jpt.utility/osgi.bundle/1.3.0.v200811030000
  No repository found containing: org.eclipse.jst.ws/osgi.bundle/1.0.306.v200810020426
  No repository found containing: org.eclipse.jst.ws.axis2.consumption.core/osgi.bundle/1.0.104.v200810151442
  No repository found containing: org.eclipse.jst.ws.axis2.creation.core/osgi.bundle/1.0.104.v200810151442

回答by VonC

What version of eclipse are you using ?

你用的是什么版本的eclipse?

It has been fixed in 3.4.1, but in your case, it could be this bug instead.

它已在 3.4.1 中修复,但在您的情况下,它可能是这个错误

It turns out the cause is one or more artifact repositories being lost from the list of known repositories.

The workaround is to remove the repository from the list and add it back again. This restores the missing artifact repository.

事实证明,原因是一个或多个工件存储库从已知存储库列表中丢失。

解决方法是从列表中删除存储库并重新添加。这将恢复丢失的工件存储库。



A possible workaround in eclipse 3.4.1:

eclipse 3.4.1 中可能的解决方法:

  1. export the update site listing to bookmarks.xmlfile (Software Updates->Manage sites->Export)
  2. stop eclipse
  3. remove configuration/.settings/org.eclipse.equinox.p2.*.prefsfiles
    (Note, as mentioned by Fredrikin the comments, for Eclipse3.5+, this would be:
    p2\org.eclipse.equinox.p2.engine\.settings
    p2\org.eclipse.equinox.p2.engine\profileRegistry\SDKProfile.profile\.data\.setti??ngs)
  4. start eclipse
  5. import the bookmarks.xmlfile (Software Updates->Manage sites->Import) that was exported in step 1
  1. 将更新站点列表导出到bookmarks.xml文件 ( Software Updates->Manage sites->Export)
  2. 停止日食
  3. 删除configuration/.settings/org.eclipse.equinox.p2.*.prefs文件
    (注意,如提及弗雷德里克的意见,对Eclipse3.5 +,这将是:
    p2\org.eclipse.equinox.p2.engine\.settings
    p2\org.eclipse.equinox.p2.engine\profileRegistry\SDKProfile.profile\.data\.setti??ngs
  4. 开始日食
  5. 导入在步骤 1 中导出的bookmarks.xml文件 ( Software Updates->Manage sites->Import)

As mentioned by mark(author of this question) in the comments of this answer, that workaround was a solution for his problem.

正如mark(这个问题的作者)在这个答案的评论中提到的那样,该解决方法是他的问题的解决方案。



Other advice:

其他建议:

[...] the solution is always to append a trailing '/'to allrepository URLs in my P2 UI.
My feeling is that this error is caused by a failure to construct a viable URL to a repo resource. The code in question is not inspecting the URL string from the UI and is assuming a trailing '/' resulting in a 404

[...] 解决方案始终是在我的 P2 UI 中'/'所有存储库 URL附加一个结尾。
我的感觉是这个错误是由于未能构建到 repo 资源的可行 URL 引起的。有问题的代码没有检查 UI 中的 URL 字符串,而是假设尾随 '/' 导致 404

This last solution is confirmed working in Eclipse Indigo and Juno (below in the comments).

最后一个解决方案在 Eclipse Indigo 和 Juno 中得到确认(在评论下方)。

回答by xask

Yet another solution -

还有一个解决方案——

Instead exporting all managed sites and importing them back, click on 'edit' on each checked site and add '//' at the end

而不是导出所有托管站点并将它们导入回来,请单击每个选中站点上的“编辑”并在末尾添加“//”

If you just add a '/' it says duplicate site therefore the '//'

如果您只是添加一个“/”,它表示重复站点,因此“//”

How a small bug in a huge carefully architected application can be so hard to debug yet simple to solve

精心设计的庞大应用程序中的小错误如何难以调试但易于解决

回答by manikanta

Though this question is answered a long back, wanted to share my experience thinking that it may save some one' day :)

虽然这个问题很久以前就得到了回答,但我想分享我的经验,认为它可以节省一些时间:)

Some times it could also be possible due to the incorrect proxy settings. In my case (Eclipse 3.6/Helios), Eclipse preference file $ECLIPSE_HOME$/configuration/.settings/org.eclipse.core.net.prefsis having proxy details,

有时也可能由于代理设置不正确。就我而言(Eclipse 3.6/Helios),Eclipse 首选项文件$ECLIPSE_HOME$/configuration/.settings/org.eclipse.core.net.prefs包含代理详细信息,

proxyData/HTTP/hasAuth=true
systemProxiesEnabled=true
proxyData/HTTP/host=proxy.domain.net
org.eclipse.core.net.hasMigrated=true
eclipse.preferences.version=1
proxiesEnabled=true
proxyData/HTTP/port=9119
nonProxiedHosts=

When I deleted the file after closing the Eclipse, then onwards I m able to download the plugins

当我在关闭 Eclipse 后删除文件时,然后我就可以下载插件了

回答by Bob Yoplait

I had the same problem with Eclipse Helios (3.6) on Ubuntu 64 bits.

我在 64 位 Ubuntu 上使用 Eclipse Helios (3.6) 遇到了同样的问题。

Removing

删除

http://download.eclipse.org/tools/cdt/releases/helios

http://download.eclipse.org/tools/cdt/releases/helios

from the "Available Software Sites" in Eclipse, and adding it again did the fix.

来自 Eclipse 中的“可用软件站点”,并再次添加它进行修复。

回答by tasmot

The backslash thing in the exported bookmarks file fixed it for me.

导出的书签文件中的反斜杠为我修复了它。

回答by Damo

I had the same problem (well similar as I was just trying to install subclipse). VonC's tip "Other advice" did it for me.

我遇到了同样的问题(与我只是尝试安装 subclipse 非常相似)。VonC 的提示“其他建议”为我做到了。

  1. Export sites to bookmarks.xml
  2. Edit this file and append a forward slash at the end of every URL where it is missing.
  3. Delete all sites
  4. Re-import edited bookmarks.xml
  5. Sigh with relief as it works.
  1. 将站点导出到 bookmarks.xml
  2. 编辑此文件并在每个缺少它的 URL 的末尾附加一个正斜杠。
  3. 删除所有站点
  4. 重新导入编辑过的 bookmarks.xml
  5. 当它起作用时松了一口气。

回答by Sandeep Jindal

I had the same problem. After exporting and importing bookmarks, the problem did not get resolved. but I started getting error 'Connection refused'.

我有同样的问题。导出和导入书签后,问题没有得到解决。但我开始收到错误“连接被拒绝”。

On further thoughts I found that my antivirus is not allowing eclipse to talk to internet. Disabling antivirus made it work.

经过进一步思考,我发现我的防病毒软件不允许 eclipse 与互联网通话。禁用防病毒软件使其工作。

Sandeep Jindal

桑迪普·金达尔

回答by Kyle Mede

I had a similar problem over the last couple months, but ignored it until I really needed PyDev to work on my laptop today.

在过去的几个月里,我遇到了类似的问题,但一直忽略它,直到我今天真的需要 PyDev 在我的笔记本电脑上工作。

I tried the solutions above to no avail and then I found something odd:

我尝试了上面的解决方案无济于事,然后我发现了一些奇怪的事情:

In (Window->Preferences->Install/Update->Available Software) I noticed that the box for 'PyDev Update Site' AND another one right below it with the location 'file:/updates' were both checked, causing a duplicate of most or all update URLs. After un-checking the box with the location 'file:/updates' I was able to update from (Help->Check for Updates) which then successfully installed the latest version of PyDev.

在 (Window->Preferences->Install/Update->Available Software) 中,我注意到“PyDev 更新站点”框和位于其下方的另一个位置为“file:/updates”的框都被选中,导致重复大多数或所有更新 URL。在取消选中带有位置“文件:/更新”的框后,我能够从(帮助->检查更新)进行更新,然后成功安装了最新版本的 PyDev。

This solution might not be applicable to PyDev updates alone and could hopefully help others with similar issues.

此解决方案可能不适用于 PyDev 更新,并有望帮助其他有类似问题的人。

回答by johnvdenley

I just had the same problem, I diabled my ZoneAlarm Firewall, and it connected OK!

我刚刚遇到了同样的问题,我关闭了 ZoneAlarm 防火墙,并且连接正常!

Is there some kind of rule I need to add into my firewall to stop it blocking eclipse? It never used to do this, everything was working find until last week (Sept 25th (ish) 2012)

我需要在防火墙中添加某种规则来阻止它阻止日食吗?它从来没有这样做过,直到上周(2012 年 9 月 25 日(ish)),一切都在工作

回答by Arch Brooks

When I encountered a similar problem I add the following repository to my available update site. http://dist.springsource.com/release/TOOLS/update/e4.4/.

当我遇到类似的问题时,我将以下存储库添加到我的可用更新站点。 http://dist.springsource.com/release/TOOLS/update/e4.4/

Make sure the slash in at the end of the URL.

确保 URL 末尾有斜杠。