美文网首页
Unable to lock the administratio

Unable to lock the administratio

作者: hi_lan | 来源:发表于2020-02-13 19:38 被阅读0次

这时候有可能会提示,也有可能在update的时候就提示

Could not get lock /var/lib/dpkg/lock - open (11 Resource temporarily unavailable)
Unable to lock the administration directory (/var/lib/dpkg/), is another process using it?

  1. 执行ps -aux | grep 'apt-get'命令,查看是否有后台执行的apt命令, 如果有,则sudo kill -9 <process-id>
  2. 执行apt命令,如果还是不行的话可以尝试sudo rm /var/lib/apt/lists/lock,也许还需要执行
    sudo rm /var/cache/apt/archives/lock
    sudo rm /var/lib/dpkg/lock

相关文章

网友评论

      本文标题:Unable to lock the administratio

      本文链接:https://www.haomeiwen.com/subject/jqilfhtx.html