ubuntu利用apt-get install命令安装软件时报错:有另外一个进程正在使用(is another process using it)
2017-11-01 09:35
836 查看
利用apt-get install命令安装软件时报错:
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?
解决方案:
出现这个问题可能是有另外一个程序正在运行,导致资源被锁不可用。而导致资源被锁的原因可能是上次运行安装或更新时没有正常完成,进而出现此状况,解决的办法其实很简单:
在终端中执行以下命令即可:
$ sudo rm /var/cache/apt/archives/lock && sudo rm /var/lib/dpkg/lock
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?
解决方案:
出现这个问题可能是有另外一个程序正在运行,导致资源被锁不可用。而导致资源被锁的原因可能是上次运行安装或更新时没有正常完成,进而出现此状况,解决的办法其实很简单:
在终端中执行以下命令即可:
$ sudo rm /var/cache/apt/archives/lock && sudo rm /var/lib/dpkg/lock
相关文章推荐
- ubuntu利用apt-get install命令安装软件时报错:有另外一个进程正在使用(is another process using it)
- ubuntu下软件安装卸载和查看命令的使用(apt命令的解析)
- Linux(Ubuntu)使用 sudo apt-get install 命令安装软件的目录在哪?(已解决)
- Ubuntu终端出现Unable to lock the administration directory (/var/lib/dpkg/), is another process using it?
- Ubuntu 如何使用apt命令安装、升级、卸载软件
- Centos6.5使用yum安装软件的时候 Another app is currently holding the yum lock; waiting for it to exit...
- Ubuntu 16.04 apt终端命令的使用以及软件的安装和卸载
- Ubuntu使用apt-get install 安装软件时报错:could not get lock /var/lib/dpkg/lock -open
- Ubuntu 软件安装、查找、卸载--apt-get、apt-cache命令安全
- Ubuntu中apt-get install无法安装软件10
- ubuntu 12.04 apt-get/wget/gem 使用代理安装软件
- Ubuntu 软件安装、查找、卸载--apt-get、apt-cache命令安全
- ubuntu apt安装软件的命令
- ubuntu 12.04 apt-get/wget/gem 使用代理安装软件
- Ubuntu 软件安装、查找、卸载--apt-get、apt-cache命令安全
- E: Unable to lock the administration directory (/var/lib/dpkg/), is another process using it?
- C#使用Create创建文件后,报The Process cannot access the file because it is being used by another process的异常
- E: Unable to lock the administration directory (/var/lib/dpkg/), is another process using it?
- Ubuntu上使用apt-get安装软件的速度问题
- 系统命令yum使用大全 利用yum安装卸载软件常用命令