Could not get lock /var/lib/apt/lists/lock#yyds干货盘点#

著论准过秦,作赋拟子虚。这篇文章主要讲述Could not get lock /var/lib/apt/lists/lock#yyds干货盘点#相关的知识,希望能为你提供帮助。

1 现象
[172.16.56.142][WARNIN] E: Could not get lock /var/lib/apt/lists/lock - open (11: Resource temporarily unavailable)
[172.16.56.142][WARNIN] E: Unable to lock directory /var/lib/apt/lists/
[172.16.56.142][ERROR ] RuntimeError: command returned non-zero exit status: 100
[ceph_deploy][ERROR ] RuntimeError: Failed to execute command: env DEBIAN_FRONTEND=noninteractive DEBIAN_PRIORITY=critical apt-get --assume-yes -q update


2 解决办法



# rm /var/lib/apt/lists/* -vf
【Could not get lock /var/lib/apt/lists/lock#yyds干货盘点#】# apt-get update







    推荐阅读