error: Could not get lock /var/lib/dpkg/lock - open (11: Resource temporarily unavailable) Unable t
2015-07-16 21:11
375 查看
在ubuntu apt-get upgrade的时候,遇到:
ubuntu@ubuntu:/usr/src/XXXXXXXXXXX$ sudo apt-get install YYYYYYYY
[sudo] password for ubuntu:
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 -rf /var/cache/apt/archives/lock
sudo apt-get update
然后apt-get就恢复正常了。
在执行sudo apt-get update的指令时,不要运行其它的程序sudo apt-get install 安装
ubuntu@ubuntu:/usr/src/XXXXXXXXXXX$ sudo apt-get install YYYYYYYY
[sudo] password for ubuntu:
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 -rf /var/cache/apt/archives/lock
sudo apt-get update
然后apt-get就恢复正常了。
在执行sudo apt-get update的指令时,不要运行其它的程序sudo apt-get install 安装
相关文章推荐
- hdu 3938 Portal(并查集+离线+kruskal)2011 Multi-University Training Contest 10
- Airbnb欺诈预测机器学习模型设计:准确率和召回率的故事
- weblogic.descriptor.DescriptorException: Unmarshaller failed
- LeetCode#219 Contains Duplicate II
- Codeforces Round #289 (Div. 2, ACM ICPC Rules)——B贪心——Painting Pebbles
- Captain_kunkka
- Ubuntu 14.04 SSH bug for “Agent admitted failure to sign using the key”
- 开源蘑菇街TeamTalk报make db_proxy_server failed,信息分析
- Allocation Failure
- ORA-27054 NFS问题解决 AIX 挂载NFS文件
- poj 2904 The Mailboxes Manufacturers Problem( 区间dp)
- Container ViewController初探1
- init engine failure
- Map containsKey用法
- Contains Duplicate III -leetcode
- 关于[[NSBundle mainBundle] pathForResource:@"name" ofType:@"type"]找不到指定文件的解决办法
- 增加samba用户提示Failed to add entry for user
- AIX系统中使用bsdlog函数输出内核信息
- 阻塞socket上read/write出现errno为EAGAIN的原因解密
- LeetCode#217 Contains Duplicate