• 欢迎访问magento4you博客,我们提供magento建站、技术咨询、IT运维、支持培训、二次开发服务及模板定制,联系QQ:283475615
  • Magento入门教程 二次开发 模板定制 联系QQ:283475615
  • magento运营 SEO SEM 数字营销 广告竞价 联系QQ:283475615
  • 如果您觉得本站对你有帮助,那么赶紧使用Ctrl+D 收藏吧!

E: Could not get lock /var/lib/dpkg/lock – open (11: Resource temporarily unavailable) [duplicate]

Linux 5年前 (2016-07-15) 1463次浏览 0个评论

` 使用命令:

sudo rm /var/lib/apt/lists/lock

可能还需要使用命令

sudo rm /var/cache/apt/archives/lock

`

search for processes.

ps -A | grep apt-get
then see if there any process running as apt-get

kill that process it by using:

sudo kill -9 for example if process id is 2345

sudo kill -9 2345
then run the sudo apt-get update

Edit: If you are sure that you have no instances of dpkg or apt running and you still get the message, you can just delete the file:

sudo rm /var/lib/apt/lists/lock
A lock file is just a file with zero size that indicates locking of a resource.


极客公园 , 版权所有丨如未注明 , 均为原创丨本网站采用BY-NC-SA协议进行授权
转载请注明原文链接:E: Could not get lock /var/lib/dpkg/lock – open (11: Resource temporarily unavailable) [duplicate]
喜欢 (0)
发表我的评论
取消评论

*

code

表情 贴图 加粗 删除线 居中 斜体 签到

Hi,您需要填写昵称和邮箱!

  • 昵称 (必填)
  • 邮箱 (必填)
  • 网址