Ubuntu apt-get提示被锁住

执行 apt-get 时提示资源被锁住

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

 

posted @ 2019-01-11 15:30  小浪渔  阅读(675)  评论(0编辑  收藏  举报