You can also install several versions of Firebird from compressed tarball (tar.gz). Installation steps are like this:
1. First install needed libs: apt install libncurses6 libtommath1
1.5. For older firebird versions you might need to symlink libncurses.so.6 (latest Mint version from repo) to libncurses.so.5 (sudo ln -s /usr/lib/x86_64-linux-gnu/libncurses.so.6 /usr/lib/x86_64-linux-gnu/libncurses.so.5)
2. extract files from tarball, go to install directory and run installer like ./install -path /opt/firebird4 (or 3 or 5).
3. After install change default port in firebird.conf to 3051, 3052... (different one for every firebird version)
4. restart service: systemctl restart firebird.opt_firebird3-superserver.service, firebird.opt_firebird4.service...
Repeat necessary steps for any other firebird version.