ubuntu 常见错误--Could not get lock /var/lib/dpkg/lock
来源:互联网 发布:汇友行情软件 编辑:程序博客网 时间:2024/06/16 01:58
ubuntu 常见错误–Could not get lock /var/lib/dpkg/lock
通过终端安装程序sudo apt-get install xxx或者apt-get 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?
出现这个问题可能是有另外一个程序正在运行,导致资源被锁不可用。而导致资源被锁的原因可能是上次运行安装或更新时没有正常完成,进而出现此状况,解决的办法其实很简单:
在终端中敲入以下两句
sudo rm /var/cache/apt/archives/locksudo rm /var/lib/dpkg/lock
再试着安装,问题解决。
转载自http://blog.csdn.net/ialexanderi/article/details/70992891
阅读全文
0 0
- ubuntu错误--Could not get lock /var/lib/dpkg/lock
- ubuntu常见错误--could not get lock /var/lib/dpkg/lock -open
- Ubuntu 常见错误 Could not get lock /var/lib/dpkg/lock-open
- ubuntu常见错误--could not get lock /var/lib/dpkg/lock -open
- ubuntu 常见错误--Could not get lock /var/lib/dpkg/lock
- ubuntu 常见错误--Could not get lock /var/lib/dpkg/lock
- ubuntu 常见错误--Could not get lock /var/lib/dpkg/lock
- Ubuntu 常见错误: could not get lock /var/lib/dpkg/lock
- ubuntu 常见错误--Could not get lock /var/lib/dpkg/lock
- ubuntu 常见错误--Could not get lock /var/lib/dpkg/lock
- ubuntu常见错误--could not get lock /var/lib/dpkg/lock -open
- ubuntu 常见错误--Could not get lock /var/lib/dpkg/lock
- [zt]ubuntu 常见错误--Could not get lock /var/lib/dpkg/lock
- Ubuntu常见错误-Could not get lock /var/lib/dpkg/lock解决方法
- ubuntu 常见错误--Could not get lock /var/lib/dpkg/lock
- ubuntu 常见错误--Could not get lock /var/lib/dpkg/lock
- ubuntu常见错误--could not get lock /var/lib/dpkg/lock -open
- ubuntu常见错误--could not get lock /var/lib/dpkg/lock -open
- C#程序流控制(三)——跳转语句
- Springmvc学习
- 打不开某些jsp页面
- Android中的Handler的机制与用法详解之小凯哥拙见
- Oracle数据类型对应Java类型
- ubuntu 常见错误--Could not get lock /var/lib/dpkg/lock
- 约束规划问题的罚函数解法
- Android开发之漫漫长途 Ⅴ——Activity的显示之ViewRootImpl的PreMeasure、WindowLayout、EndMeasure、Layout、Draw
- thinkpad w10系统Fn+F5调节桌面亮度无效
- junit注解无提示且报错
- 帮我修改这个代码 我想用函数输入输出结构体 但是自己不会
- 协成开源LoRa闪耀中国物联网大会 成传统转型物联网的中流砥柱
- SSM框架 基于spring-AOP 实现requet参数日志记录
- 什么东西可以做中间件?