dpkg-lock问题
Could not get lock /var/lib/dpkg/lock - open (11: Resource temporarily unavailable)
E: Unable to lock the administration directory (/var/lib/dpkg/), is another process using it?
解决方法:
其实这是因为有另外一个程序在运行,导致锁不可用。原因可能是上次运行更新或安装没有正常完成。解决办法是杀死此进程
1)sudo rm /var/cache/apt/archives/lock
2)sudo rm /var/lib/dpkg/lock
3)sudo dpkg --configure -a
此时可能会出现dpkg: error: parsing file '/var/lib/dpkg/updates/0013' near line 0:
newline in field name '#padding'情况。
解决方法:sudo rm /var/lib/dpkg/updates/*
4)sudo apt-get update
然后再安装软件,搞定.