如果确定没有其他apt进程在运行,可以尝试删除锁文件: sudo rm /var/lib/apt/lists/lock sudo rm /var/cache/apt/archives/lock sudo rm /var/lib/dpkg/lock* 删除锁文件后,重新执行apt命令。 强制回收包管理系统 如果上述方法无效,可以尝试强制回收包管理系统: sudo dpkg --configure -a 这个命令会尝试修复中...
找到最后一列以apt-get 开头的进程 #:sudo kill -9 该进程的PID 解决方法二: #:sudo rm /var/cache/apt/archives/lock #:sudo rm /var/lib/dpkg/lock
1,sudo dpkg --configure -a 2,sudo apt-get update 二 Could not open lock file /var/lib/dpkg/lock - open (13:Permission denied) Unable to lock the administration directory (/var/lib/dpkg/),are you root? 解决方案: sudo rm -rf /var/lib/dpkg/lock sudo rm -rf /var/cache/apt/archive...
1 运行apt-get update时出现Couldnotgetlock /var/lib/apt/lists/lock -open(11:Resource temporarily unavailable)的错误 2 使用 rm /var/lib/apt/lists/lock删除lock 3 先使用ps -e | grep apt查看apt进程情况 4 然后使用kill -9pid来结束apt的进程 5 再使用apt-get update更新 6 然后,就等待更新完成 ...
E: Could not get lock /var/lib/dpkg/lock-frontend - open (11: Resource temporarily unavailable) E: Unable to acquire the dpkg frontend lock (/var/lib/dpkg/lock-frontend), is another process using it? 2.解决办法 执行以下命令 sudo rm -rf /var/lib/dpkg/lock...
E: Could not get lock /var/cache/apt/archives/lock - open (11: Resource temporarily unavailable) E: Unable to lock directory /var/cache/apt/archives/ 解决方案 这个报错的原因是,因为有另外一个进程在使用这个目录:/var/cache/apt/archives/,所以先确定是否还有其他人在使用软件管理程序或者在使用apt进...
Debian执行apt命令提示could not get lock错误解决方法 1.报错信息 E: Could not get lock /var/lib/dpkg/lock-frontend - open (11: Resource temporarily unavailable) E: Unable to acquire the dpkg frontend lock (/var/lib/dpkg/lock-frontend), is another process using it?
Debian执行apt命令提示could not get lock错误解决方法 1.报错信息 E: Could not get lock /var/lib/dpkg/lock-frontend - open (11: Resource temporarily unavailable) E: Unable to acquire the dpkg frontend lock (/var/lib/dpkg/lock-frontend), is another process using it?
E: Could not get lock /var/lib/apt/lists/lock - open (11: Resource temporarily unavailable) E: Unable to lock directory /var/lib/apt/lists/ 原因: 资源锁被别的进程占用 解决办法: 方法一:kill掉占用资源的进程(推荐使用) 查看哪些进程在占用资源 ...
apt-get clean apt-get clean命令清除遗留在/var/cache中的已取回的包文件的本地仓库。它清除的目录是/var/cache/apt/archives/和/var/cache/apt/archives/partial/。它留在/var/cache/apt/archives中的唯一文件是lock文件和partial子目录。 在运行清理操作之前,目录中可能包含许多文件: ...