"Repository is not valid yet"问题解决方案

root@h3c-i-43:~# apt update
Get:1 http://10.1.89.230:89/ubuntu bionic InRelease [242 kB]
Get:2 http://10.1.89.230:89/ubuntu bionic-updates InRelease [88.7 kB]
Get:3 http://10.1.89.230:89/ubuntu bionic-backports InRelease [74.6 kB]
Get:4 http://10.1.89.230:89/ubuntu bionic-security InRelease [88.7 kB]
Reading package lists... Done
E: Release file for http://10.1.89.230:89/ubuntu/dists/bionic/InRelease is not valid yet (invalid for another 88d 6h 14min 45s). Updates for this repository will not be applied.
E: Release file for http://10.1.89.230:89/ubuntu/dists/bionic-updates/InRelease is not valid yet (invalid for another 1169d 19h 55min 46s). Updates for this repository will not be applied.
E: Release file for http://10.1.89.230:89/ubuntu/dists/bionic-backports/InRelease is not valid yet (invalid for another 1169d 19h 56min 56s). Updates for this repository will not be applied.
E: Release file for http://10.1.89.230:89/ubuntu/dists/bionic-security/InRelease is not valid yet (invalid for another 1169d 19h 54min 52s). Updates for this repository will not be applied.

该问题主要由于系统时间偏差太大导致,只要设置好正确的时间就能修复此问题.

root@h3c-i-37:~# head /var/lib/apt/lists/10.1.89.230\:89_ubuntu_dists_bionic-backports_InRelease 
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA512

Origin: Ubuntu
Label: Ubuntu
Suite: bionic-backports
Version: 18.04
Codename: bionic
Date: Mon, 12 Apr 2021 13:19:59 UTC
Architectures: amd64 arm64 armhf i386 ppc64el s390x

同步时间 [ntpdate,chrony,date]

  • 临时同步
    date -s "2021-04-13"
# 安装ntpdate
apt update
apt install ntpdate
ntpdate ntp1.aliyun.com
posted @   lvusyy  阅读(484)  评论(0编辑  收藏  举报
编辑推荐:
· 从 HTTP 原因短语缺失研究 HTTP/2 和 HTTP/3 的设计差异
· AI与.NET技术实操系列:向量存储与相似性搜索在 .NET 中的实现
· 基于Microsoft.Extensions.AI核心库实现RAG应用
· Linux系列:如何用heaptrack跟踪.NET程序的非托管内存泄露
· 开发者必知的日志记录最佳实践
阅读排行:
· winform 绘制太阳,地球,月球 运作规律
· TypeScript + Deepseek 打造卜卦网站:技术与玄学的结合
· Manus的开源复刻OpenManus初探
· 写一个简单的SQL生成工具
· AI 智能体引爆开源社区「GitHub 热点速览」
点击右上角即可分享
微信分享提示