【问题标题】:Cannot remove previously installed PlugIns from Eclipse which I removed manually in Ubuntu无法从 Eclipse 中删除以前安装的插件,我在 Ubuntu 中手动删除了这些插件
【发布时间】:2015-11-13 19:53:16
【问题描述】:

我认为我所做的步骤(据我所知)如下:

第一:

$ sudo apt-get install eclipse

之后我通过安装了不同的插件,比如 Eclipse EGit

帮助 -> 安装新软件:在此处使用 Indigo 更新站点

按照上述内容,我清除了我的安装

$ sudo apt-get purge eclipse
$ sudo apt-get autoremove

然后我从 /home/user 中删除了工作区和 .eclipse

新安装会显示我之前在“安装新软件”对话框中安装的相同插件,这些插件不再存在(我认为)。它显示它们已安装,但我无法重新安装它们。如果我再次尝试通过示例安装 Eclipse EGit,Eclipse 会告诉我,该插件的较新版本已经安装,这就是它会被忽略的原因。 如果我关注

Help -> About Eclipse Platform: 点击Installation Details

我可以看到所有已安装的插件,但无法卸载它们。此对话框选项已过时(不知道如何更好地描述它)。

我尝试以 root 身份运行 Eclipse

$ sudo eclipse

但随后 Eclipse 崩溃(我认为是因为缺少插件)

这个操作系统上还有其他用户,所以我猜我无法从根目录下清理它,但我不确定这一点。

我的目标是删除所有与 Eclipse 相关的内容,以便进行全新安装。更简单的解决方案对我不起作用,但我想这可以很容易地完成。

提前致谢

编辑: 这些是/etc/eclipse.ini的内容

-startup
plugins/org.eclipse.equinox.launcher_1.3.0.dist.jar
--launcher.library
plugins/org.eclipse.equinox.launcher.gtk.linux.x86_64_1.1.200.dist
-showsplash
org.eclipse.platform
--launcher.XXMaxPermSize
256m
--launcher.defaultAction
openFile
-vmargs
-Xms40m
-Xmx384m
-Dorg.eclipse.equinox.p2.reconciler.dropins.directory=/usr/share/eclipse/dropins

【问题讨论】:

  • 还有,eclipse.ini的内容是什么?如果您使用脚本或快捷方式启动 Eclipse,它的内容是什么?
  • 在共享安装中,默认的用户配置位置是<user-home-dir>/.eclipse/<product-id>_<product-version>/configuration。 P2 配置存储在<user-home-dir>/.p2 中,您能否确认您已完全删除了两个这些目录?
  • 目前我已经从官方 ubuntu 存储库中卸载了 eclipse (3.8)。此外,我遵循了您的建议并从 eclipse.org 安装了最新的 eclipse。我在 ~ 处没有文件夹 .p2,但我没有删除 ~/.eclipse/org.eclipse_3.8_155965261。
  • 希望 ubuntu 存储库 eclipse 安装 (3.8) 和新的类似 zip 的 eclipse 不会让事情变得更加复杂。我无法确定哪个文件属于哪个安装,但我猜它自己的文件夹中的类似 zip 的 eclipse 的所有文件(目前位于 ~ 因为我想要它在那里)并不重要,因为这个安装作品。这也阻止了我删除 ~/.eclipse,因为我认为其中一些文件属于类似 zip 的 eclipse..

标签: eclipse ubuntu


【解决方案1】:

不要使用apt-get 安装Eclipse(Linux 发行版维护人员认为对您有好处的Eclipse 版本),而是使用download it directly from eclipse.org 作为用户级应用程序安装。这不是多用户安装,但我认为您会发现以这种方式进行管理要容易得多。另外,您可以准确地决定哪个版本和软件包最适合您。

【讨论】:

  • 但这会让我留下一个破碎的,不是吗?
  • 我听从了你的建议。问题评论中的解释
猜你喜欢
  • 2023-03-06
  • 2015-03-01
  • 2014-06-05
  • 1970-01-01
  • 1970-01-01
  • 2017-03-12
  • 2013-11-21
  • 1970-01-01
  • 2016-10-05
相关资源
最近更新 更多