无法获得锁 /var/lib/dpkg/lock

E: 无法获得锁 /var/lib/dpkg/lock-frontend - open (11: 资源暂时不可用)

问题

E: 无法获得锁 /var/lib/dpkg/lock-frontend - open (11: 资源暂时不可用) E: Unable to
acquire the dpkg frontend lock (/var/lib/dpkg/lock-frontend), is
another process using it?

解决方法

vv@vv-virtual-machine:$ ps -e | grep apt
  1196 ?        00:00:00 apt.systemd.dai
  1234 ?        00:00:00 apt.systemd.dai
vv@vv-virtual-machine:$ sudo kill 1196
vv@vv-virtual-machine:$ sudo rm /var/cache/apt/archives/lock  
vv@vv-virtual-machine:$ sudo rm /var/lib/dpkg/lock 
上一篇:vuex复习篇


下一篇:2021-09-07 刷题 119杨辉三角2