linux常用汇总

E: Could not get lock /var/lib/dpkg/lock - open (11: Resource temporarily unavailable)
E: Unable to lock the administration directory (/var/lib/dpkg/), is another process using it?

原因:一些程序锁定了apt数据库。可能是软件中心,apt-get等。

解决方法:

  1. 列举apt进程

ps aux | grep apt

  1. 杀掉进程

kill processnumber

posted @ 2018-10-14 22:04  李斌libinyl的博客  阅读(77)  评论(0编辑  收藏  举报