ubuntu在更新软件时出现E: Release file for http://security.ubuntu.com/ubuntu/dists/bionic-security/InRelease

问题

E: Release file for http://security.ubuntu.com/ubuntu/dists/bionic-security/InRelease is not valid yet (invalid for another 11d 10min 50s). Updates for this repository will not be applied

1.遇到这个问题主要是时间没有更新导致的,首先我们要查看当前时区

root@bf8fc620bea2:/# date -R
Thu, 10 Mar 2022 02:38:36 +0800
// 很显然这不是东八区的时间,下面我们就需要修改时区

2.使用tzselect命令修改时区在这里插入图片描述

在这里插入图片描述
在这里插入图片描述
在这里插入图片描述

3.查看是不是更改为东八区

[root@localhost bin]# date -R
Thu, 10 Mar 2022 11:25:57 +0800

4.设置系统时间为此刻的北京时间

// 设置时间为此刻北京时间
[root@localhost bin]# date -s "2022-03-10 11:29:46" 
2022年 03月 10日 星期四 11:29:46 CST
// 查看时间
[root@localhost bin]# date
2022年 03月 10日 星期四 11:29:50 CST

5.再次执行apt-get update命令就可以成功了

root@bf8fc620bea2:/# apt-get update
Hit:1 http://deb.debian.org/debian bullseye InRelease                             
Hit:2 http://deb.debian.org/debian bullseye-updates InRelease                     
Hit:3 http://security.debian.org/debian-security bullseye-security InRelease
Reading package lists... Done

  • 12
    点赞
  • 19
    收藏
    觉得还不错? 一键收藏
  • 5
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论 5
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值