error of adding new language ( help needed )

Hello ,
i installed parrot os today and i’m trying to add arabic language . but , when adding it i got this error

Error activating XKB configuration.
it can happen under various circumstances:

  • a bug in libxklavier
  • a bug in x server ( xkbcomp , xmodmap utilities )
  • x server with incompatible libxkbfile implementation

X server version data :
the X.Org foundation
12010000
if you report this situation as a bug , please include :

  • the result of xprop-root | grep XKB
  • the result of gsettings list-keys org.mate.peripherals-keyboard-xkb.kbd

This may be of help: ChangeLanguage - Debian Wiki

For Arabic, the commands should be:

$ sudo export LANG=an_AN.UTF-8
$ sudo dpkg-reconfigure locales

Then restart the operating system.