@easyt50 I covered this topic a couple of weeks ago.
Remember that it is a warning, not an error. You can ignore it and continue using it like before if you don’t want to trouble yourself with manually adding the repository keys with gpg.
Basically, the apt-key mechanism will be going away in future versions and things will change around it.
Unfortunately, there is no straightforward replacement of apt-key at the moment.