How to Resolve dpkg Dependencies

If you ever use dpkg to install a Debian package and it fails due to dependencies not being met, simply run

sudo apt -f -y install

and then run the dpkg command again.