• 首页 首页 icon
  • 工具库 工具库 icon
    • IP查询 IP查询 icon
  • 内容库 内容库 icon
    • 快讯库 快讯库 icon
    • 精品库 精品库 icon
    • 问答库 问答库 icon
  • 更多 更多 icon
    • 服务条款 服务条款 icon

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

武飞扬头像
师玉幺叔
帮助1

问题

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

这篇好文章是转载于:学新通技术网

  • 版权申明: 本站部分内容来自互联网,仅供学习及演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,请提供相关证据及您的身份证明,我们将在收到邮件后48小时内删除。
  • 本站站名: 学新通技术网
  • 本文地址: /boutique/detail/tanhgbjabb
系列文章
更多 icon
同类精品
更多 icon
继续加载