使用apt-get update
命令后执行apt-get upgrade
报错
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 -ef|grep apt
找到和apt相关进程直接kill
2.删锁
根据报错提示找到对应路径(/var/lib/dpkg/lock-frontend)直接rm
保险起见,查看进程中发现apt有如下进程
root 23463 1 0 06:23 ? 00:00:00 /bin/s