ubuntu更换源的问题
问题一 更换系统源,执行sudo apt update 提示:
Release file for http://mirrors.aliyun.com/ubuntu/dists/focal-security/InRelease is not valid yet (invalid for another 3h 8min 15s). Updates for this repository will not be applied.
网上说这个问题是系统时间的问题,我尝试着更改了系统时间发现也没有解决(有知道为啥的大佬帮忙说下),我的解决是通过这个命令:
sudo apt-get -o Acquire::Check-Valid-Until=false -o Acquire::Check-Date=false update
See the bug report https://github.com/microsoft/WSL/issues/4114 for more details.