ubuntu安装软件提示:Could not get lock /var/lib/dpkg/lock - open (11: Resource temporarily unavailable)(

Posted xtusir

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了ubuntu安装软件提示:Could not get lock /var/lib/dpkg/lock - open (11: Resource temporarily unavailable)(相关的知识,希望对你有一定的参考价值。

question:

 

[email protected]:/usr/src/Linux-headers-3.5.0-23-generic$ sudo apt-get install cheese

[sudo] password for ubuntu: 


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?


how to solve this issue please help.

 

answar:

 

You can delete the lock file with the following command:
sudo rm /var/lib/apt/lists/lock
You may also need to delete the lock file in the cache directory
sudo rm /var/cache/apt/archives/lock











以上是关于ubuntu安装软件提示:Could not get lock /var/lib/dpkg/lock - open (11: Resource temporarily unavailable)(的主要内容,如果未能解决你的问题,请参考以下文章

ubuntu 安装软件时could not get lock 错误解决办法

The application could not be installed: INSTALL_FAILED_INSUFFICIENT_STORAGE

halcon安装提示could not write updated path to HKLM

错误记录Ubuntu 安装软件报错 ( Could not get lock /var/lib/dpkg/lock-frontend - open (11: Resource tempora )

CentOS6.5安装之DNS配置错误,yum install 软件报错:ERROR 6或者56错误提示”could not retrieve mirrorlist http://mirrorli(代

CentOS 使用yum命令安装出现错误提示”could not retrieve mirrorlist http://mirrorlist.centos.org ***”