首页 > 系统相关 >解决 Ubuntu apt-get Could not get lock varlibdpkglock-frontend

解决 Ubuntu apt-get Could not get lock varlibdpkglock-frontend

时间:2022-12-27 16:00:27浏览次数:42  
标签:frontend get lock apt var dpkg

解决 Ubuntu apt-get Could not get lock /var/lib/dpkg/lock-frontend.

E: Could not get lock /var/lib/dpkg/lock-frontend.  It is held by process 1927 (unattended-upgr)
N: Be aware that removing the lock file is not a solution and may break your system.
E: Unable to acquire the dpkg frontend lock (/var/lib/dpkg/lock-frontend), is another process using it?
  • 解决方案
sudo rm /var/lib/dpkg/lock-frontend
sudo rm /var/lib/dpkg/lock
sudo rm /var/cache/apt/archives/lock

然后使用apt-get安装就可以了

标签:frontend,get,lock,apt,var,dpkg
From: https://www.cnblogs.com/Yiersansi/p/17008250.html

相关文章