E: Could not open lock file /var/lib/dpkg/lock-frontend - open (13: Permission denied)
E: Unable to acquire the dpkg frontend lock (/var/lib/dpkg/lock-frontend), are you root?
当我们遇到这个问题时,应该是我们之前在更新时中断导致锁住了,这时我们需要提高权限
使用命令 sudo -s
再次更新 apt-get update && apt-get -f install
接下来就可以了