dpkg: error: dpkg status database is locked by anotherprocess
无法获得锁 /var/lib/apt/lists/lock - open
ubuntu升级错误或强制中断后容易爆出上面两个错误,怎么解决呢?
First, type
and then type
in the terminal.
Now, dpkg can work.
Reference:
http://ubuntuforums.org/showthread.php?p=11508389
同样
可以通过
sudo rm /var/lib/apt/lists/lock
来解决
但是注意同一时间只能用一个dpkg 也就是同时只能升级一个,当打开多个安装时 弹出 无法获得锁/var/lib/apt/lists/lock - open 这是正常的
我说的要解锁的是升级卡住强制退出的时候的解决方法,比如这次升级flash 不知道什么原因一直卡在 flashplushinstall 这里
$sudo rm /var/lib/dpkg/lock
$sudo dpkg --configure -a
sudo rm /var/lib/apt/lists/lock
然后直接去adobe下载后使用dpkg或软件中心安装的
本文详细介绍了在Ubuntu升级终端后遇到dpkg错误时的解决步骤。包括如何解锁dpkg数据库,以及在升级过程中遇到卡顿或强制退出时的应对策略。通过执行特定命令,可以确保dpkg正常工作,避免因锁定文件导致的问题。
![[转载]ubuntu <wbr>升级终端后 <wbr>dpkg: <wbr>error: <wbr>dpkg <wbr>status 菊子曰](https://i-blog.csdnimg.cn/blog_migrate/a4c26d1e5885305701be709a3d33442f.gif)
1588

被折叠的 条评论
为什么被折叠?



