Unable to lock the administration directory (/var/lib/dpkg/), is another process using it?
来源:互联网 发布:由mac地址计算pin码 编辑:程序博客网 时间:2024/05/18 00:15
问题描述
今天打开电脑,通常都是首先更新下系统。
sudo apt-get update
访问源列表里的每个网址,并读取软件列表,然后保存在本地电脑。没有问题,之后准备更新软件,
sudo apt-get upgrade
这时候有可能会提示,也有可能在update
的时候就提示
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命令,执行
ps -aux | grep 'apt-get'
命令,查看是否有后台执行的apt命令; - 如果有,则
sudo kill -9 <process-id>
- 执行
apt
命令,如果还是不行的话可以尝试sudo rm /var/lib/apt/lists/lock
,也许还需要执行
sudo rm /var/cache/apt/archives/locksudo rm /var/lib/dpkg/lock
参考文献
- https://askubuntu.com/questions/452638/how-can-i-solve-unable-to-lock-the-administration-directory-var-lib-dpkg
- https://askubuntu.com/questions/15433/unable-to-lock-the-administration-directory-var-lib-dpkg-is-another-process
阅读全文
0 0
- E: Unable to lock the administration directory (/var/lib/dpkg/), is another process using it?
- Unable to lock the administration directory (/var/lib/dpkg/),is another process using it?
- Unable to lock the administration directory (/var/lib/dpkg/), is another process using it?
- Unable to lock the administration directory (/var/lib/dpkg/),is another process using it?
- Unable to lock the administration directory (/var/lib/dpkg/),is another process using it?
- E: Unable to lock the administration directory (/var/lib/dpkg/), is another process using it?
- Unable to lock the administration directory (/var/lib/dpkg/), is another process using it?
- E: Unable to lock the administration directory (/var/lib/dpkg/), is another process using it?
- E: Unable to lock the administration directory (/var/lib/dpkg/), is another process using it?
- E: Unable to lock the administration directory (/var/lib/dpkg/), is another process using it?
- Ubuntu终端出现Unable to lock the administration directory (/var/lib/dpkg/), is another process using it?
- Unable to lock the administration directory (/var/lib/dpkg/), is another process
- E: Unable to lock the administration directory (/var/lib/dpkg/), is another
- Unable to lock the administration directory (/var/lib/dpkg/)
- E: Could not get lock /var/lib/dpkg/lock E: Unable to lock the administration directory (/var/lib/d
- 修复 Ubuntu 中“Unable to lock the administration directory (/var/lib/dpkg/)”的
- 修复 Ubuntu 中“Unable to lock the administration directory (/var/lib/dpkg/)”
- Ubuntu‘Unable to lock the administration directory (/var/lib/dpkg/)’错误
- 桶排序与基数排序、计数排序
- mybatis知识点总结和梳理
- bootstrap table表格里的某一行置顶
- 包图
- JDK的安装和配置解析
- Unable to lock the administration directory (/var/lib/dpkg/), is another process using it?
- 九度 题目1351:数组中只出现一次的数字
- SDUT-2552 猜糖块
- Java之异常处理具体使用总结
- PMP学习笔记(七)
- PHP控制反转(IOC)和依赖注入(DI)
- 合并一个文件夹下多个文件内容的单行shell命令
- 微信小程序学习之路(二) ------ 组件
- Bootstrap Selcet动态追加option