Ubuntu 18.04 apt-get Install xxx 时出现 (E: Could not get lock /var/lib/dpkg/lock.....)问题解决
在为ubuntu 18.04 安装SSH服务时,
sudo apt-get install openssh-server
遇到了
E: Could not get lock /var/lib/dpkg/lock-frontend - open (11: Resource temporarily unavailable)
E: Unable to acquire the dpkg frontend lock(/var/lib/dpkg/lock-frontend), is another process using it?
的问题。
解决办法:检索一下 apt的进行,并Kill掉。
sudo ps -aux | grep apt
sudo kill -9 12078
重新安装,OK。