1. apt-get Could not get lock /var/lib/dpkg/lock
E: 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?
解决方法:root下使用如下命令,其他用户请在命令前增加sudo。
rm /var/cache/apt/archives/lock
rm /var/lib/dpkg/lock
2. yum升级一些文件时,有时会出现 another app is currently holding the yum lock;waiting for it to exit...
解决方法:
rm -f /var/run/yum.pid