Failed to set keymap: Keymap es is not installed

Hello,

I need to be able to change the keyboard language by SSH command as it is to automate installations on many computers.

I have this error:

$ sudo localectl set-keymap es
Failed to set keymap: Keymap es is not installed.

The problem is occurring new to me on Ubuntu Mate 22.04.
All previous LTS has always worked for me.
I have tried it on Ubuntu 22.04 "server" and it works.
Any ideas?
Thanks!