ubuntu server安装jre时,SSH窗口不知道何时关闭了,重新开了一个SSH后,发现 ps -aux | grep apt-get install 那个进程还在,
现在你想执行安装程序
通过终端安装程序sudo apt-get install ***肯定出错:
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? 解决的办法其实很简单: 在终端中敲入以下两句
sudo kill 刚才ps -aux | grep apt-get install 那个进程的pid sudo rm /var/cache/apt/archives/lock sudo rm /var/lib/dpkg/lock 问题解决。 |