解决方案:

1
2
3
4
5
sudo rm -rf /var/lib/dpkg/lock    
sudo rm -rf /var/cache/apt/archives/lock
sudo apt-get update
sudo dpkg --configure -a
sudo apt-get upgrade -y