apt-get|apt-get install 错误解决

E: Could not get lock /var/lib/dpkg/lock - open (11: ResourceXXX unavailable)
E: Unable to lock the XXX directory (/var/lib/dpkg/), is another process using it?
解决方案:

sudo rm /var/cache/apt/archives/lock
sudo rm /var/lib/dpkg/lock
不行的话再执行:
1.sudo dpkg --configure -a

2.sudo apt-get update





【apt-get|apt-get install 错误解决】

    推荐阅读