ubuntu 常见错误--Could not get lock /var/lib/dpkg/lock
来源:互联网 发布:数据库本地连接不上 编辑:程序博客网 时间:2024/06/05 20:47
ubuntu 常见错误--Could not get lock /var/lib/dpkg/lock
通过终端安装程序sudo apt-get install xxx时出错:
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/lock
sudo rm /var/lib/dpkg/lock
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/lock
sudo rm /var/lib/dpkg/lock
转自:
http://hi.baidu.com/remoteexp/item/9a49be38da33155d81f1a7b7 阅读全文
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
- 谷歌浏览器
- 浅谈安卓按键下的变量命名
- P1208 [USACO1.3]混合牛奶 Mixing Milk
- SpringMVC拦截器Interceptor
- hadoop 编程 学习之路
- ubuntu 常见错误--Could not get lock /var/lib/dpkg/lock
- 牛客 题库
- python:7:循环与迭代
- matlab 2016a破解中文版安装教程(windows)
- WEB前端开发(一)-------------标记(一)
- java中length,length(),size()区别
- POJ 1797 Heavy Transportation——spfa
- C++ 标准库 string类型(三)
- 39. Combination Sum &&40. Combination Sum II