Linux: could not open lock file /var/lib/dpkg/lock -open (13: Permission denied)

报错: could not open lock file /var/lib/dpkg/lock -open (13: Permission denied)
Unable to lock the administration directory (/var/lib/dpkg)

Permission denied 的话使用sudo执行即可, 比如:

sudo apt install -f

你可能感兴趣的:(Linux)