Login  Register

Re: ImageJ can't be updated on Ubuntu

Posted by Jim Passmore on Feb 24, 2010; 3:09pm
URL: http://imagej.273.s1.nabble.com/ImageJ-can-t-be-updated-on-Ubuntu-tp3689216p3689218.html

ImageJ Interest Group <[hidden email]> wrote on 02/23/2010 09:36:48
AM:

> Hi,
>
> the simple solution is: do not install imagej system-wide, but let the
> users maintain their own copy.
> you really do not want to update a system-wide
> installed-from-repositories version.
> just download the imagej package from imagej's main site, unpack it in
> your homedirectory and run it from there. then you can update imagej
> whenever you want without being bothered by permission problems.
>
> roger
>
>
> On 02/23/2010 09:58 AM, Yili Zhao wrote:
> > Hi,
> >   I installed ImageJ through "sudo apt-get" on Ubuntu 9.10. Then I
clicked
> > "Help->Update ImageJ..." menu, but an dialog shows : "No write access:

> > /usr/share/java/ij.jar".
> >   It seems that I use the root privilege to install ImageJ by
> "sudo", and the
> > file "ij.jar" belongs root. So when I start ImageJ by non root
> user, it can't
> > write to file "ij.jar".
> >   How to solve this problem?
> >   Thanks!


No new ideas here, but perhaps some explanation:

This is definitely the best solution, and not just to enable ImageJ's
update feature.  Let's say you installed via apt-get and then changed
permissions so ImageJ could update itself.  You've set up the following
scenario:
1.  Let's say apt-get installs version 1.40 (don't know what version is
actually in the repository).
2.  You run the ImageJ update and get the latest 1.43q
3.  In the mean time, say 1.43a finds it's way into the repository.
4.  You update your whole Ubuntu system via standard apt method.  Your
system is unaware of your ImageJ update, and installs the latest version
it is aware of--1.43a.
5.  ------> You have now REGRESSED from 1.43q to 1.43a!

This illustrates why, as Johan said, you shouldn't have 2 competing
methods for updating software.  Go for the local install.

Jim

----------------------------------------------
Jim Passmore
Research Associate
Sealed Air Corporation
[hidden email]
864-433-2927 voice
864-433-2205 fax
----------------------------------------------