【linux error】Waiting for cache lock

error

Waiting for cache lock: Could not get lock /var/lib/dpkg/lock-frontend. It is held by process 67257 (aptd)

是由于另一个进程正在使用apt命令,导致无法获取锁。您可以尝试等待一段时间,然后再次运行命令。如果问题仍然存在,请尝试使用下面命令来删除。

sudo rm /var/lib/dpkg/lock-frontend
posted @ 2023-04-11 17:08  叶际参差  阅读(709)  评论(0编辑  收藏  举报