ubuntu 安装net-tools

ubuntu下使用apt-get,得到下面error:

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?
解决:

1.delete the lock file

sudo rm /var/lib/apt/lists/lock
2.delete the lock file in the cache directory

sudo rm /var/cache/apt/archives/lock
sudo rm /var/lib/dpkg/lock

Thanks!
————————————————
版权声明:本文为CSDN博主「VampireHunter丶」的原创文章,遵循CC 4.0 by-sa版权协议,转载请附上原文出处链接及本声明。
原文链接:https://blog.csdn.net/always_and_forever_/article/details/81001260

posted @ 2019-08-25 19:30  f菲菲f258  阅读(10953)  评论(0编辑  收藏  举报