问题现象

~# apt update
获取:1 https://mirrors.aliyun.com/debian bullseye InRelease [116 kB]
获取:2 https://mirrors.aliyun.com/debian-security bullseye-security InRelease [27.2 kB]                                  
获取:3 https://mirrors.aliyun.com/debian bullseye-updates InRelease [44.1 kB]                                            
获取:4 https://mirrors.aliyun.com/debian bullseye-backports InRelease [49.0 kB]                                          
正在读取软件包列表... 完成                                                                                               
E: https://mirrors.aliyun.com/debian/dists/bullseye/InRelease 的 Release 文件已经过期(已经过期了 78天 18小时 37分 55秒)。该仓库的更新将不会应用。
E: https://mirrors.aliyun.com/debian-security/dists/bullseye-security/InRelease 的 Release 文件已经过期(已经过期了 103天 1小时 9分 0秒)。该仓库的更新将不会应用。
E: https://mirrors.aliyun.com/debian/dists/bullseye-updates/InRelease 的 Release 文件已经过期(已经过期了 103天 3小时 49分 44秒)。该仓库的更新将不会应用。
E: https://mirrors.aliyun.com/debian/dists/bullseye-backports/InRelease 的 Release 文件已经过期(已经过期了 103天 3小时 49分 44秒)。该仓库的更新将不会应用。

解决

多半因为时间与mirror服务时间不一致导致。配置时间同步或者手动将时间校正到正确日期即可。
1、通过date命令发现确实是时间不正确。
~# date
2024年 06月 14日 星期五 00:24:33 CST

配置时间同步步骤:
1、修改/etc/systemd/timesyncd.conf配置文件
~# vi /etc/systemd/timesyncd.conf
NTP=192.168.XX.XXX
~# systemctl restart systemd-timesyncd
~# date
2024年 09月 25日 星期三 12:32:49 CST

Logo

北京人形旗下天工造物具身智能开源社区,聚焦具身天工与慧思开物两大平台

更多推荐