apt-get install 错误解决

E: Could not get lock /var/lib/dpkg/lock - open (11: Resource  XXX 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 install 错误解决)