http://www.linuxidc.com/Linux/2009-09/21798.htm
sudo rm -rf /var/lib/dpkg/lock
sudo rm -rf /var/cache/apt/archives/lock
sudo apt-get update
最后运行:sudo dpkg --configure -a 重新配置(系统会提醒)