update-alternatives question

Joel Newkirk freerunner at newkirk.us
Sun Sep 14 07:54:09 CEST 2008


That did it, thanks.

j

On Sat, 13 Sep 2008 21:09:11 -0700, Charles-Henri Gros
<charles-henri.gros+openmoko at m4x.org> wrote:
> Joel Newkirk wrote:
>> Quick question, hopefully someone can instantly see my error:

>> root at iota:~# update-alternatives --install /usr/bin/ip ip ip.ip 100
>> update-alternatives: Error: cannot register alternative ip to
>> /usr/bin/ip since it is already registered to /bin/ip
>>
>> Isn't this the point of update-alternatives - to allow multiple possible
>> binaries, and 'register' the one with highest priority?  What have I
> done
>> wrong?  And why is the <path> component grep.grep (or in my case
> ip.ip)??
> 
> grep.grep is the binary that contains what the "grep" package installs.
> You should probably install your "ip" as "ip.ip", or use /usr/bin/ip (if
> that's where you install it)
> 
> So the command would look like (I think):
> update-alternatives --install /bin/ip ip /usr/bin/ip 100
> 
> --
> Charles-Henri
> 
> 
> _______________________________________________
> Openmoko community mailing list
> community at lists.openmoko.org
> http://lists.openmoko.org/mailman/listinfo/community





More information about the community mailing list