25.10: update-alternatives does not work

On other systems, executing editor will open the editor specified by update-alternatives.

On a truenas 25.10 system. editor will open nano which is the default specified by update-alternatives.

In executing the command update-alternatives, I get an error when running under sudo or su’ing to the root environment:

# update-alternatives --config editor
There are 3 choices for the alternative editor (providing /usr/bin/editor).

Selection Path Priority Status

  • 0 /bin/nano 40 auto mode
    1 /bin/nano 40 manual mode
    2 /usr/bin/mcedit 25 manual mode
    3 /usr/bin/vim.tiny 15 manual mode

Press to keep the current choice[*], or type selection number: 3
update-alternatives: using /usr/bin/vim.tiny to provide /usr/bin/editor (editor) in manual mode
update-alternatives: error: unable to remove ‘/usr/share/man/da/man1/editor.1.gz.dpkg-tmp’: Read-only file system

I have highlighted the error I get.

I have tried adding the following to my ~/.zshrc;

export EDITOR=/usr/bin/vim.tiny

This still results in editor running nano even after a log-off/log-on sequence.

How can this be worked around as I would prefer not to be forced to use nano after 45+ years of muscle memory using vi.