? ? 韩国电影免费观看大全第四集,日韩精品,韩国电影免费观看大全第四集

最好看的HD高清电影,最好看免费中文,最好看的MV中文字幕国语电影,最好看免费观看高清电影大全,最好看的2019中文大全在线观看,最好免费观看高清在线

  • 武漢市武昌區南湖花園 瑞安街140號 027-88016877
  • 18627003654
  • love6411692@qq.com

如何修復Ubuntu Linux中的“存儲庫無效”(Repository is not valid yet)錯誤

首頁最新動態

如何修復Ubuntu Linux中的“存儲庫無效”(Repository is not valid yet)錯誤

我最近在Raspberry Pi上安裝了Ubuntu服務器。我從Ubuntu終端將其連接到Wi-Fi,并在安裝任何要更新系統的Linux系統后繼續進行操作。

當我使用“ sudo apt update”命令時,它給了我一個錯誤,這對我來說是唯一的。它抱怨該存儲庫的發行文件在一定時間內無效。

ERROR: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.

這是完整的輸出:

ubuntu@ubuntu:~$ sudo apt update
Hit: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... Done
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.
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.

在Ubuntu和其他Linux發行版中修復“發布文件尚未生效”錯誤

存儲庫無效但錯誤Ubuntu

錯誤的原因是系統時間與實際時間之間的差異。

您會看到,每個存儲庫文件都在某個日期簽名,您可以通過查看發布文件來查看以下信息:

sudo head /var/lib/apt/lists/ports.ubuntu.com_ubuntu_dists_focal_InRelease 
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA512

Origin: Ubuntu
Label: Ubuntu
Suite: focal
Version: 20.04
Codename: focal
Date: Thu, 23 Apr 2020 17:33:17 UTC
Architectures: amd64 arm64 armhf i386 ppc64el riscv64 s390x

現在,由于某些原因,我的Ubuntu服務器上的時間過去了,這就是為什么Ubuntu抱怨發行文件在X天內還無效的原因。

如果您已連接到Internet,則可能需要等待幾分鐘,系統才能同步時間

如果它不起作用,則可以強制系統將本地時間用作實時時鐘(硬件時鐘):

sudo timedatectl set-local-rtc 1

使用timedatectl命令可以在Linux上配置時間,日期和更改時區

您不需要重新啟動。它可以立即工作,您可以通過再次更新Ubuntu系統來進行驗證。

如果問題得以解決,則可以將實時時鐘設置為使用UTC(Ubuntu建議)。

sudo timedatectl set-local-rtc 0

聯系方式 / Contact

  • 武漢新勝電腦
  • 地址:武漢市武昌區南湖花園 瑞安街140號 027-88016877
  • 電話:18627003654
  • 聯系人:彭經理
  • 郵箱:love6411692@qq.com
  • 網址:http://www.acelolboost.com
  •  
  •  
  •  
欢迎光临: 安丘市| 枝江市| 兰州市| 宜良县| 东至县| 武山县| 东兰县| 乌兰察布市| 平顺县| 准格尔旗| 黄平县| 黔南| 当阳市| 绩溪县| 兖州市| 常山县| 平遥县| 霍城县| 新化县| 扬中市| 稻城县| 灵台县| 七台河市| 宜黄县| 喀什市| 东平县| 顺昌县| 芦溪县| 兴山县| 长岭县| 西城区| 巩留县| 乐都县| 全椒县| 平陆县| 岗巴县| 五指山市| 辽阳市| 南城县| 南皮县| 朝阳市|