tags 435617 + patch thanks Hello!
I suggest a better title: "broken pico alternatives after purge-remove" ;-) On Thu, 02 Aug 2007 04:26:06 +0200, Raphael Geissert wrote: > When testing nano with piuparts on sid there are some broken > symlinks: [...] > 9m44.8s ERROR: Broken symlinks: > /etc/alternatives/pico.1.gz -> True > /etc/alternatives/pico -> True > /usr/bin/pico -> True > /usr/share/man/man1/pico.1.gz -> True > ---- It seems that the cause is the call to update-alternatives in nano.prerm. On a clean and updated chroot: ===== [EMAIL PROTECTED]:/# apt-get install nano [...] Setting up nano (2.0.6-2) ... [EMAIL PROTECTED]:/# ls -l /etc/alternatives/pico* lrwxrwxrwx 1 root root 9 Aug 8 11:29 /etc/alternatives/pico -> /bin/nano lrwxrwxrwx 1 root root 29 Aug 8 11:29 /etc/alternatives/pico.1.gz -> /usr/share/man/man1/nano.1.gz [EMAIL PROTECTED]:/# ls -l /usr/bin/pico lrwxrwxrwx 1 root root 22 Aug 8 11:29 /usr/bin/pico -> /etc/alternatives/pico [EMAIL PROTECTED]:/# update-alternatives --remove pico /usr/bin/pico [EMAIL PROTECTED]:/# ls -l /etc/alternatives/pico* lrwxrwxrwx 1 root root 9 Aug 8 11:31 /etc/alternatives/pico -> /bin/nano lrwxrwxrwx 1 root root 29 Aug 8 11:31 /etc/alternatives/pico.1.gz -> /usr/share/man/man1/nano.1.gz [EMAIL PROTECTED]:/# ls -l /usr/bin/pico lrwxrwxrwx 1 root root 22 Aug 8 11:29 /usr/bin/pico -> /etc/alternatives/pico [EMAIL PROTECTED]:/# update-alternatives --remove pico /bin/nano [EMAIL PROTECTED]:/# ls -l /etc/alternatives/pico* ls: /etc/alternatives/pico*: No such file or directory [EMAIL PROTECTED]:/# ls -l /usr/bin/pico ls: /usr/bin/pico: No such file or directory [EMAIL PROTECTED]:/# ===== In fact, `man update-alternatives` says for option 'remove': --remove name path Remove an alternative and all of its associated slave links. name is a name in the alternatives directory, and path is an absolute filename to which name could be linked. If name is indeed linked to path, name will be updated to point to another appropriate alternative, or removed if there is no such alternative left. Associated slave links will be updated or removed, correspondingly. If the link is not currently pointing to path, no links are changed; only the information about the alternative is removed. Thus, the correct path is not /usr/bin/pico, but /bin/nano instead. Here's the patch: --8<---------------cut here---------------start------------->8--- --- nano.prerm.ORG 2007-08-08 13:33:08.000000000 +0200 +++ nano.prerm 2007-08-08 13:33:15.000000000 +0200 @@ -4,7 +4,7 @@ if [ "$1" != "upgrade" ]; then update-alternatives --remove editor /bin/nano - update-alternatives --remove pico /usr/bin/pico + update-alternatives --remove pico /bin/nano fi # Automatically added by dh_installinfo --8<---------------cut here---------------end--------------->8--- Thx, bye, Gismo / Luca -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]