您的位置:首页 > 其它

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
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: