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
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