In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-04-05 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >
Share
Shulou(Shulou.com)06/01 Report--
This article will explain in detail how to fix the "Release file is not valid yet" error in Ubuntu Linux. The editor thinks it is very practical, so I share it with you as a reference. I hope you can get something after reading this article.
I recently installed a Ubuntu server on my raspberry pie. I connected Wi-Fi to the Ubuntu terminal and did what I would do after installing any Linux system, which was to update the system.
When I use the sudo apt update command, it gives me a special error. It reports that the release file of the warehouse is invalid for a certain period of time.
E: Release file for http://ports.ubuntu.com/ubuntu-ports/dists/focal-security/InRelease is not valid yet (invalid for another 159d 15h 20min 52s). Updates for this repository will not be applied.**
Here is the full output:
Ubuntu@ubuntu:~$ sudo apt updateHit:1 http://ports.ubuntu.com/ubuntu-ports focal InRelease Get:2 http://ports.ubuntu.com/ubuntu-ports focal-updates InRelease [111 kB] Get:3 http://ports.ubuntu.com/ubuntu-ports focal-backports InRelease [98.3 kB] Get:4 http://ports.ubuntu.com/ubuntu-ports focal-security InRelease [107 kB] Reading package lists... DoneE: Release file for http://ports.ubuntu.com/ubuntu-ports/dists/focal/InRelease is not valid yet (invalid for another 21d 23h 17min 25s). Updates for this repository will not be applied.E: Release file for http://ports.ubuntu.com/ubuntu-ports/dists/focal-updates/InRelease is not valid yet (invalid for another 159d 15h 21min 2s). Updates for this repository will not be applied.E: Release file for http://ports.ubuntu.com/ubuntu-ports/dists/focal-backports/InRelease is not valid yet (invalid for another 159d 15h 21min 32s). Updates for this repository will not be applied.E: Release file for http://ports.ubuntu.com/ubuntu-ports/dists/focal-security/InRelease is not valid yet (invalid for another 159d 15h 20min 52s). Updates for this repository will not be applied. Fix "Release file is not valid yet" bugs in Ubuntu and other Linux distributions.
The reason for the error is that the time on the system is different from that in the real world.
You see, every warehouse file is signed on a certain date. You can learn about it by looking at the release file information:
Sudo head / var/lib/apt/lists/ports.ubuntu.com_ubuntu_dists_focal_InRelease-BEGIN PGP SIGNED MESSAGE-Hash: SHA512 Origin: UbuntuLabel: UbuntuSuite: focalVersion: 20.04Codename: focalDate: Thu, 23 Apr 2020 17:33:17 UTCArchitectures: amd64 arm64 armhf i386 ppc64el riscv64 s390x
Now, for some reason, the time on my Ubuntu server is in the past, which is why Ubuntu reports that the release file has been invalid for X days.
If you are connected to the Internet, you can wait a few minutes for the system to synchronize time.
If not, you can force the system to use local time as the real-time clock (hardware clock):
Sudo timedatectl set-local-rtc 1
The timedatectl command allows you to configure time, date, and change the time zone on Linux.
You shouldn't need to reboot. It works immediately, and you can verify it again by updating your Ubuntu system.
If the problem is solved, you can set the real-time clock to use UTC (recommended by Ubuntu).
This is the end of the sudo timedatectl set-local-rtc 0 article on "how to fix Release file is not valid yet" errors in Ubuntu Linux. I hope the above content can be of some help to you, so that you can learn more knowledge. if you think the article is good, please share it for more people to see.
Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.
Views: 0
*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.