成人免费xxxxx在线视频软件_久久精品久久久_亚洲国产精品久久久_天天色天天色_亚洲人成一区_欧美一级欧美三级在线观看

如何修復(fù)Ubuntu Linux中的 “Release file is not valid yet” 錯(cuò)誤

系統(tǒng) Linux
我最近在我的樹(shù)莓派上安裝了 Ubuntu 服務(wù)器。我在 Ubuntu 終端連接上了 Wi-Fi,然后做了我在安裝任何 Linux 系統(tǒng)后都會(huì)做的事情,那就是更新系統(tǒng)。當(dāng)我使用 sudo apt update 命令時(shí),它給了一個(gè)對(duì)我而言特別的錯(cuò)誤。

我最近在我的樹(shù)莓派上安裝了 Ubuntu 服務(wù)器。我在 Ubuntu 終端連接上了 Wi-Fi,然后做了我在安裝任何 Linux 系統(tǒng)后都會(huì)做的事情,那就是更新系統(tǒng)。

當(dāng)我使用 sudo apt update 命令時(shí),它給了一個(gè)對(duì)我而言特別的錯(cuò)誤。它報(bào)出倉(cāng)庫(kù)的發(fā)布文件在某個(gè)時(shí)間段內(nèi)無(wú)效。

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.**

下面是完整輸出:

  1. ubuntu@ubuntu:~$ sudo apt update
  2. Hit:1 http://ports.ubuntu.com/ubuntu-ports focal InRelease
  3. Get:2 http://ports.ubuntu.com/ubuntu-ports focal-updates InRelease [111 kB]
  4. Get:3 http://ports.ubuntu.com/ubuntu-ports focal-backports InRelease [98.3 kB]
  5. Get:4 http://ports.ubuntu.com/ubuntu-ports focal-security InRelease [107 kB]
  6. Reading package lists... Done
  7. E: 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.
  8. 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.
  9. 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.
  10. 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.
  11.  

修復(fù) Ubuntu 和其他 Linux 發(fā)行版中 “Release file is not valid yet” 的錯(cuò)誤。

錯(cuò)誤的原因是系統(tǒng)上的時(shí)間和現(xiàn)實(shí)世界的時(shí)間不同。

你看,每個(gè)倉(cāng)庫(kù)文件都是在某個(gè)日期簽名的,你可以通過(guò)查看發(fā)布文件信息了解:

  1. sudo head /var/lib/apt/lists/ports.ubuntu.com_ubuntu_dists_focal_InRelease
  2. -----BEGIN PGP SIGNED MESSAGE-----
  3. Hash: SHA512
  4.  
  5. Origin: Ubuntu
  6. Label: Ubuntu
  7. Suite: focal
  8. Version: 20.04
  9. Codename: focal
  10. Date: Thu, 23 Apr 2020 17:33:17 UTC
  11. Architectures: amd64 arm64 armhf i386 ppc64el riscv64 s390x

現(xiàn)在,由于某些原因,我的 Ubuntu 服務(wù)器上的時(shí)間是過(guò)去時(shí)間,這也是為什么 Ubuntu 報(bào)出發(fā)布文件已經(jīng)無(wú)效 X 天的原因。

如果你連接到了互聯(lián)網(wǎng),你可以等待幾分鐘讓系統(tǒng)同步時(shí)間

如果不行,你可以強(qiáng)制系統(tǒng)使用本地時(shí)間作為實(shí)時(shí)時(shí)鐘(硬件時(shí)鐘):

  1. sudo timedatectl set-local-rtc 1

timedatectl 命令可以讓你在 Linux 上配置時(shí)間、日期和更改時(shí)區(qū)

你應(yīng)該不需要重新啟動(dòng)。它可以立即工作,你可以通過(guò)更新你的 Ubuntu 系統(tǒng)再次驗(yàn)證它。

如果問(wèn)題解決了,你可以將實(shí)時(shí)時(shí)鐘設(shè)置為使用 UTC(Ubuntu 推薦的)。

  1. sudo timedatectl set-local-rtc 0

是否為你解決了這個(gè)問(wèn)題?

我希望這個(gè)提示能幫助你解決這個(gè)錯(cuò)誤。如果你仍然遇到這個(gè)問(wèn)題,請(qǐng)?jiān)谠u(píng)論欄告訴我,我會(huì)盡力幫助你。 

 

責(zé)任編輯:龐桂玉 來(lái)源: Linux中國(guó)
相關(guān)推薦

2020-05-13 18:34:33

UbuntuLinux

2022-07-31 21:30:15

Ubuntu

2015-07-28 14:45:31

ubuntu修復(fù)系統(tǒng)程序

2022-08-08 16:21:54

Ubuntu

2018-03-05 19:20:49

LinuxWordPressHTTP

2023-11-27 09:40:58

Arch Linux

2022-07-11 12:23:50

UbuntuLinux

2019-03-04 14:40:46

Linux文件系統(tǒng)修復(fù)

2018-08-30 10:28:05

修復(fù)Windows 10IntcOED

2015-09-16 16:16:47

可引導(dǎo)設(shè)備UbuntuLinux

2019-08-22 11:31:30

UbuntuLinux

2022-01-20 08:04:41

FSCKLinux磁盤(pán)

2023-10-10 09:27:17

Arch Linux命令

2022-08-14 19:27:16

LinuxmacOS

2023-06-05 09:56:41

Arch Linux命令

2015-08-17 14:56:43

Linux問(wèn)題

2018-09-28 09:53:27

2018-11-12 11:10:47

修復(fù)windows 10SYNTP.SYS

2024-10-16 08:23:15

大型語(yǔ)言模型LLM機(jī)器學(xué)習(xí)

2019-12-24 10:05:51

修復(fù)Windows 10Netwtw04.sy
點(diǎn)贊
收藏

51CTO技術(shù)棧公眾號(hào)

主站蜘蛛池模板: 日韩欧美二区 | 日韩成人av在线 | www.av7788.com | 一级二级三级黄色 | 91精品国产综合久久久久久丝袜 | www.狠狠干 | 一区二区日本 | 精品国产青草久久久久96 | 啪一啪在线视频 | 午夜精品一区二区三区在线视 | 天堂中文资源在线 | 成人av在线大片 | 国产精品久久久久久久久 | 亚洲精品视频免费观看 | 欧美中文一区 | 亚洲激情自拍偷拍 | 欧美成人a | 中文字幕在线播放第一页 | 亚洲激情网站 | 一区二区不卡视频 | 成人看片在线观看 | 免费久久视频 | 久久久久久久一区 | 中文在线а√在线8 | 国产精品久久久久久久久久免费看 | 精品在线观看入口 | 在线黄av | 成人av免费网站 | 国产乱码精品一区二区三区中文 | 欧美精品首页 | 日韩精品视频一区二区三区 | 欧美三级电影在线播放 | 中文字幕人成乱码在线观看 | 日本一区精品 | 日韩一区和二区 | 亚洲精品乱码久久久久久蜜桃91 | 亚洲视频在线播放 | 免费黄色大片 | 一二三四av| 欧美日韩亚洲一区 | 国产精品99视频 |