Proxmox on Debian Install fails – Errors were encountered while processing: pve-manager proxmox-ve

I reciently install proxmox on Debian and the install failed. Here is the error:

 apt-get update
Hit:1 buster InRelease
Hit:2 buster/updates InRelease
Hit:3 buster InRelease
Hit:4 buster-updates InRelease
Reading package lists... Done
root@px1:~# apt dist-upgrade
Reading package lists... Done
Building dependency tree
Reading state information... Done
Calculating upgrade... Done
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
2 not fully installed or removed.
After this operation, 0 B of additional disk space will be used.
Do you want to continue? [Y/n] y
Setting up pve-manager (6.3-3) ...
Job for pveproxy.service failed because the control process exited with error code.
See "systemctl status pveproxy.service" and "journalctl -xe" for details.
dpkg: error processing package pve-manager (--configure):
 installed pve-manager package post-installation script subprocess returned error exit status 1
dpkg: dependency problems prevent configuration of proxmox-ve:
 proxmox-ve depends on pve-manager; however:
  Package pve-manager is not configured yet.
dpkg: error processing package proxmox-ve (--configure):
 dependency problems - leaving unconfigured
Errors were encountered while processing:
E: Sub-process /usr/bin/dpkg returned an error code (1)

The resolution was to make sure the network was set to a static IP:

# The primary network interface
allow-hotplug enp4s0
iface enp4s0 inet static
        # dns-* options are implemented by the resolvconf package, if installed

The second issue was to make sure there was a host entry. Comment out the and make sure to use the full host.domain host as below. Leaving out the end “px1” caused the issue.

#     px1     px1