Estou tentando instalar o java
em um debian jessie 8.8
:
sudo update-alternatives --install /usr/bin/java java /usr/local/PeykAsa/jdk1.7.0/bin/java 315
Eu recebo:
update-alternatives: unknown option '--install /usr/bin/java'
Use 'update-alternatives --help' for program usage information.
Eu não acho que o comando está faltando alguma coisa, como página man e man update-alternatives
diz então:
--install link name path priority [--slave link name path]...
Add a group of alternatives to the system. link is the generic name for the master link, name is the name of its symlink in the alternatives directory, and path is the alternative being
introduced for the master link. The arguments after --slave are the generic name, symlink name in the alternatives directory and the alternative path for a slave link. Zero or more --slave
options, each followed by three arguments, may be specified. Note that the master alternative must exist or the call will fail. However if a slave alternative doesn't exist, the corresponding
slave alternative link will simply not be installed (a warning will still be displayed). If some real file is installed where an alternative link has to be installed, it is kept unless --force
is used.
If the alternative name specified exists already in the alternatives system's records, the information supplied will be added as a new set of alternatives for the group. Otherwise, a new
group, set to automatic mode, will be added with this information. If the group is in automatic mode, and the newly added alternatives' priority is higher than any other installed alterna‐
tives for this group, the symlinks will be updated to point to the newly added alternatives.
Eu tentei --force
, obtive a mesma saída. Eu nunca enfrentei esse problema em debian
, em qualquer versão (por exemplo, 7, 6, 8.2, 8.8, etc.).