69
57

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 5 years have passed since last update.

apt-getでエラーが出た場合の対処法:E: Could not get lock /var/lib/dpkg/lock - open (11: Resource temporarily unavailable)

Posted at

##目標

  • エラーが出てapt-getが操作できない問題を解決

##環境

  • Ubuntu 14.04.5 LTS

##問題
端末操作を誤って、apt-getプロセスを殺してしまいその後操作してもエラーとなってしまう

$ sudo apt-get install python-numpy
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?

##対処法
同じ現象の質問と対処方法の回答が載っているページを見つけたので実施したら解決した
E: Could not get lock /var/lib/dpkg/lock - open (11: Resource temporarily unavailable) [duplicate]

sudo rm /var/lib/apt/lists/lock
sudo rm /var/cache/apt/archives/lock
69
57
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
69
57

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?