本文共 443 字,大约阅读时间需要 1 分钟。
安装软件包时出现了以下报错:
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下的生成的死锁文件就好了。
$ sudo rm /var/lib/apt/lists/lock$ sudo rm /var/cache/apt/archives/lock
这时就可以去处理 [Waiting for headers]的问题,这是之前某次安装不成功遗留下的问题,只需要
$ sudo rm -rf /var/cache/apt/archives/
最后更新一下软件包就可以了
$ sudo apt update
转载地址:http://uxhwi.baihongyu.com/