刚刚给VPS升级了debian,root登录,期间断开了.再次运行apt-get update时候提示
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?
这个时候需要找出apt-get这个进城并杀死它.
ps -A | grep apt-get
然后
kill -9 xxxx
再次update时候会提示:
E: dpkg was interrupted, you must manually run ‘sudo dpkg –configure -a’ to correct the problem.
那么只要根据提示
dpkg –configure -a
即可