You’ll need to use MongoDB v4.4 on Ubuntu 16.04 as Ubuntu 16.04 support is dropped in version 5.0+
v4.4 Edition of the manual: