apt-get update error解决方法
2016-04-06 15:15
441 查看
apt-get update error (Unable to lock the administration directory (/var/lib/dpkg/), is another proc)
root@ony-an:/opt/devstack# sudo $proxies apt-get update
Ign http://archive.ubuntu.com trusty InRelease
Hit http://archive.ubuntu.com trusty-updates InRelease
Hit http://archive.ubuntu.com trusty Release.gpg
Hit http://archive.ubuntu.com trusty-updates/main Sources
Hit http://archive.ubuntu.com trusty-updates/universe Sources
Hit http://archive.ubuntu.com trusty-updates/main amd64 Packages
Hit http://archive.ubuntu.com trusty-updates/universe amd64 Packages
Hit http://security.ubuntu.com trusty-security InRelease
Hit http://security.ubuntu.com trusty-security/main Sources
Hit http://archive.ubuntu.com trusty-updates/main Translation-en
Hit http://security.ubuntu.com trusty-security/universe Sources
Hit http://security.ubuntu.com trusty-security/main amd64 Packages
Hit http://archive.ubuntu.com trusty-updates/universe Translation-en
Hit http://security.ubuntu.com trusty-security/universe amd64 Packages
Hit http://security.ubuntu.com trusty-security/main Translation-en
Hit http://archive.ubuntu.com trusty Release
Hit http://security.ubuntu.com trusty-security/universe Translation-en
Hit http://archive.ubuntu.com trusty/main Sources
Hit http://archive.ubuntu.com trusty/universe Sources
Hit http://archive.ubuntu.com trusty/main amd64 Packages
Hit http://archive.ubuntu.com trusty/universe amd64 Packages
Hit http://archive.ubuntu.com trusty/main Translation-en
Hit http://archive.ubuntu.com trusty/universe Translation-en
Ign http://archive.ubuntu.com trusty/main Translation-en_US
Ign http://archive.ubuntu.com trusty/universe Translation-en_US
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?
解决方案:
root@ony-an:/opt/devstack# ps aux | grep apt
root 14562 0.0 0.0 10460 936 pts/4 R+ 07:12 0:00 grep --color=auto apt
[14]+ Killed apt-get upgrade
root@ony-an:/opt/devstack# kill -9 14562
-bash: kill: (14562) - No such process
root@ony-an:/opt/devstack# sudo rm /var/lib/apt/lists/lock
root@ony-an:/opt/devstack# sudo rm /var/cache/apt/archives/lock
root@ony-an:/opt/devstack# sudo $proxies apt-get update
Ign http://archive.ubuntu.com trusty InRelease
Hit http://archive.ubuntu.com trusty-updates InRelease
Hit http://archive.ubuntu.com trusty Release.gpg
Hit http://archive.ubuntu.com trusty-updates/main Sources
Hit http://archive.ubuntu.com trusty-updates/universe Sources
Hit http://archive.ubuntu.com trusty-updates/main amd64 Packages
Hit http://archive.ubuntu.com trusty-updates/universe amd64 Packages
Hit http://security.ubuntu.com trusty-security InRelease
Hit http://security.ubuntu.com trusty-security/main Sources
Hit http://archive.ubuntu.com trusty-updates/main Translation-en
Hit http://security.ubuntu.com trusty-security/universe Sources
Hit http://security.ubuntu.com trusty-security/main amd64 Packages
Hit http://archive.ubuntu.com trusty-updates/universe Translation-en
Hit http://security.ubuntu.com trusty-security/universe amd64 Packages
Hit http://security.ubuntu.com trusty-security/main Translation-en
Hit http://archive.ubuntu.com trusty Release
Hit http://security.ubuntu.com trusty-security/universe Translation-en
Hit http://archive.ubuntu.com trusty/main Sources
Hit http://archive.ubuntu.com trusty/universe Sources
Hit http://archive.ubuntu.com trusty/main amd64 Packages
Hit http://archive.ubuntu.com trusty/universe amd64 Packages
Hit http://archive.ubuntu.com trusty/main Translation-en
Hit http://archive.ubuntu.com trusty/universe Translation-en
Ign http://archive.ubuntu.com trusty/main Translation-en_US
Ign http://archive.ubuntu.com trusty/universe Translation-en_US
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?
解决方案:
root@ony-an:/opt/devstack# ps aux | grep apt
root 14562 0.0 0.0 10460 936 pts/4 R+ 07:12 0:00 grep --color=auto apt
[14]+ Killed apt-get upgrade
root@ony-an:/opt/devstack# kill -9 14562
-bash: kill: (14562) - No such process
root@ony-an:/opt/devstack# sudo rm /var/lib/apt/lists/lock
root@ony-an:/opt/devstack# sudo rm /var/cache/apt/archives/lock
相关文章推荐
- android 各国语言对应的缩写
- 线程任务超时结束方法
- 新建Activity后R文件消失,无法编译,错误大全
- Android Fragment 你应该知道的一切
- 8.驱动与硬件通信
- [DevExpress]设置列的时间格式
- Nginx安装与使用
- JAVA AOP--源自技术
- Caffe学习系列(11):图像数据转换成db(leveldb/lmdb)文件
- ibatis 中 $与#的区别
- java 里面for (String str : s){}怎么理解
- 1109. Group Photo (25) 排序、模拟
- 服务器日志的目录
- Java中ArrayList和LinkedList区别
- 结对编程项目——四则运算vs版
- Java的MyBatis框架中对数据库进行动态SQL查询的教程
- 四元树
- Navicat连接Oracle
- 网站建设(附加1)——域名的(DNS)解析设置
- Knight Moves