Install bd for Debian to address upstream bug. Thanks @sentabi for the report.
New logic makes way more sense: - If either firewalld or iptables are present, use whatever we have - If not, install firewalld in CentOS/Fedora and iptables in Debian/Ubuntu
The gnupg package is not available by default in some Ubuntu 18.04 images. Check for it and install if required.