在更新Eclipse时,报出了如下错误:
An error occurred while uninstalling session context was:
(profile=D__…_…_eclipse_jee-2021-09_eclipse, phase=org.eclipse.equinox.internal.p2.engine.phases.Uninstall, operand=[R]org.eclipse.platform.ide.executable.win32.win32.x86_64 4.21.0.I20210906-0500 --> null, action=org.eclipse.equinox.internal.p2.touchpoint.natives.actions.CleanupzipAction).
Backup of file D:…eclipse.exe failed.
Can not remove : D:…eclipse.exe
找了好久没有看到相关的解决方案,最后在http://www.eclipse.org/forums/index.php/t/487240/论坛找到如下解决方案:
- Run eclipse
- Rename eclipse exe to eclipse.exe.back
- Run updates
- Updates executed successfully
简而言之就是在启动eclipse后,再把eclipse exe重命名为eclipse.exe.back然后更新。
希望能帮到更新时也有报此错误的童鞋!