红联Linux门户
Linux帮助

sudo apt-get remove vim-common不成功,提示Could not get lock

发布时间:2016-06-21 14:57:43来源:linux网站作者:困扰集

困扰:apt-get卸载不了软件包


现场:

zhangwei@ubuntu:~/HiSTBLinuxV100R003C00SPC060$apt-get remove vim-common

E: Could not open lock file/var/lib/dpkg/lock - open (13: Permission denied)

E: Unable to lock the administrationdirectory (/var/lib/dpkg/), are you root?

zhangwei@ubuntu:~/HiSTBLinuxV100R003C00SPC060$sudo apt-get remove vim-common

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

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

zhangwei@ubuntu:~/HiSTBLinuxV100R003C00SPC060$

zhangwei@ubuntu:~$ apt-get install vim

E: Could not open lock file/var/lib/dpkg/lock - open (13: Permission denied)

E: Unable to lock the administrationdirectory (/var/lib/dpkg/), are you root?

zhangwei@ubuntu:~$


解决:图形安装界面锁上了导致终端下被锁。

关掉语言更新图形界面后再执行可解决。

zhangwei@ubuntu:~$ sudo apt-get removevim-common

[sudo] password for zhangwei:

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

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

zhangwei@ubuntu:~$


本文永久更新地址:http://www.linuxdiyf.com/linux/21715.html