Ubuntu 16.04 LTS 常见问题 - Resource temporarily unavailable

Ubuntu 16.04 LTS 常见问题 - Resource temporarily unavailable

1. 问题描述

foreverstrong@ubuntu:~$ sudo apt-getinstall libatlas-base-dev
[sudo] password for foreverstrong:
E: Could not get lock /var/lib/dpkg/lock -open (11: Resource temporarily unavailable)
E: Unable to lock the administrationdirectory (/var/lib/dpkg/), is another process using it?
foreverstrong@ubuntu:~$

出现这个问题可能是有另外一个程序正在运行,导致资源被锁不可用。而导致资源被锁的原因可能是上次运行安装或更新时没有正常完成,进而出现此状况。

2. 解决方案

foreverstrong@ubuntu:~$ sudo rm /var/cache/apt/archives/lock
[sudo] password for foreverstrong:
foreverstrong@ubuntu:~$ sudo rm/var/lib/dpkg/lock

 

你可能感兴趣的:(Ubuntu,Desktop,Server,LTS)