Eclispse安装软件说"无法完成请求"

8 eclipse

我正在使用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.
Run Code Online (Sandbox Code Playgroud)

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

小智 6

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


Von*_*onC 5

错误 378568提到:

看起来您的 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
Run Code Online (Sandbox Code Playgroud)

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

删除该eclipse.p2.data.area文件夹会阻止 Eclipse 启动。
就我而言,它是C:\Users\<my.user.name>\.p2

讨论中提到了错误:

An internal error occurred during: 
"Loading bundle: 
  /eclipse/configuration/org.eclipse.osgi/1304/0/.cp/bundles/php.ruble". 
org.eclipse.osgi.internal.framework.EquinoxConfiguration$1 
  cannot be cast to java.lang.String
Run Code Online (Sandbox Code Playgroud)

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

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

-Dorg.eclipse.swt.browser.IEVersion=10001
-Dosgi.configuration.area.default=null
-Dosgi.user.area.default=null
-Dosgi.user.area=@user.home
-Dosgi.instance.area.default=null
Run Code Online (Sandbox Code Playgroud)