E: Could not open lock file /var/lib/dpkg/lock - open (13: Permission denied)
E: Unable to lock the administration directory (/var/lib/dpkg/), are you root?
解决办法:
使用root用户权限,前面加sudo。
与之类似的问题另一种解决办法:
删除提示的锁文件
rm -rf /var/lib/dpkg/lock
2021-07-14 10:10:47
E: Could not open lock file /var/lib/dpkg/lock - open (13: Permission denied)
E: Unable to lock the administration directory (/var/lib/dpkg/), are you root?
解决办法:
使用root用户权限,前面加sudo。
与之类似的问题另一种解决办法:
删除提示的锁文件
rm -rf /var/lib/dpkg/lock
下一篇:《linux就该这么学》第五课