On Mon, Sep 06, 2021 at 06:52:35PM +0930, Ron wrote:
> This one was kind of fun ...  upgrading an up to date buster machine to
> bullseye, I hit the conffile prompt I normally expect to see for vim:
> 
>   Setting up vim-common (2:8.2.2434-3) ...
> 
>   Configuration file '/etc/vim/vimrc'
>    ==> Modified (by you or by a script) since installation.
>    ...
> 
> 
> So I do what I always do, and reach for vimdiff to merge the new changes
> in vimrc ... only this time, it tells me:
> 
>   # vimdiff /etc/vim/vimrc /etc/vim/vimrc.dpkg-new
>   -bash: vimdiff: command not found
> 
> and vim's not there either!
> 
>   # vim
>   -bash: vim: command not found
> 
> Which of course it is.  But it's a symlink through /etc/alternatives,
> and a quick look shows they're now (almost) all dangling ...

Thanks for catching this and the suggested cleanup.  Since vim Depends
on vim-gtk3, which Depends on vim-common, vim-common gets "configured"
first.  This means the alternatives still haven't been re-targeted to
vim.gtk3 when the conffile prompt happens.

I do think adding the alternatives cleanup to preinst is worth doing,
but I'm not sure how to handle the specific problem you ran into.

Cheers,
-- 
James
GPG Key: 4096R/91BF BF4D 6956 BD5D F7B7  2D23 DFE6 91AE 331B A3DB

Reply via email to