What does systemctl status fail2ban.service says after the failed install ?
systemctl status fail2ban.service