在使用 apt-get install 或者 apt install 的时候,可能会报如下错误
E: Could not get lock /var/lib/dpkg/lock - open (11: Resource temporarily unavailable)
E: Unable to lock the administration directory (/var/lib/dpkg/), is another process using it?
此时是 dpkg 文件夹配置有问题,解锁即可
输入 sudo dpkg –configure -a 回车即可