Eclipse update error: An error occurred while uninstalling session context was...

created at 12-31-2021 views: 16


When updating Eclipse, the following error was reported:

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

After searching for a long time, I haven't seen the relevant solutions, and finally found the following solution on the forum:

  1. Run eclipse
  2. Rename eclipse exe to eclipse.exe.back
  3. Run updates
  4. Updates executed successfully

In short, after starting eclipse, rename eclipse exe to eclipse.exe.back and then update.

created at:12-31-2021
edited at: 12-31-2021: