解决unbunt 19.10系统E: Could not get lock /var/lib/apt/lists/lock.问题

使用如下命令出现错误

sudo apt-get -y update

问题:出现无法对目录 /var/lib/apt/lists/ 加锁问题

正在读取软件包列表… 完成
E: Could not get lock /var/lib/apt/lists/lock. It is held by process 10207 (focal) - open (11: 资源暂时不可用)
N: Be aware that removing the lock file is not a solution and may break your system.
E: 无法对目录 /var/lib/apt/lists/ 加锁

解决办法:
删除用的锁文件即可成功
在这里插入图片描述
再输入,可看到没有上述错误

sudo apt-get -y update

解决unbunt 19.10系统E: Could not get lock /var/lib/apt/lists/lock.问题_第1张图片

你可能感兴趣的:(unbunt)