码迷,mamicode.com
首页 > 系统相关 > 详细

(八)ubuntu安装软件提示:Could not get lock /var/lib/dpkg/lock - open (11: Resource temporarily unavailable)

时间:2017-03-04 14:20:26      阅读:458      评论:0      收藏:0      [点我收藏+]

标签:headers   提示   header   var   war   font   lists   archive   mini   

question:

 

ubuntu@ubuntu:/usr/src/Linux-headers-3.5.0-23-generic$ sudo apt-get install cheese

[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?


how to solve this issue please help.

 

answar:

 

You can delete the lock file with the following command:
sudo rm /var/lib/apt/lists/lock
You may also need to delete the lock file in the cache directory
sudo rm /var/cache/apt/archives/lock

(八)ubuntu安装软件提示:Could not get lock /var/lib/dpkg/lock - open (11: Resource temporarily unavailable)

标签:headers   提示   header   var   war   font   lists   archive   mini   

原文地址:http://www.cnblogs.com/zhangshenghui/p/6501115.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!