The default glusterfs package in the Ubuntu repo is 3.5.
This is a very old version of GlusterFS.
If you want a newer version you need to do the following:
GLUSTER_VERSON=7 apt update -y apt-get install software-properties-common add-apt-repository ppa:gluster/glusterfs-${GLUSTER_VERSON} -y apt install glusterfs-client glusterfs-common glusterfs-server -y systemctl enable glusterd systemctl start glusterd gluster --version
To see the available versions, run the following:
add-apt-repository ppa:gluster/glusterfs-