Fix Could Not Open Lock File Var Lib Dpkg Lock
Nevertheless, the fix is rather simple. You can usually ignore anything asking you whether or not you’re root and go straight to the heart of the problem, which is related to two processes attempting to access a locked file at the same time. Method 1: Making Sure sudo Can Access Every Part of the Command If you were to run sudo apt-get update && apt-get upgrade, then you might get this error since the second process doesn’t have the right authority to access the /var/lib/dpkg/lock file....