dpkg: error: dpkg status database is locked by another process
2024-10-07 21:19:40
First run:
lsof /var/lib/dpkg/lock
Then make sure that process isn't running:
ps cax | grep PID
If it is running:
kill PID
#wait
kill -9 PID
Make sure process is done:
ps cax | grep PID
Then remove the lock file:
sudo rm /var/lib/dpkg/lock
Let dpkg fix itself:
sudo dpkg --configure -a
You should be fine afterwards :)
最新文章
- 正确理解Spring AOP中的Around advice
- flex 简单跑马灯效果(竖着显示)
- cordova热更新
- mysql服务的注册,启动、停止、注销。 [delphi代码实现]
- Http协议学习总结(转)
- ElasticSearch(8)-分布式搜索
- List去除重复的元素
- AHB协议整理 AMBA
- Python 基础API
- mybites
- android 开发 更好的数据存放,回调,处理class模式,适合与各种布局适配器class一起使用
- ajax 提交数组 泛型集合(二)
- Django_重装系统后无法使用 sqlite 数据库报错:com.intellij.execution.ExecutionException: Exception in thread ";main"; java.lang.ClassNotFoundException: org.sqlite.JDBC
- TextureView SurfaceView 简介 案例
- 制作CentOS fence-agents 镜像
- SQL Fundamentals: Using Single-Row Functions to Customize Output使用单行函数自定义输出
- ubuntu18.04 server配置静态ip (转载)
- redhat安装xwindow环境
- Cannot find class [org.springframework.web.servlet.view.freemarker.FreeMarkerConfigurer]
- 那些年我们追过的C#奇葩关键字——忐忑
热门文章
- Hash 1.04 右键
- 一键精简Windows不常用的字体.cmd
- 第19课 类型萃取(3)_类型选择的traits
- postgresql分区(引用)
- MySQL视图-(视图创建,修改,删除,查看,更新数据)
- 删除已经提交到远程仓库的gitignore文件
- 图灵一代接入V1
- 201772020113 李清华《面向对象程序设计(java)》第三周学习总结
- [python]Generators
- __get__ __set__ __delete__描述符