ubuntu lock?
make: *** [install] Error 1root@miaowo:~/stephen/geetest/Lengyue-Vcode/滑动验证码/Geetest/Python-3.7.0# ^C
root@miaowo:~/stephen/geetest/Lengyue-Vcode/滑动验证码/Geetest/Python-3.7.0# ^C
root@miaowo:~/stephen/geetest/Lengyue-Vcode/滑动验证码/Geetest/Python-3.7.0# agt-get install libffi-devel -y
No command 'agt-get' found, did you mean:
Command 'apt-get' from package 'apt' (main)
agt-get: command not found
root@miaowo:~/stephen/geetest/Lengyue-Vcode/滑动验证码/Geetest/Python-3.7.0# apt-get install libffi-devel -y
E: Could not get lock /var/lib/dpkg/lock-frontend - open (11: Resource temporarily unavailable)
E: Unable to acquire the dpkg frontend lock (/var/lib/dpkg/lock-frontend), is another process using it?
root@miaowo:~/stephen/geetest/Lengyue-Vcode/滑动验证码/Geetest/Python-3.7.0#
报错被其他进程使用,但是我不知道这个进程叫啥名字?
回答:
检查文件的所有者
$ sudo fuser -v /var/lib/dpkg/lock-frontend USER PID ACCESS COMMAND
/var/lib/dpkg/lock-frontend:
root 2112 F.... unattended-upgr
用得到的pid查看进程对应的程序:
$ ps aux | grep 2112root 2112 66.5 8.1 366108 113508 ? Sl 13:03 0:28 /usr/bin/python3 /usr/bin/unattended-upgrade --download-only
查看文件所属安装包:
$ dpkg -S /usr/bin/unattended-upgradeunattended-upgrades: /usr/bin/unattended-upgrade
因此,这个文件被创建/usr/bin/unattended-upgrade的unattended-upgrades包。
可以用以下方法杀死它:
sudo kill -KILL 2112
以上是 ubuntu lock? 的全部内容, 来源链接: utcz.com/p/937632.html