1. 問題詳細提示如下:
E: Could not get lock /var/lib/dpkg/lock-frontend - open (11: Resource temporarly unavailable)
E: Unable to acquire the dpkg frontend lock (/var/lib/dpkg/lock-frontend), is an other process using it?
2. 如何解決這種問題呢?
2.1 首先查看是否有apt-get這個程序在運行
ps aux|grep apt-get
2.2 如果發現存在這樣的程序在運行那么就kill掉,否則執行2.3
2.3 直接刪除鎖文件
sudo rm /var/lib/dpkg/lock-frontend
sudo rm /var/lib/dpkg/lock