This might probably because your puppet installation isn't proper.
Check if you have properly installed puppet using the following command:
puppet master --version
If it's installed you get the version of the puppet installation, if not installed run:
sudo apt install puppet
Now try to download the PuppetDB. This should do!