华强北电脑城 龙岗电子世界 龙华电脑城  凯尔电脑

 找回密码
 立即注册

QQ登录

只需一步,快速开始

查看: 1449|回复: 0

Unable to acquire the dpkg frontend lock (/var/lib/dpkg/lock-frontend)

[复制链接]
发表于 2022-5-2 19:44:26 | 显示全部楼层 |阅读模式
This may happen if
  • 'Synaptic Package Manager' or 'Software Updater' is open.
  • Some apt command is running in Terminal.
  • Some apt process is running in background.

      a5 @# Z" D. ^: |
For above wait for the process to complete. If this does not happen run in terminal:
sudo killall apt apt-get
If none of the above works, remove the lock files. Run in terminal: (Note that this can seriously break your system.)
sudo rm /var/lib/apt/lists/locksudo rm /var/cache/apt/archives/locksudo rm /var/lib/dpkg/lock*
then reconfigure the packages. Run in terminal:
sudo dpkg --configure -a
and
sudo apt update
That should do the job.
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

QQ|华强北 电脑城 龙岗电子世界 龙华电脑城 pc4g.com ( 粤ICP备16039863号 )

GMT+8, 2024-9-18 17:46 , Processed in 0.134218 second(s), 15 queries .

Powered by Discuz! X3.4

Copyright © 2001-2021, Tencent Cloud.

快速回复 返回顶部 返回列表