E: Could not open lock file /var/lib/dpkg/lock-frontend – open (13: Permission denied)

Fix the error: “E: Could not open lock file /var/lib/dpkg/lock-frontend – open (13: Permission denied)…” with this step-by-step solution easy tutorial.