【问题标题】:Eclispse Install software says "Can not complete the request"Eclipse 安装软件显示“无法完成请求”
【发布时间】:2015-07-21 17:10:20
【问题描述】:

我正在使用 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.

我遇到过类似的问题 How to enable Software Update in an Eclipse product?Getting the message "Cannot start the update ui..." when trying to run the update UI in Eclipse 但它并没有解决我的问题

【问题讨论】:

    标签: eclipse


    【解决方案1】:

    Bug 378568 提及:

    看起来你的 Eclipse 的配置已损坏。

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

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

    删除这些文件(在文件夹 eclipse.p2.data.area 中)并重新启动 Eclipse 应该有助于解决问题。
    虽然FaithReaper 提到了in the comments

    删除 eclipse.p2.data.area 文件夹会阻止 Eclipse 启动。
    就我而言,它是C:\Users\&lt;my.user.name&gt;\.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
    

    这在this answer(和this one)中提到作为要应用的补丁(请参阅bug 445122: ClassCastException received when System.getProperties().store() runs on 4.4.1

    只需将以下行添加到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
    

    【讨论】:

    • 我得到类似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
    • @Goutam eclipse.p2.data.areaconfig.ini 中提到的路径是什么?
    • @Goutam 在那个文件夹中,你看到eclipse.ini 中的eclipse.p2.profile 键指向的文件了吗?
    • @Goutam 进行测试,你可以试试eclipse -clean (stackoverflow.com/a/2030106/6309) 然后再尝试添加你的 lpugin 吗?
    • 还有一件事是,“然后检查是否可以从路径eclipse.p2.data.area找到指定的配置文件”可能会引起一些混乱......配置文件在&lt;eclipse.p2.data.area&gt;\org.eclipse.equinox.p2.engine\profileRegistry
    【解决方案2】:

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

    C:\eclipse

    工作区也是如此。

    【讨论】:

    • 不详细的解释、提示或想法应该放在 cmets 中。
    【解决方案3】:

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

    【讨论】:

      猜你喜欢
      • 2013-03-11
      • 1970-01-01
      • 2021-06-29
      • 1970-01-01
      • 2017-09-15
      • 1970-01-01
      • 2010-12-17
      • 2012-05-08
      • 1970-01-01
      相关资源
      最近更新 更多