Julien Cristau wrote: > I tried to reproduce this by upgrading xterm from sarge to etch and > didn't get any dangling symlink. I tried an upgrade with xterm as the > only x-terminal-emulator package installed, as well as with xterm and > rxvt, and I also tried setting the link to uxterm manually before the > upgrade. This choice seems to be lost on upgrade (probably due to the > path change for *xterm), but I got no dangling symlink. > I'd appreciate your help in trying to understand how things went wrong > for you, and if it's still possible for them to go wrong in case of a > sarge->etch upgrade. A sarge->etch upgrade does not enter into it to me; my laptop has had etch installed from the time I bought it (early June), and still has the broken symlink that I described. The problem seems to be due to different terminal emulators registering slave symlinks with different names for x-terminal-emulator. joey@kodama:/var/lib/dpkg/info>grep x-terminal-emulator.1.gz *.p* gnome-terminal.postinst: --slave /usr/share/man/man1/x-terminal-emulator.1.gz \ gnome-terminal.postinst: x-terminal-emulator.1.gz /usr/share/man/man1/gnome-terminal.1.gz joey@kodama:/var/lib/dpkg/info>grep x-terminal-emulator.1x.gz *.p* xterm.postinst: /usr/share/man/man1/x-terminal-emulator.1x.gz x-terminal-emulator.1x.gz \ xterm.postinst: /usr/share/man/man1/x-terminal-emulator.1x.gz x-terminal-emulator.1x.gz \ xterm.postinst: /usr/share/man/man1/x-terminal-emulator.1x.gz x-terminal-emulator.1x.gz \ xterm.postinst: /usr/share/man/man1/x-terminal-emulator.1x.gz x-terminal-emulator.1x.gz \ This inconsistency causes a broken symlink if the alternative is changed: joey@dodo:~>dir /usr/share/man/man1/x-terminal-emulator.1.gz lrwxrwxrwx 1 root root 42 Oct 31 2005 /usr/share/man/man1/x-terminal-emulator.1.gz -> /etc/alternatives/x-terminal-emulator.1.gz joey@dodo:~>dir /etc/alternatives/x-terminal-emulator.1.gz lrwxrwxrwx 1 root root 39 Nov 7 20:49 /etc/alternatives/x-terminal-emulator.1.gz -> /usr/share/man/man1/gnome-terminal.1.gz root@dodo:~>update-alternatives --config x-terminal-emulator There are 5 alternatives which provide `x-terminal-emulator'. Selection Alternative ----------------------------------------------- *+ 1 /usr/bin/gnome-terminal.wrapper 2 /usr/bin/xterm 3 /usr/bin/uxterm 4 /usr/bin/koi8rxterm 5 /usr/bin/lxterm Press enter to keep the default[*], or type selection number: 2 Using `/usr/bin/xterm' to provide `x-terminal-emulator'. joey@dodo:~>dir /usr/share/man/man1/x-terminal-emulator.1.gz lrwxrwxrwx 1 root root 42 Oct 31 2005 /usr/share/man/man1/x-terminal-emulator.1.gz -> /etc/alternatives/x-terminal-emulator.1.gz joey@dodo:~>dir /etc/alternatives/x-terminal-emulator.1.gz ls: /etc/alternatives/x-terminal-emulator.1.gz: No such file or directory joey@dodo:~>dir /etc/alternatives/x-terminal-emulator.1x.gz lrwxrwxrwx 1 root root 31 Nov 7 20:56 /etc/alternatives/x-terminal-emulator.1x.gz -> /usr/share/man/man1/xterm.1x.gz -- see shy jo
Attachment:
signature.asc
Description: Digital signature