[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: problem installing java related stuff due to japanes man pages



Hein Meling <meling@item.ntnu.no> writes:

> # update-alternatives --display javac
> javac - status is auto.
>  link currently points to /usr/lib/j2sdk1.3/bin/javac
> /usr/lib/j2sdk1.3/bin/javac - priority 1310
>  slave javac.ja.1.gz: /usr/share/man/ja/man1/javac.j2sdk13.1.gz
>  slave javac.1.gz: /usr/share/man/man1/javac.j2sdk13.1.gz

If the j2sdk1.3 package generates alternative links to files it
doesn't contain it is buggy. Have you contacted its maintainer?

> The approach I used to fix this was by creating the directory 'ja/man1'
> and doing 'touch javac.j2sdk13.1.gz'.  Followed by "update-alternatives
> --remove javac /usr/share/man/ja/man1/javac.j2sdk13.1.gz" or something
> like that (tried various combinations; not sure exactly what is the
> correct path?).

I don't think you can remove just the slave link easily. You'd have to
do:

# remove the j2sdk1.3 link and all its slaves
update-alternatives --remove javac /usr/lib/j2sdk1.3/bin/javac
# re-add it without the offending slave link
update-alternatives \
  --install /usr/bin/javac javac /usr/lib/j2sdk1.3/bin/javac 1310 \
    --slave /usr/share/man/man1/javac.1.gz javac.1.gz \
                                  /usr/share/man/man1/javac.j2sdk13.1.gz

Re-installing the buggy j2sdk1.3 package will usually reset this
setup -- but reinstalling jikes or another provider of javac should not.

> Note that doing a "ls -la
> /etc/alternatives/*.ja*" reveals a whole bunch of links to non-existent
> ja man pages (all related to the j2sdk13 package)...

You should be able to treat those in a similar way.

> I would appreciate a tip on how to lose these links permanently; maybe
> even if I reinstall the j2sdk13 package.

Installing a fixed j2sdk1.3 package would probably be best, of course.

-- 
Robbe

Attachment: signature.ng
Description: PGP signature


Reply to: