E: Could not open lock file /var/lib/apt/lists/lock - open (2: No such file or directory)
E: Unable to lock the list directory
答案1
那是因为 ubuntu 已经在你不知情的情况下执行更新/升级任务,即定期检查更新。如果你想立即访问,请运行:sudo rm /var/lib/apt/lists/lock
E: Could not open lock file /var/lib/apt/lists/lock - open (2: No such file or directory)
E: Unable to lock the list directory
那是因为 ubuntu 已经在你不知情的情况下执行更新/升级任务,即定期检查更新。如果你想立即访问,请运行:sudo rm /var/lib/apt/lists/lock