报错:Could not get lock /var/lib/dpkg/lock-frontend

2025年9月29日 | 分类: 【技术】

E: Could not get lock /var/lib/dpkg/lock-frontend.

Open your terminal and type:

ps -aux | grep -iE “apt”

It will show the id of the process running apt. Kill it with:

sudo kill -9

You could also kill all processes using apt with:

sudo killall apt apt-get