Hi Sampo Sa,
Thanks for reaching out gluu support.
Yes you can install the gluu version 4.0 , we are working over the document changes meanwhile please installed it using
https://gluu.org/docs/ce/installation-guide/install-ubuntu/
apt-get install gluu-server
Thanks and Regards
Mohit Mali