dangling symlinks

Tim Frost timfrost at xtra.co.nz
Thu Dec 22 21:30:11 UTC 2005


On Thu, 2005-12-22 at 09:14 +0800, Wenzhuo Zhang wrote:
> Hi,
> 
> After installing postfix, I started to receive the following message 
> generated by cron.daily:
> 
>    /etc/cron.daily/man-db:
>    mandb: warning: /usr/share/man/man1/rmic.1.gz is a dangling symlink
> 
> /usr/share/man/man1/rmic.1.gz is a symlink to 
> /etc/alternatives/rmic.1.gz. A further look into /etc/alternatives 
> reveal the following three dangling three symlinks altogether:
> 
>    $ ls -l /etc/alternatives/rmic.1.gz /etc/alternatives/rmic 
> /etc/alternatives/netscape-javaplugin.so
>    lrwxrwxrwx  1 root root 53 2005-10-27 11:42 
> /etc/alternatives/netscape-javaplugin.so -> 
> /usr/lib/j2re1.5-sun/plugin/i386/ns4/libjavaplugin.so
>    lrwxrwxrwx  1 root root 30 2005-10-17 18:11 /etc/alternatives/rmic -> 
> /usr/lib/jvm/java-gcj/bin/rmic
>    lrwxrwxrwx  1 root root 40 2005-10-17 18:11 
> /etc/alternatives/rmic.1.gz -> /usr/lib/jvm/java-gcj/man/man1/rmic.1.gz
> 
> Apparantly, netscape-javaplugin.so was created by sun-j2re1.5, because 
> it was created at exactly the same time as mozilla-javaplugin.so, which 
> belongs to the sun-j2re1.5.
> 
> Which package created rmic and rmic.1.gz?

The postinstall script for java-gcj-compat creates these symlinks.
However, the package does NOT include an rmic binary or man page.


And the set of alternatives being managed is inconsistent between the
postinst and prerm scripts.  postinst creates the following alternatives
entries (binary plus slave man page, in each case):
 jar
 rmic
 java
 gcj-dbtool


while prerm removes:
 jar
 java
 rmiregistry


I don't know if this is a bug in the ubuntu package, or in the upstream
debian package.  But the bugs are:
1: the package creates alternatives entries for rmic and rmic man page
    but does not install the files  (they are in the java-gcj-compat-dev
    package instead)

2: prerm does not remove the same list of alternatives that postinst
creates


I suppose we ought to file the bug in bugzilla? 


> 
> Wenzhuo
> 
> 
Tim






More information about the ubuntu-users mailing list