Dangeling symlink

If none of the more specific forums is the right place to ask

Dangeling symlink

Postby Lavene » 2006-01-27 03:49

I get a mail from 'anacron' daily saying:
Subject: Anacron job 'cron.daily' on sleepless

/etc/cron.daily/man-db:
mandb: warning: /usr/share/man/man1/x-terminal-emulator.1.gz is a dangling symlink


Now, I have followed the symlink mentioned in th email to /etc/alternatives/x-terminal-emulator.1.gz which again points to usr/X11R6/man/man1/xterm.1x.gz

And as far as I'm able to determine the /usr/X11R6/man/man1/xterm.1x.gz is an ordinary man page.

Code: Select all
man x-terminal-emulator
also gvies
man: warning: /usr/share/man/man1/x-terminal-emulator.1.gz is a dangling symlink
No manual entry for x-terminal-emulator


Both symlinks is owned by root by the way. Does that create the problem?

Tina
Lavene
Site admin
 
Posts: 5096
Joined: 2006-01-04 04:26
Location: Oslo, Norway

Postby Jeroen » 2006-01-27 17:58

Something is wrong though. Try to run 'file' on the files & symlinks, and post that over here.

The problem this causes is simply no manpage. Maybe also x-terminal-emulator itself is also broken, which might cause more real problems.
Jeroen
Debian Developer, Site Admin
Debian Developer, Site Admin
 
Posts: 571
Joined: 2004-04-06 18:19
Location: Utrecht, NL

Postby Lavene » 2006-01-28 04:01

The result of 'file':
tina@sleepless:~$ file /usr/share/man/man1/x-terminal-emulator.1.gz
/usr/share/man/man1/x-terminal-emulator.1.gz: broken symbolic link to `/etc/alternatives/x-terminal-emulator.1.gz'
tina@sleepless:~$ file /etc/alternatives/x-terminal-emulator.1.gz
/etc/alternatives/x-terminal-emulator.1.gz: broken symbolic link to `/usr/X11R6/man/man1/xterm.1.gz'
tina@sleepless:~$ file /usr/X11R6/man/man1/xterm.1x.gz
/usr/X11R6/man/man1/xterm.1x.gz: gzip compressed data, was "xterm.1x", from Unix, max compression


The real funny thing is that I tried to remove and recreate the symlinks and still get the same error.

However: I cannot find a package called "x-terminal-emulator" and the manpage the symlinks points to is for "xterm". And since I use "man xterm" anyway I guess simply deleting the non-working symlinks should be safe..?

Tina
Lavene
Site admin
 
Posts: 5096
Joined: 2006-01-04 04:26
Location: Oslo, Norway

Postby Jeroen » 2006-01-28 09:34

I see you didn't cut&paste :).

.1.gz != .1x.gz

http://bugs.debian.org/315195
Jeroen
Debian Developer, Site Admin
Debian Developer, Site Admin
 
Posts: 571
Joined: 2004-04-06 18:19
Location: Utrecht, NL

Postby Lavene » 2006-01-28 11:03

Oh fer crying out loud! :oops:

Thanks!

Tina
Lavene
Site admin
 
Posts: 5096
Joined: 2006-01-04 04:26
Location: Oslo, Norway

Postby dnusinow » 2006-01-28 19:27

This is a bug in xterm that I haven't bothered to track down yet, and neither has my comaintainer (who's mainly responsible for the package). It's been filed in the BTS though in several places iirc, so next time I devote some time to xterm I'll be sure to fix it.
David Nusinow
dnusinow
Debian Developer
Debian Developer
 
Posts: 75
Joined: 2005-12-12 16:35

Postby Jeroen » 2006-01-28 19:32

The buglog of the bug I quoted above suggests it's been fixed in unstable meanwhile by David Martínez Moreno
Jeroen
Debian Developer, Site Admin
Debian Developer, Site Admin
 
Posts: 571
Joined: 2004-04-06 18:19
Location: Utrecht, NL

Postby dnusinow » 2006-01-28 19:36

Ah, maybe he fixed it while I wasn't looking. Great to know. Thanks!
David Nusinow
dnusinow
Debian Developer
Debian Developer
 
Posts: 75
Joined: 2005-12-12 16:35

Postby Demetrius » 2006-01-28 20:05


However: I cannot find a package called "x-terminal-emulator" and the manpage the symlinks points to is for "xterm". And since I use "man xterm" anyway I guess simply deleting the non-working symlinks should be safe..?

Tina


There is no package called x-terminal-emulator. It is part of the alternatives system, which I believe is unique to Debian and very cool once you understand it. Alternatives keeps track of what you install through apt and keeps a list of applications that perform the same function. When you have multiple applications that perform the same function, the alternatives system allows you to choose which one is the default. For instance, you have w3m, links, and lynx installed (all web browsers for the command line). By default, w3m will open if you issue the command 'www-browser'. This can be changed (as root) via the command 'update-alternatives --config www-browser'.

So the command x-terminal-emulator should open what ever is defined by the alternatives system as your default x terminal. By default, I believe, it is lxterm.

See man update-alternatives for more.
Demetrius
 
Posts: 49
Joined: 2005-09-15 17:20

Postby Lavene » 2006-01-29 04:03

Demetrius,

Thanks for the explanation! :)

I should have known that really since I have used update-alternatives a few times. But sometimes I just get a brain meltdown I guess... :P

Tina
Lavene
Site admin
 
Posts: 5096
Joined: 2006-01-04 04:26
Location: Oslo, Norway

Postby Lavene » 2006-01-29 04:31

Heh... today I got a new one:
/usr/share/man/man3/open_memstream.3.gz is a dangling symlink

Think I'll just leave that alone but I'm curious: Is it decided what the filenames should be (.nx.gz or .n.gz)?

:)
Tina
Lavene
Site admin
 
Posts: 5096
Joined: 2006-01-04 04:26
Location: Oslo, Norway


Return to General Questions

Who is online

Users browsing this forum: No registered users and 11 guests

fashionable