问题、
sudo apt-get -y install mysql-server mysql-client
报错信息、
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?
解决方案:
方法一、ps -A | grep apt
然后使用kill 杀掉进程kill -9 ID
方法二、
删除锁定的文件
/var/lib/apt/lists/lock
/var/lib/dpkg/lock
/var/cache/apt/archives/lock
网友评论