美文网首页Deep Learning
关闭其他apt权限,Unable to acquire the

关闭其他apt权限,Unable to acquire the

作者: yuanthu | 来源:发表于2021-08-07 11:28 被阅读0次

Ubuntu安装软件显示此错误:

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

这是因为有其他资源占用apt,大概率因为有某些软件升级导致。。。
kill进程之前先查看一下,需要谨慎关闭,可以采取如下方案:
使用如下命令查看所有进程id

ps -e|grep apt-get

显示进程id ... apt-get

就可以输入:

sudo kill -9 进程id
# 或
sudo kill -s 9 进程id
# 或者直接简单粗暴
sudo killall -9 apt-get

还不行就直接重启
reboot一下

相关文章

网友评论

    本文标题:关闭其他apt权限,Unable to acquire the

    本文链接:https://www.haomeiwen.com/subject/fpfevltx.html