Could not get lock var lib dpkg lock - Ubuntu/Debian - LinuxConfig.org

This error message is fairly common on any Ubuntu or any other Debian based Linux system.
This is a companion discussion topic for the original entry at https://linuxconfig.org/could-not-get-lock-var-lib-dpkg-lock-ubuntu-debian