在 Ubuntu 12.04 中卸载和重新安装 Eclipse

声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow 原文地址: http://stackoverflow.com/questions/10750781/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me): StackOverFlow

提示:将鼠标放在中文语句上可以显示对应的英文。显示中英文
时间:2020-09-19 18:15:34  来源:igfitidea点击:

Uninstalling and reinstalling Eclipse in Ubuntu 12.04

eclipseubuntu

提问by siva636

I manually installed Eclipse in Ubuntu 12.04 then simply deleted the folder where I put the Eclipse and reinstalled it again from the Ubuntu application store.

我在 Ubuntu 12.04 中手动安装了 Eclipse,然后简单地删除了放置 Eclipse 的文件夹,然后从 Ubuntu 应用程序商店重新安装它。

When I try to update my new installation I get the following error.

当我尝试更新我的新安装时,出现以下错误。

How can I do a clean nuinstalation and reinstallation?

如何进行干净的 nuinstalation 和重新安装?

An error occurred while uninstalling session context was:(profile=PlatformProfile, phase=org.eclipse.equinox.internal.p2.engine.phases.Uninstall, operand=[R]org.eclipse.platform_root 3.7.2.dist-9nF7UHagFqn9pElwWhC90gLz-soEuSGYmtSeiRH --> null, action=org.eclipse.equinox.internal.p2.touchpoint.natives.actions.CleanupzipAction). Backup of file /usr/lib/eclipse/.eclipseproduct failed. File that was copied to backup could not be deleted: /usr/lib/eclipse/.eclipseproduct

卸载会话上下文时发生错误:(profile=PlatformProfile, phase=org.eclipse.equinox.internal.p2.engine.phases.Uninstall,operand=[R]org.eclipse.platform_root 3.7.2.dist-9nF7UHagFqn9pElwWhC90gLz- soEuSGYmtSeiRH --> null,action=org.eclipse.equinox.internal.p2.touchpoint.natives.actions.CleanupzipAction)。文件 /usr/lib/eclipse/.eclipseproduct 的备份失败。无法删除复制到备份的文件:/usr/lib/eclipse/.eclipseproduct

回答by kajman

Maybe try to delete file /usr/lib/eclipse/.eclipseproduct as root?

也许尝试以root身份删除文件/usr/lib/eclipse/.eclipseproduct?

sudo rm  /usr/lib/eclipse/.eclipseproduct

回答by Francis Upton IV

I would remove it using Ubuntu's uninstaller (deleting manually as necessary) and then install Eclipse downloaded from eclipse.org. I never use the Eclipse that comes with the Linux distros.

我会使用 Ubuntu 的卸载程序(根据需要手动删除)删除它,然后安装从 eclipse.org 下载的 Eclipse。我从不使用 Linux 发行版附带的 Eclipse。