在Ubuntu系统上设置vim是碰见的难题:

Linux常见错误之Could not get lock /var/lib/dpkg/lock,lockdpkg

在Ubuntu系统上设置vim是遇上的难题:

[email protected]:/# vim
The program 'vim' can be found in the following packages:
 * vim
 * vim-gnome
 * vim-tiny
 * vim-athena
 * vim-athena-py2
 * vim-gnome-py2
 * vim-gtk
 * vim-gtk-py2
 * vim-gtk3
 * vim-gtk3-py2
 * vim-nox
 * vim-nox-py2
Try: apt install <selected package>
root@ubuntu:/# apt 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?
root@ubuntu:/# 

并发那一个题材也许是有其余3个程序正在运行,导致能源被锁不可用。而招致能源被锁的由来想必是上次运转安装或更新时没有正规完成,进而出现此场景,化解的方法其实极粗略:

Linux常见错误之Could。在终点输入以下两句发号施令:

[email protected]:/# sudo rm /var/cache/apt/archives/lock
[email protected]:/# sudo rm /var/lib/dpkg/lock

实践之后即可重新安装vim文本编辑器了。

 

not get lock
/var/lib/dpkg/lock,lockdpkg 在Ubuntu系统上安装vim是遇到的难点:
[email protected]:/
# vim The program ‘vim’ can be found in the foll…

在Ubuntu系统上设置vim是遇上的标题:

用apt-get命令安装一些软件包时,总报错:E:could not get lock
/var/lib/dpkg/lock -open等

root@ubuntu:/# vim
The program 'vim' can be found in the following packages:
 * vim
 * vim-gnome
 * vim-tiny
 * vim-athena
 * vim-athena-py2
 * vim-gnome-py2
 * vim-gtk
 * vim-gtk-py2
 * vim-gtk3
 * vim-gtk3-py2
 * vim-nox
 * vim-nox-py2
Try: apt install <selected package>
root@ubuntu:/# apt 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?
root@ubuntu:/# 
root@ubuntu:/# vim
The program 'vim' can be found in the following packages:
 * vim
 * vim-gnome
 * vim-tiny
 * vim-athena
 * vim-athena-py2
 * vim-gnome-py2
 * vim-gtk
 * vim-gtk-py2
 * vim-gtk3
 * vim-gtk3-py2
 * vim-nox
 * vim-nox-py2
Try: apt install <selected package>
root@ubuntu:/# apt 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?
root@ubuntu:/# 

现身那个题材的由来恐怕是有此外一个程序正在运行,导致财富被锁不可用。而招致财富被锁的案由,可能是上次安装时没正常完毕,而造成出现此场景。

澳门金沙国际,出现那么些题材可能是有此外四个顺序正在运转,导致能源被锁不可用。而致使能源被锁的来头只怕是上次运作安装或更新时并未日常实现,进而出现此现象,解决的方法其实很粗大略:

并发这几个题目恐怕是有其它四个先后正在周转,导致能源被锁不可用。而造成财富被锁的来由恐怕是上次运转安装或更新时未尝健康完毕,进而出现此情景,化解的不二法门其实非常的粗略:

涸泽而渔办法:输入以下命令,删除相应的路子即可

在极限输入以下两句发号施令:

在终极输入以下两句发号施令:

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

root@ubuntu:/# sudo rm /var/cache/apt/archives/lock
root@ubuntu:/# sudo rm /var/lib/dpkg/lock
root@ubuntu:/# sudo rm /var/cache/apt/archives/lock
root@ubuntu:/# sudo rm /var/lib/dpkg/lock

sudo rm /var/lib/dpkg/lock

实施之后即可重新安装vim文本编辑器了。

推行之后即可重新安装vim文本编辑器了。

自此再设置想装的包,即可化解。

 

 

相关文章