ubuntu使用时发现
每次update都出现问题

E: Release file for http://ports.ubuntu.com/dists/bionic-backports/InRelease is not valid yet (invalid for another 14d 17h 36min 13s). Updates for this repository will not be applied.
E: Release file for http://ports.ubuntu.com/dists/bionic-proposed/InRelease is not valid yet (invalid for another 14d 17h 35min 56s). Updates for this repository will not be applied.
E: Release file for http://ports.ubuntu.com/dists/bionic-security/InRelease is not valid yet (invalid for another 14d 17h 34min 25s). Updates for this repository will not be applied.
E: Release file for http://ports.ubuntu.com/dists/bionic-updates/InRelease is not valid yet (invalid for another 14d 17h 50min 23s). Updates for this repository will not be applied.

其实是时间设置不同步导致:
需要从新设置时间

  • 输入以下
root@ubuntu:/# tzselect
  • 后选择亚洲-中国-北京(输入前面的标号后回车即可)
  • 复制文件到/etc目录下
root@ubuntu:/# cp /usr/share/zoneinfo/Asia/Shanghai  /etc/localtime
  • 再次查看时间date -R,已经修改为北京时间
  • 修改时间
sudo date -s MM/DD/YY //修改日期
sudo date -s hh:mm:ss //修改时间
  • 在修改时间以后,修改硬件CMOS的时间
  • 非常重要,如果没有这一步的话,后面时间还是不准
sudo hwclock --systohc

以上结束。

参考网址:https://blog.csdn.net/zhengchaooo/article/details/79500032

【Linux】E: Release file for http://ports.ubuntu.comxxxxxxxxxxxxxInRelease is not valid关于时间设置的问题解决相关推荐

  1. linux no root file or directory,安装Ubuntu时出现“no root file system is defined”的问题解决...

    到网络中心后看见j在用Ubuntu,我在他座位后停留了片刻,看看Ubuntu的功能(虽然早就知道Ubuntu在Linux中是挺好用的一款系统,但 到网络中心后看见j在用Ubuntu,我在他座位后停留了 ...

  2. linux redis release.c:37:10: fatal error: release.h: No such file or directory

    ​​​​​​(1条消息) redis源码安装出现fatal error: jemalloc/jemalloc.h: No such file or directory_feinifi的博客-CSDN博 ...

  3. Ubuntu报错:E: The repository http://ppa.launchpad.net/fcitx-team does not have a Release file.

    报错: E: The repository 'http://ppa.launchpad.net/fcitx-team/nightly/ubuntu bionic Release' does not h ...

  4. E: The repository ‘http://extras.ubuntu.com/ubuntu xenial Release‘ does not have a Release file.

    UBUNTU更换镜像源后 执行 sudo apt-get update 报错如下: Get:86 http://archive.ubuntu.com/ubuntu bionic-backports/u ...

  5. 17 Flask mega-tutorial 第17章 在Linux上部署(腾讯云 Ubuntu)【极其详细的部署过程】

    如需转载请注明出处. win10 64位.Python 3.6.3.Notepad++.Chrome 67.0.3396.99(正式版本)(64 位) 注:作者编写时间2018-03-28,linux ...

  6. 安卓4安装Linux,如何在 Android 手机上安装 Ubuntu 13.04

    在农村,一切都是相对的. 长话短说,我已经厌倦了我们在农村做的一个小小的突破. 我本该去放松,读了一大堆东西涉及到自然语言的处理.但是因为我这些天一直在修改LXC和chroot的时候,我决定将我的An ...

  7. Oracle Linux Server release 6.3 下安装JDK

    1.操作系统环境 Last login: Fri Feb 21 18:47:52 2014 from 192.168.56.1 [root@datacenter ~]# uname -a Linux ...

  8. mqtt linux 编译,MQTT客户端代码X64位Ubuntu环境编译+测试实践小结

    https://cloud.baidu.com/doc/IOT/IoTdownload.html#.E4.B8.8B.E8.BD.BDMQTT.E7.9B.B8.E5.85.B3 下载MQTT相关: ...

  9. linux清理磁盘空间的脚本,在Ubuntu和Linux Mint上释放空间的7种简单方法

    Linux系统空间不足?您可以通过以下几种方式清理系统,释放Ubuntu和其他基于Ubuntu的Linux发行版上的空间. 随着时间的流逝,随着添加和删除程序,任何操作系统都可能变得混乱.如果您拥有T ...

最新文章

  1. ASP.Net网站文件类型大全
  2. java定义一个指针类型变量赋值吗,C++中指针的数据类型和运算相关知识小结
  3. 为最快动脉线诊断 铁科院联合第四范式完成高铁智能化巡检应用
  4. notepad比对文本_仵航说 notepad++怎么对比文件 仵老大
  5. HTTP1.0、HTTP1.1 、SPDY、HTTP2.0之演变过程和优化
  6. nodejs python jedi_Jenkins管道:选择nodejs版本(+ python版本)
  7. 自动爬取中国大学mooc的pdf文档
  8. 全国计算机二级ms office知识点,2017全国计算机二级MSOffice复习知识点
  9. TCP/IP参考模型与5层参考模型
  10. 力扣每日一刷-144,二叉树前序遍历-递归解法
  11. mysql常用字符串操作函数大全,以及实例
  12. Ajax的工具类AjaxUtils,使用struts返回Json类型
  13. C语言(从入门到精通)
  14. APPCON低成本Si4438 470M电表无线抄表模块
  15. WPS或Excel将姓名变为拼音
  16. iso 绝对pe_通用PE工具箱 V5.0(WIN7PE内核)U盘ISO硬盘完美三合一版
  17. 热那亚中文离线地图App上线
  18. 如何获取本地时间信息,并把getDay()函数获取到的日期改为日一二三四五六
  19. HTML5期末考核大作业:基于Html+Css+javascript的网页制作(化妆品公司网站制作)
  20. RFID人员定位设备具体配置

热门文章

  1. 天将降大任于斯人,必先...
  2. vue当中addRoutes动态添加路由白屏解决和next(),next(“/“)的一些区别
  3. 手机壁纸设置以及图片下载保存到本地
  4. 洛谷 P1823 [COI2007] Patrik 音乐会的等待
  5. 医美主流新双美模式,开启医美行业新未来
  6. 联通“格物”,做好设备管理这篇大文章
  7. es - elasticsearch - aggs - metrics - rate
  8. 教育期刊《中学历史教学参考》杂志简介及投稿须知
  9. 华为p20如何连接计算机,华为P20pro如何快捷传文件到电脑?华为P20pro快捷传文件到电脑的方法...
  10. C语言switch为什么不执行,求解,为什么switch中的语句不执行?