概述
sudo apt-get install git
E: 无法获得锁 /var/lib/dpkg/lock - open (11: 资源暂时不可用)
E: 无法锁定管理目录(/var/lib/dpkg/),是否有其他进程正占用它?
当执行sudo apt-get相关的命令,会显示上面类似的错误
参考别人的解决方法是
sudo rm /var/cache/apt/archives/lock
sudo rm /var/lib/dpkg/lock
E: Could not get lock /var/lib/apt/lists/lock - open (11: Resource temporarily unavailable)
E: Unable to lock directory /var/lib/apt/lists/
E: Could not get lock /var/lib/dpkg/lock - open (11: Resource temporarily unavailable)
E: Unable to lock the administration directory (/var/lib/dpkg/), is another process using it?
可以运行
sudo rm /var/lib/apt/lists/lock
sudo rm /var/lib/dpkg/lock
最后
以上就是鳗鱼冰棍为你收集整理的Ubuntu中无法获得锁 /var/lib/dpkg/lock - open (11: 资源暂时不可用)的全部内容,希望文章能够帮你解决Ubuntu中无法获得锁 /var/lib/dpkg/lock - open (11: 资源暂时不可用)所遇到的程序开发问题。
如果觉得靠谱客网站的内容还不错,欢迎将靠谱客网站推荐给程序员好友。
发表评论 取消回复