为啥 Eclipse p2 拒绝更新 org.eclipse.equinox.simpleconfigurator?

Posted

技术标签:

【中文标题】为啥 Eclipse p2 拒绝更新 org.eclipse.equinox.simpleconfigurator?【英文标题】:Why is Eclipse p2 refusing to update org.eclipse.equinox.simpleconfigurator?为什么 Eclipse p2 拒绝更新 org.eclipse.equinox.simpleconfigurator? 【发布时间】:2012-04-12 23:44:28 【问题描述】:

当我尝试更新时,我收到此错误:

Cannot complete the install because of a conflicting dependency.
  Software being installed: Eclipse Platform 3.7.2.v20120207-1839-9gF7UHPDFxGjd-PqDr2jX_4yKaumkoHTz04_q-q (org.eclipse.platform.feature.group 3.7.2.v20120207-1839-9gF7UHPDFxGjd-PqDr2jX_4yKaumkoHTz04_q-q)
  Software currently installed: Equinox Core Function 1.0.0.v20110502-7K7VFBVF7RZHQQHxNc02A66 (org.eclipse.equinox.core.feature.feature.group 1.0.0.v20110502-7K7VFBVF7RZHQQHxNc02A66)
  Only one of the following can be installed at once: 
    Simple Configurator 1.0.200.v20110502-1955 (org.eclipse.equinox.simpleconfigurator 1.0.200.v20110502-1955)
    Simple Configurator 1.0.200.v20110815-1438 (org.eclipse.equinox.simpleconfigurator 1.0.200.v20110815-1438)
  Cannot satisfy dependency:
    From: Equinox Core Function 1.0.0.v20110502-7K7VFBVF7RZHQQHxNc02A66 (org.eclipse.equinox.core.feature.feature.group 1.0.0.v20110502-7K7VFBVF7RZHQQHxNc02A66)
    To: org.eclipse.equinox.simpleconfigurator [1.0.200.v20110502-1955]
  Cannot satisfy dependency:
    From: Eclipse Platform 3.7.2.v20120207-1839-9gF7UHPDFxGjd-PqDr2jX_4yKaumkoHTz04_q-q (org.eclipse.platform.feature.group 3.7.2.v20120207-1839-9gF7UHPDFxGjd-PqDr2jX_4yKaumkoHTz04_q-q)
    To: org.eclipse.rcp.feature.group [3.7.2.v20120120-1424-9DB5FmnFq5JCf1UA38R-kz0S0272]
  Cannot satisfy dependency:
    From: Eclipse RCP 3.7.2.v20120120-1424-9DB5FmnFq5JCf1UA38R-kz0S0272 (org.eclipse.rcp.feature.group 3.7.2.v20120120-1424-9DB5FmnFq5JCf1UA38R-kz0S0272)
    To: org.eclipse.equinox.simpleconfigurator [1.0.200.v20110815-1438]

我通过从 ZIP 文件中复制必要的插件创建了 p2 更新站点。

如何强制 p2 更新插件?

【问题讨论】:

【参考方案1】:

发生这种情况是因为 org.eclipse.equinox.simpleconfigurator 包在包清单中标记为“singleton=true”。这不允许 p2 director 安装此捆绑包的多个实例。

你可以更新它:

    首先卸载原始包(这并不容易,因为此包是 RCP 功能的一部分),

    或(这可能是更实用的解决方案)手动将 p2 存储库中的 1.0.200.v20110815-1438 捆绑包替换为原始 1.0.200.v20110502-1955 捆绑包。由于捆绑包的版本相同(1.0.200),您可能希望内容也相同。

【讨论】:

以上是关于为啥 Eclipse p2 拒绝更新 org.eclipse.equinox.simpleconfigurator?的主要内容,如果未能解决你的问题,请参考以下文章

更新 Eclipse 更新时出错

设置Eclipse启动JDK

No repository found containing,eclipse 自动更新erro 解决

为啥 phpmyadmin 拒绝通过 localhost 连接但接受 127.0.0.1?

不知道为啥用VS调试的时候被拒绝访问

为啥maven更新要删除文件