ppa安装失败的解决方法

版权声明:微信 kobesdu https://blog.csdn.net/kobesdu/article/details/85927560

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

猜你喜欢

转载自blog.csdn.net/kobesdu/article/details/85927560