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 :)

 

最新文章

  1. 正确理解Spring AOP中的Around advice
  2. flex 简单跑马灯效果(竖着显示)
  3. cordova热更新
  4. mysql服务的注册,启动、停止、注销。 [delphi代码实现]
  5. Http协议学习总结(转)
  6. ElasticSearch(8)-分布式搜索
  7. List去除重复的元素
  8. AHB协议整理 AMBA
  9. Python 基础API
  10. mybites
  11. android 开发 更好的数据存放,回调,处理class模式,适合与各种布局适配器class一起使用
  12. ajax 提交数组 泛型集合(二)
  13. Django_重装系统后无法使用 sqlite 数据库报错:com.intellij.execution.ExecutionException: Exception in thread "main" java.lang.ClassNotFoundException: org.sqlite.JDBC
  14. TextureView SurfaceView 简介 案例
  15. 制作CentOS fence-agents 镜像
  16. SQL Fundamentals: Using Single-Row Functions to Customize Output使用单行函数自定义输出
  17. ubuntu18.04 server配置静态ip (转载)
  18. redhat安装xwindow环境
  19. Cannot find class [org.springframework.web.servlet.view.freemarker.FreeMarkerConfigurer]
  20. 那些年我们追过的C#奇葩关键字——忐忑

热门文章

  1. Hash 1.04 右键
  2. 一键精简Windows不常用的字体.cmd
  3. 第19课 类型萃取(3)_类型选择的traits
  4. postgresql分区(引用)
  5. MySQL视图-(视图创建,修改,删除,查看,更新数据)
  6. 删除已经提交到远程仓库的gitignore文件
  7. 图灵一代接入V1
  8. 201772020113 李清华《面向对象程序设计(java)》第三周学习总结
  9. [python]Generators
  10. __get__ __set__ __delete__描述符