[Ubuntu 16.04] E: Could not get lock /var/lib/dpkg/lock-frontend - open (11: Resource temporarily unavailable)

當ubuntu下指令sudo apt install之時,出現以下錯誤訊息
  • 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?
解決方式如下
  • sudo rm -R /var/lib/apt/lists/lock
  • sudo rm -R/var/lib/dpkg/lock
  • sudo rm -R/var/cache/apt/archives/lock

留言

這個網誌中的熱門文章

[CentOS, OpenCV] CentOS 7 安裝 OpenCV 3.4.5 (CentOS install OpenCV )