Ubuntu中Unable to acquire the dpkg frontend lock解决方案

根据百度总结三种方式:第三种解决了我的问题

1. ps -e|grep apt-get 

   结果:6965 ? 00:00:01 apt-get  

   执行:sudo kill 6965

 

#强制解锁,会删除文件目录

2. sudo rm /var/cache/apt/archives/lock

    sudo rm /var/lib/dpkg/lock

 

#重启系统

3. sudo systemctl --force --force reboot

posted @ 2019-06-15 10:17  静思,随心  阅读(9596)  评论(0编辑  收藏  举报