While streaming OpenTTD for my birthday stream today, I had trouble setting up the dedicated server due to the Ubuntu package manager having an old version of OpenTTD installed (14.X instead of 15.0).
A chatter suggested running the latest OpenTTD using nix, which worked!
nix --extra-experimental-features 'nix-command flakes' run github:nixos/nixpkgs/nixpkgs-unstable#openttd -- -D