[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

留言

這個網誌中的熱門文章

[TensorFlow, C++, Visual Studio, Windows] TensorFlow C++ 如何編譯與解決BUG (How to build Tensorflow C++ API with Visual Studio and solve BUG)

[Ubuntu, Docker, Docker Swarm] Docker Swarm 建置 Jupyter Notebook 流程

[Docker Swarm] Docker Swarm 指令