net-tools installed ubuntu

ubuntu using the apt-get, get the following 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!
----------------
Disclaimer: This article is CSDN blogger "VampireHunter Dian" in the original article, follow the CC 4.0 by-sa copyright agreement, reproduced, please attach the original source and this link statement.
Original link: https: //blog.csdn.net/always_and_forever_/article/details/81001260

Guess you like

Origin www.cnblogs.com/cly0205/p/11408983.html