You need to enable JavaScript to run this app.
优惠活动
大模型
产品
解决方案
定价
更多

Ubuntu环境下安装Google Cloud Tools for Eclipse 1.8.4失败求助

解决Google Cloud Tools for Eclipse 1.8.4安装时的公钥错误问题

问题场景

尝试从Eclipse Marketplace或通过Help -> Install New Software安装Google Cloud Tools for Eclipse 1.8.4时,出现公钥缺失错误,具体报错信息如下:

An error occurred while collecting items to be installed
session context was:(profile=_home_user_eclipse_jee-2021-063_eclipse, phase=org.eclipse.equinox.internal.p2.engine.phases.Collect, operand=, action=).
Result of processing steps.
OK
OK
OK
Public key not found for -9147676190077153272.
OK
Result of processing steps.
OK
OK
OK
Public key not found for -9147676190077153272.
OK
Result of processing steps.
OK
OK
OK
Public key not found for 8122282445186051625.
OK

环境信息:

  • Ubuntu 18.04.6 / Ubuntu 20
  • Eclipse IDE for Enterprise Java and Web Developers 2021-06(4.20.0)
  • Google Cloud Tools for Eclipse 1.8.4
  • Java JDK 8 / JDK 11

解决思路

1. 临时禁用签名验证

直接跳过公钥校验,快速完成安装:

  • 打开Eclipse,进入Window -> Preferences(Linux下为Eclipse -> Preferences)
  • 导航到Install/Update -> Trust
  • 勾选Allow installation of unsigned content选项
  • 重启Eclipse后重新尝试安装

2. 手动导入缺失公钥

若需保留签名验证,可手动导入对应公钥:

  • 找到Eclipse配置目录下的p2/org.eclipse.equinox.security/secure_storage(用户配置路径通常为~/.eclipse/<profile>/p2/org.eclipse.equinox.security/secure_storage)
  • 获取Google Cloud插件的官方签名公钥
  • 进入Window -> Preferences -> Install/Update -> Trust -> Manage Trusted Certificates,点击「Import」导入公钥文件

3. 安装最新兼容版本

放弃指定1.8.4版本,尝试最新兼容版:

  • 打开Help -> Install New Software,添加更新站点:https://dl.google.com/eclipse/plugin/release
  • 站点加载完成后,选择列表中最新可用版本的插件进行安装

4. 清理p2缓存

缓存损坏可能引发校验异常:

  • 关闭Eclipse
  • 删除工作区目录下的.metadata/.plugins/org.eclipse.equinox.p2.core/cache文件夹
  • 删除用户目录下的~/.p2缓存目录(建议先备份重要配置)
  • 重启Eclipse后重新尝试安装

内容的提问来源于stack exchange,提问作者Sebastian Lorenzo

相关产品推荐
方舟 Agent Plan

超全模态模型 × Harness 升级,最新支持 Deepseek-V4.1-Flash、GLM-5.3 系列、Doubao-Seedream-5.0-pro、Kimi-K3 (部分), 限时 9.9 元起

最近更新时间:2026.07.20 17:15:15