困扰: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:~$