WHCSRL 技术网

2021-11-01_tp

#E: could not get lock /var/lib/dpkg/lock-frontend - open (11: Resource temporary unavailable) E: Unable to acquire the dpkg frontend lock (/var/lib/dpkg/lock-frontend), is an other process using it
问题分析:apt-get 命令安装postgresql时报上述错误, 报错信息提示有资源占 用着上述两个文件

问题解决:
1)查询apt-get进程,统统kill
ps aux|grep apt-get
kill -9 进程号
2)删除无用锁文件
sudo rm /var/lib/dpkg/lock-frontend
sudo rm /var/lib/dpkg/lock

推荐阅读