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?ubuntu
1.進程佔用 使用 spa
ps -A | grep apt sudo kill -9 進程號 能夠解決
2. 意外關機,文件被鎖定 ubuntu出現多,此時
$ sudo rm /var/lib/dpkg/lock
刪除被鎖定文件夾就能夠code