E:Could not open lock file /var/lib/dpkg/lock - open (13:Permission denied)

E:Unable to lock the administration directory (/var/lib/dpkg/),are you root?

解决方案:

sudo rm -rf /var/lib/dpkg/lock

sudo rm -rf /var/cache/apt/archives/lock

sudo apt-get update

最后运行:sudo dpkg --configure -a 重新配置(系统会提醒) 。