ubuntu常见错误,无法获取锁

问题:

E:无法赢得锁/var/lib/dpkg/lock – open???消除

ubuntu常见错误–Could not get lock /var/lib/dpkg/lock解决

sudo apt-get install vim

 

 

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?

ERROR:

透过终点安装程序sudo apt-get install xxx时出错:

解决:

 

 

 sudo rm /var/cache/apt/archives/lock

“E: 不能够获得锁 /var/lib/dpkg/lock – open (1壹: 能源暂时不可用) 

E: Could not get lock /var/lib/dpkg/lock – open (11: Resource
temporarily unavailable)

 sudo rm /var/lib/dpkg/lock

 

E: Unable to lock the administration directory (/var/lib/dpkg/), is
another process using it

E: 无法锁定管理目录(/var/lib/dpkg/),是不是有其它进度正攻克它?” 

 

 

并发那么些难题大概是有此外二个程序正在运维,导致能源被锁不可用。而招致能源被锁的原原本本的经过也许是上次运转安装或更新时不曾正规完毕,进而出现此场景,消除的诀窍其实很简短:

化解办法如下: 

 

 

在顶峰中敲入以下两句

  1.   终端输入 ps  -aux ,列出进度。找到含有apt‘-get或许wget的长河, 

 

      直接sudo kill PID。解决。 

必发88官网,sudo rm /var/cache/apt/archives/lock

 

 

  1.   强制解锁,命令 

sudo rm /var/lib/dpkg/lock

 

 

sudo rm /var/cache/apt/archives/lock 

not get lock
/var/lib/dpkg/lock消除 通过终端安装程序sudo apt-get install xxx时出错:
E: Could not get lock /var/lib/dpkg/lock – open (11: Re…

 

sudo rm /var/lib/dpkg/lock

 

– open???化解E奥迪Q7ROCR-V: E: 不能够获取锁 /var/lib/dpkg/lock – open (11: 能源权且不可用) E:
不可能锁定管理目录(/var/lib/dpkg/),是不是…