ubuntu使用命令apt-get install出现的问题

Posted TOBESTRONGEST

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了ubuntu使用命令apt-get install出现的问题相关的知识,希望对你有一定的参考价值。

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

  

以上是关于ubuntu使用命令apt-get install出现的问题的主要内容,如果未能解决你的问题,请参考以下文章