今天更新时候出现了点小问题,一开始更新到一半,我嫌速度慢,就取消掉了。
更新了sources.list之后再执行sudo apt-get update 提示我出错了
E: Could not get lock /var/lib/apt/lists/lock - open (11 Resource temporarily unavailable)
E: Unable to lock the list directory
上网搜了下(http://ubuntuforums.org/showthread.php?t=580428
),问题应该是之前那个更新被强制取消的问题,进程仍然还在。用这个命令查看一下:
ps -e | grep apt
显示结果如下:
6362 ? 00:00:00 apt
6934 ? 00:00:00 apt-get
7368 ? 00:00:00 synaptic
然后就执行
sudo killall apt
sudo killall apt-get
sudo killall synaptic
再次在终端里查看ps -e | grep apt 没有任何结果了
继续执行sudo apt-get update
OK!
分享到:
相关推荐
E: Could not get lock /var/cache/apt/archives/lock - open (11: Resource temporarily unavailable) E: Unable to lock directory /var/cache/apt/archives/ ``` **解决方法:** 1. 关闭所有正在使用APT的程序...
[user@host] $ apt-get updateE: Could not open lock file /var/lib/apt/lists/lock - open (13: Permission denied)E: Unable to lock directory /var/lib/apt/lists/E: Could not open lock file /var/lib/dpkg/...
然而,在使用`apt-get`命令时,有时会遇到错误提示“E: Could not get lock /var/lib/dpkg/lock”,这通常意味着系统中另一个`apt-get`进程正在运行,或者该文件被其他进程占用,导致当前操作无法继续。 这个错误...
更多示例➜ apt-get install vimE: Could not open lock file /var/lib/dpkg/lock - open (13: Permission denied)E: Unable to lock the administration directory (/var/lib/dpkg/), are you root?➜ fucksudo apt...
这个错误是因为apt正被其他进程使用,尝试在终端中使用`sudo fuser -kuv /var/lib/apt/lists/lock`来强制结束占用该文件的进程,然后再执行`sudo apt update`。 - **在执行 sudo apt update 时卡在正在等待报头的...
E: Could not open lock file /var/lib/apt/lists/lock - open (13: Permission denied) E: Unable to lock directory /var/lib/apt/lists/ E: Could not open lock file /var/lib/dpkg/lock - open (13: ...