问题描述
ciao@ciao:~$ sudo apt install liburdfdom-tools
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?
出现这个问题可能是另外一个安装程序在运行,导致进程资源被锁,导致无法安装
解决办法
1杀死后台占用进程
查看占用进程
ps -e | grep apt
杀死进程
sudo kill 11582 # kill后边跟对应进程ID
2强制解锁进程资源
sudo rm /var/lib/dpkg/lock-frontend
sudo rm /var/lib/dpkg/lock