Possible bug in snapd

I installed snapd some time ago on a Debian 11 desktop.

A few days ago I tried to install 2fa, as root, using snap install 2fa.

However I got the error message that my PATH variable did not include /snap/bin.

I noticed that this problem was common a few years ago. Is there a bug in my version of snapd ?

Running snap version gives :-

Snapd 2.61.4 Series 16 Debian 11 Kernel 5.10.0-23-amd64

Do I need to upgrade my version of snapd ?

If so, how do I do that ?

How did you become root ? Note that the su command actually forcefully unsets the environment variables, including PATH…