Bug#446462: /usr/bin/vim is left broken when alternative is manual and points to vim-full

Raphael Hertzog hertzog at debian.org
Sat Oct 13 08:43:54 UTC 2007


Package: vim-full
Version: 1:7.1-135+1
Severity: important

$ LANG=C update-alternatives --display vim
vim - status is manual.
 link currently points to /usr/bin/vim.full
/usr/bin/vim.basic - priority 30
/usr/bin/vim.gnome - priority 60
Current `best' version is /usr/bin/vim.gnome.

$ LANG=C ls -al /usr/bin/vim.full
ls: /usr/bin/vim.full: No such file or directory
$ LANG=C ls -al /usr/bin/vim
lrwxrwxrwx 1 root root 21 Jan 31  2006 /usr/bin/vim -> /etc/alternatives/vim
$ LANG=C ls -al /etc/alternatives/vim
lrwxrwxrwx 1 root root 17 Aug 11 12:09 /etc/alternatives/vim -> /usr/bin/vim.full

So when I type "vim", it doesn't work... this is a problem that could be solved
at the update-alternatives level (see #87677, #311288, #392440) but in this
particular case and until update-alternatives is going to be fixed, It could make 
sense to detect this corner-case and update with the alternatives to point to 
vim.gnome since that's what you suggest as replacement. Feel free to give your input 
in the update-alternatives bug report mentionned above explaing in more details how 
you managed to create this situation. :-)

And I have similar problem with various other alternatives, although I don't 
remember having personalized them:
$ LANG=C update-alternatives --display gvim
gvim - status is manual.
 link currently points to /usr/bin/vim.full
/usr/bin/vim.gnome - priority 60
Current `best' version is /usr/bin/vim.gnome.

$ LANG=C update-alternatives --display gview
gview - status is manual.
 link currently points to /usr/bin/gvim
/usr/bin/vim.gnome - priority 60
Current `best' version is /usr/bin/vim.gnome.

$ LANG=C update-alternatives --display gvimdiff
gvimdiff - status is manual.
 link currently points to /usr/bin/gvim
/usr/bin/vim.gnome - priority 60
Current `best' version is /usr/bin/vim.gnome.

etc.

-- System Information:
Debian Release: lenny/sid
  APT prefers unstable
  APT policy: (500, 'unstable'), (500, 'testing'), (500, 'stable'), (1, 'experimental')
Architecture: i386 (i686)

Kernel: Linux 2.6.22-2-686 (SMP w/1 CPU core)
Locale: LANG=fr_FR.UTF-8, LC_CTYPE=fr_FR.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/bash

Versions of packages vim-full depends on:
ii  vim-gnome                    1:7.1-135+1 Vi IMproved - enhanced vi editor -

vim-full recommends no packages.

-- no debconf information





More information about the pkg-vim-maintainers mailing list