Eclipse Luna update to 4.4.1 fails in Ubuntu 14 (32-bit)
With Luna running, I select the Help:Check for Updates option and am shown a list of updates, which are all checked except the one for Luna 4.4.1.
I hit "Select All" and try to update. It fails with this message:
An error occurred while uninstalling
session context was:(profile=epp.package.standard, phase=org.eclipse.equinox.internal.p2.engine.phases.Uninstall, operand=[R]org.eclipse.platform_root 4.4.0.v20140606-1558 --> null, action=org.eclipse.equinox.internal.p2.touchpoint.natives.actions.CleanupzipAction).
Backup of file /opt/eclipse-luna/notice.html failed.
File that was copied to backup could not be deleted: /opt/eclipse-luna/notice.html
Solution 1:
Discovered the trick: run Eclipse (just this once, just for updating) as root.
In Terminal, run
gksudo /opt/eclipse-luna/eclipse
or whatever the path is on your system.
Then proceed with the update. This worked updating Luna from 4.4.0 to 4.4.1
Never ran into this when using Eclipse on a Mac.