admin管理员组文章数量:1652420
使用apt-get进行软件的install或update时,有时会出现以下提示信息:
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?
原因是有可能有其他的apt-get进程在活动。
解决办法,把apt-get进程找出来,杀死!
ps -ef | grep apt
sudo kill -9 <PID>
也有人说使用以下命令:
sudo rm /var/lib/dpkg/lock
sudo dpkg --configure -a
但是,请小心,非常危险,可能会导致操作系统无法启动。(之前我执行了第一个命令,没有执行第二个,导致操作系统无法启动,启动报内核错误)
我第二次遇到这个问题时准备尝试第一个方法,结果不小心系统重启了,而重启完这个问题消失了。
https://askubuntu/questions/15433/unable-to-lock-the-administration-directory-var-lib-dpkg-is-another-process
https://stackoverflow/questions/18682233/cant-remove-any-existing-lock
http://blog.163/cobyeah@126/blog/static/140137653201142354756503/
本文标签: AdministrationLockunabledirectorydpkg
版权声明:本文标题:E: Unable to lock the administration directory (varlibdpkg) 内容由热心网友自发贡献,该文观点仅代表作者本人, 转载请联系作者并注明出处:https://www.elefans.com/dongtai/1729593301a1207668.html, 本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容,一经查实,本站将立刻删除。
发表评论