eclipse Eclispse 安装软件说“无法完成请求”

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

Eclispse Install software says "Can not complete the request"

eclipse

提问by

I am using Eclipse Luna Service Release 1 (4.4.1) When I try to install new software It gives some error message like Cannot complete the request. This installation has not been configured properly for Software Updates.And my error log says

我正在使用 Eclipse Luna Service Release 1 (4.4.1) 当我尝试安装新软件时,它给出了一些错误消息,例如Cannot complete the request. This installation has not been configured properly for Software Updates.我的错误日志说

eclipse.buildId=4.4.1.M20140925-0400
java.version=1.7.0_75
java.vendor=Oracle Corporation
BootLoader constants: OS=linux, ARCH=x86, WS=gtk, NL=en_IN
Framework arguments:  -product org.eclipse.epp.package.standard.product
Command-line arguments:  -os linux -ws gtk -arch x86 -product org.eclipse.epp.package.standard.product

org.eclipse.equinox.p2.ui.sdk
Warning
Mon May 11 14:35:07 IST 2015
Could not locate the running profile instance. The eclipse.p2.data.area and eclipse.p2.profile properties may not be set correctly in this application's config.ini file.

I came across similar problems in How to enable Software Update in an Eclipse product?and Getting the message "Cannot start the update ui..." when trying to run the update UI in Eclipsebut it didnot solve my problem

我在如何在 Eclipse 产品中启用软件更新中遇到了类似的问题 在尝试在 Eclipse 中运行更新 UI 时收到消息“无法启动更新 ui...”但它没有解决我的问题

回答by VonC

Bug 378568mentions:

错误 378568提到:

Looks like the configuration of your eclipse is damaged.

Check the value of 'eclipse.p2.profile' and 'eclipse.p2.data.area' in config.ini, then check whether the specified profile can be found from path 'eclipse.p2.data.area'.

看起来您的 eclipse 配置已损坏。

检查 ' eclipse.p2.profile' 和 ' eclipse.p2.data.area' 中的值config.ini,然后检查是否可以从路径 ' eclipse.p2.data.area' 中找到指定的配置文件。

<eclipse.p2.data.area>\org.eclipse.equinox.p2.engine\profile??Registry

Removing those files (in the folder eclipse.p2.data.area) and relaunching Eclipse should help fix the issue.
Although FaithReapermentions in the comments:

删除这些文件(在文件夹中eclipse.p2.data.area)并重新启动 Eclipse 应该有助于解决问题。
尽管FaithReaper在评论中提到:

Removing the eclipse.p2.data.areafolder prevents Eclipse from launching.
In my case it is C:\Users\<my.user.name>\.p2

删除该eclipse.p2.data.area文件夹会阻止 Eclipse 启动。
在我的情况下是C:\Users\<my.user.name>\.p2

The discussion mentions the error:

讨论中提到了错误:

An internal error occurred during: 
"Loading bundle: 
  /eclipse/configuration/org.eclipse.osgi/1304/0/.cp/bundles/php.ruble". 
org.eclipse.osgi.internal.framework.EquinoxConfiguration 
  cannot be cast to java.lang.String

This is mentioned in this answer(and this one) as a patch to be applied (see bug 445122: ClassCastExceptionreceived when System.getProperties().store()runs on 4.4.1)

这在这个答案(和这个)中提到作为要应用的补丁(参见错误 445122:在 4.4.1 上运行ClassCastException时收到System.getProperties().store()

Just add the following lines to eclipse.ini:

只需将以下行添加到eclipse.ini

-Dorg.eclipse.swt.browser.IEVersion=10001
-Dosgi.configuration.area.default=null
-Dosgi.user.area.default=null
[email protected]
-Dosgi.instance.area.default=null

回答by Jay G

I hit this same error (Eclipse Mars). Shutting down all Eclipse instances and starting with eclipse.exe -cleanfixed it.

我遇到了同样的错误(Eclipse Mars)。关闭所有 Eclipse 实例并从eclipse.exe -clean修复它开始。

回答by Mathieu Charrié

It worked when I put the full eclipse folder (containing the executable) at the root of the harddrive like :

当我将完整的 eclipse 文件夹(包含可执行文件)放在硬盘驱动器的根目录时,它起作用了:

C:\eclipse

C:\日食

Same for the workspace.

工作区也一样。