Ubuntu – Why does Eclipse’s “Check for updates” not work

eclipse

I just did a fresh install of 12.04 Precise. In Eclipse, if I do "Help" > "Check for updates" I see 8 packages which are grayed out with the message "Insufficient access privileges to apply this update." Any idea how I fix this?

Best Answer

If you install Eclipse from the Ubuntu repository, the Eclipse install will be owned by root. The proper way to update base packages is to use the Ubuntu upgrade tools, not the Eclipse update tools. I believe it is possible to install addons in your Workspace but I would not recommend mixing package managers.

If you want to use the Eclipse update process you need to download the Eclipse from the Eclipse download site. When I do that, I install under /opt after setting the privileges to my user id to write there. Unpackage as the user you will be using to run Eclipse.

EDIT: I often the permissions on /opt to 1777 to allow anyone to create packages there. Alternatively I use chgrp users /opt and set the permissions to 1775. This allows members of the uses group to add new packages to /opt.