Not sure if anyone has done this already (because I haven't looked) but here is a one-liner I use after I install Proxmox on my servers.
It does 4 things.
1) places pve-no-subscription in the /etc/apt/sources.list file
2) comments out the pve-enterprise.list
3) apt update && apt...