Certificate verification failed: The certificate is NOT trusted for jetson/common r32.7

Trying to apt update on a TX2. I was able to do this last week with no issues, and no changes to apt config since then. Is this a server issue? How can I resolve it? Thanks.

$ sudo apt update
Get:2 https://download.docker.com/linux/ubuntu bionic InRelease [64.4 kB]                                                                                                                                     
Hit:3 http://deb.connecttech.com/apt/tx2 r32.7 InRelease                                                                                                                                                      
Hit:4 http://deb.connecttech.com/apt/tx2 r32.6 InRelease                                                                                                   
Hit:5 http://ports.ubuntu.com/ubuntu-ports bionic InRelease                                                             
Get:6 http://ports.ubuntu.com/ubuntu-ports bionic-updates InRelease [88.7 kB]               
Get:7 http://ports.ubuntu.com/ubuntu-ports bionic-backports InRelease [74.6 kB]                         
Ign:8 https://repo.download.nvidia.com/jetson/common r32.7 InRelease                                                
Err:9 https://repo.download.nvidia.com/jetson/common r32.7 Release                                                  
  Certificate verification failed: The certificate is NOT trusted. The certificate chain uses not yet valid certificate.  Could not handshake: Error in the certificate verification. [IP: 23.214.112.8 443]
Get:10 http://ports.ubuntu.com/ubuntu-ports bionic-security InRelease [88.7 kB]
Reading package lists... Done                                  
E: Release file for https://download.docker.com/linux/ubuntu/dists/bionic/InRelease is not valid yet (invalid for another 272d 20h 13min 21s). Updates for this repository will not be applied.
E: Release file for http://deb.connecttech.com/apt/tx2/dists/r32.7/InRelease is not valid yet (invalid for another 174d 6h 26min 9s). Updates for this repository will not be applied.
E: The repository 'https://repo.download.nvidia.com/jetson/common r32.7 Release' no longer has a Release file.
N: Updating from such a repository can't be done securely, and is therefore disabled by default.
N: See apt-secure(8) manpage for repository creation and user configuration details.
E: Release file for http://ports.ubuntu.com/ubuntu-ports/dists/bionic-updates/InRelease is not valid yet (invalid for another 283d 9h 25min 0s). Updates for this repository will not be applied.
E: Release file for http://ports.ubuntu.com/ubuntu-ports/dists/bionic-backports/InRelease is not valid yet (invalid for another 283d 9h 26min 34s). Updates for this repository will not be applied.
E: Release file for http://ports.ubuntu.com/ubuntu-ports/dists/bionic-security/InRelease is not valid yet (invalid for another 283d 9h 23min 35s). Updates for this repository will not be applied.
$ cat /etc/apt/sources.list.d/nvidia-l4t-apt-source.list 
# SPDX-FileCopyrightText: Copyright (c) 2019-2021 NVIDIA CORPORATION & AFFILIATES. All rights reserved.
# SPDX-License-Identifier: LicenseRef-NvidiaProprietary
# 
# NVIDIA CORPORATION, its affiliates and licensors retain all intellectual
# property and proprietary rights in and to this material, related
# documentation and any modifications thereto. Any use, reproduction,
# disclosure or distribution of this material and related documentation
# without an express license agreement from NVIDIA CORPORATION or
# its affiliates is strictly prohibited.

deb https://repo.download.nvidia.com/jetson/common r32.7 main
# deb https://repo.download.nvidia.com/jetson/t186 r32.7 main

I found the issue. The RTC was not working so the system clock was off by about 10 months. After fixing the system clock, I’m able to run apt update like normal.

Glad to know issue fixed.