Prerequisits at https://github.com/legatoproject/legato-af old

see if this helps:

BTW, I don’t see problem in Ubuntu 16 or Ubuntu 18