ubuntu在更新軟件時出現E: Release file for http://security.ubuntu.com/ubuntu/dists/bionic-security/InRelease 錯誤
- 網上解決方法一:修改系統時間
修改時區
timedatectl set-timezone Asia/Shanghai
查看當前時間
date -R
date -s “2023-12-5 15:57:15”
查看當前時間,是否修改成功,不成功需要重啟一下sudo reboot,如果黑屏,則重啟電腦。
修改時間為24小時制
vim /etc/default/locale
新增行 LC_TIME=en_DK.UTF-8
date -R
- 網上解決方法二:執行下面的命令,忽略日期檢查。
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.