使用如下命令出现错误
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