• Certificate verification failed: The certificate is NOT trusted


    1. 问题

      安装软件时,ubuntu 22.04系统提示:Certificate verification failed: The certificate is NOT trusted. The certificate chain uses not yet valid certificate. Could not handshake: Error in the certificate verification.

    After this operation, 19.4 MB of additional disk space will be used.
    Ign:1 https://mirrors.tuna.tsinghua.edu.cn/ubuntu jammy/main amd64 flex amd64 2.6.4-8build2
    Ign:2 https://mirrors.tuna.tsinghua.edu.cn/ubuntu jammy/main amd64 bison amd64 2:3.8.2+dfsg-1build1
    Ign:3 https://mirrors.tuna.tsinghua.edu.cn/ubuntu jammy-updates/main amd64 zlib1g-dev amd64 1:1.2.11.dfsg-2ubuntu9.2
    Ign:4 https://mirrors.tuna.tsinghua.edu.cn/ubuntu jammy/main amd64 libelf-dev amd64 0.186-1build1
    Ign:5 https://mirrors.tuna.tsinghua.edu.cn/ubuntu jammy/main amd64 libfl2 amd64 2.6.4-8build2
    Ign:6 https://mirrors.tuna.tsinghua.edu.cn/ubuntu jammy/main amd64 libfl-dev amd64 2.6.4-8build2
    Ign:7 https://mirrors.tuna.tsinghua.edu.cn/ubuntu jammy-updates/main amd64 libncurses-dev amd64 6.3-2ubuntu0.1
    Ign:8 https://mirrors.tuna.tsinghua.edu.cn/ubuntu jammy-updates/main amd64 libssl-dev amd64 3.0.2-0ubuntu1.10
    Ign:1 https://mirrors.tuna.tsinghua.edu.cn/ubuntu jammy/main amd64 flex amd64 2.6.4-8build2
    Ign:2 https://mirrors.tuna.tsinghua.edu.cn/ubuntu jammy/main amd64 bison amd64 2:3.8.2+dfsg-1build1
    Ign:3 https://mirrors.tuna.tsinghua.edu.cn/ubuntu jammy-updates/main amd64 zlib1g-dev amd64 1:1.2.11.dfsg-2ubuntu9.2
    Ign:4 https://mirrors.tuna.tsinghua.edu.cn/ubuntu jammy/main amd64 libelf-dev amd64 0.186-1build1
    Ign:5 https://mirrors.tuna.tsinghua.edu.cn/ubuntu jammy/main amd64 libfl2 amd64 2.6.4-8build2
    Ign:6 https://mirrors.tuna.tsinghua.edu.cn/ubuntu jammy/main amd64 libfl-dev amd64 2.6.4-8build2
    Ign:7 https://mirrors.tuna.tsinghua.edu.cn/ubuntu jammy-updates/main amd64 libncurses-dev amd64 6.3-2ubuntu0.1
    Ign:8 https://mirrors.tuna.tsinghua.edu.cn/ubuntu jammy-updates/main amd64 libssl-dev amd64 3.0.2-0ubuntu1.10
    Ign:1 https://mirrors.tuna.tsinghua.edu.cn/ubuntu jammy/main amd64 flex amd64 2.6.4-8build2
    Ign:2 https://mirrors.tuna.tsinghua.edu.cn/ubuntu jammy/main amd64 bison amd64 2:3.8.2+dfsg-1build1
    Ign:3 https://mirrors.tuna.tsinghua.edu.cn/ubuntu jammy-updates/main amd64 zlib1g-dev amd64 1:1.2.11.dfsg-2ubuntu9.2
    Ign:4 https://mirrors.tuna.tsinghua.edu.cn/ubuntu jammy/main amd64 libelf-dev amd64 0.186-1build1
    Ign:5 https://mirrors.tuna.tsinghua.edu.cn/ubuntu jammy/main amd64 libfl2 amd64 2.6.4-8build2
    Ign:6 https://mirrors.tuna.tsinghua.edu.cn/ubuntu jammy/main amd64 libfl-dev amd64 2.6.4-8build2
    Ign:7 https://mirrors.tuna.tsinghua.edu.cn/ubuntu jammy-updates/main amd64 libncurses-dev amd64 6.3-2ubuntu0.1
    Ign:8 https://mirrors.tuna.tsinghua.edu.cn/ubuntu jammy-updates/main amd64 libssl-dev amd64 3.0.2-0ubuntu1.10
    Err:1 https://mirrors.tuna.tsinghua.edu.cn/ubuntu jammy/main amd64 flex amd64 2.6.4-8build2
      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: 101.6.15.130 443]
    Err:2 https://mirrors.tuna.tsinghua.edu.cn/ubuntu jammy/main amd64 bison amd64 2:3.8.2+dfsg-1build1
      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: 101.6.15.130 443]
    Ign:3 https://mirrors.tuna.tsinghua.edu.cn/ubuntu jammy-updates/main amd64 zlib1g-dev amd64 1:1.2.11.dfsg-2ubuntu9.2
    Err:4 https://mirrors.tuna.tsinghua.edu.cn/ubuntu jammy/main amd64 libelf-dev amd64 0.186-1build1
      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: 101.6.15.130 443]
    Err:5 https://mirrors.tuna.tsinghua.edu.cn/ubuntu jammy/main amd64 libfl2 amd64 2.6.4-8build2
      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: 101.6.15.130 443]
    Err:6 https://mirrors.tuna.tsinghua.edu.cn/ubuntu jammy/main amd64 libfl-dev amd64 2.6.4-8build2
      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: 101.6.15.130 443]
    Ign:7 https://mirrors.tuna.tsinghua.edu.cn/ubuntu jammy-updates/main amd64 libncurses-dev amd64 6.3-2ubuntu0.1
    Get:3 http://security.ubuntu.com/ubuntu jammy-updates/main amd64 zlib1g-dev amd64 1:1.2.11.dfsg-2ubuntu9.2 [164 kB]
    Ign:8 https://mirrors.tuna.tsinghua.edu.cn/ubuntu jammy-updates/main amd64 libssl-dev amd64 3.0.2-0ubuntu1.10
    Get:7 http://security.ubuntu.com/ubuntu jammy-updates/main amd64 libncurses-dev amd64 6.3-2ubuntu0.1 [381 kB]
    Get:8 http://security.ubuntu.com/ubuntu jammy-updates/main amd64 libssl-dev amd64 3.0.2-0ubuntu1.10 [2372 kB]
    Fetched 2916 kB in 12s (238 kB/s)                                                                                                                                      
    E: Failed to fetch https://mirrors.tuna.tsinghua.edu.cn/ubuntu/pool/main/f/flex/flex_2.6.4-8build2_amd64.deb  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: 101.6.15.130 443]
    E: Failed to fetch https://mirrors.tuna.tsinghua.edu.cn/ubuntu/pool/main/b/bison/bison_3.8.2%2bdfsg-1build1_amd64.deb  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: 101.6.15.130 443]
    E: Failed to fetch https://mirrors.tuna.tsinghua.edu.cn/ubuntu/pool/main/e/elfutils/libelf-dev_0.186-1build1_amd64.deb  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: 101.6.15.130 443]
    E: Failed to fetch https://mirrors.tuna.tsinghua.edu.cn/ubuntu/pool/main/f/flex/libfl2_2.6.4-8build2_amd64.deb  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: 101.6.15.130 443]
    E: Failed to fetch https://mirrors.tuna.tsinghua.edu.cn/ubuntu/pool/main/f/flex/libfl-dev_2.6.4-8build2_amd64.deb  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: 101.6.15.130 443]
    E: Unable to fetch some archives, maybe run apt-get update or try with --fix-missing?
    
    • 1
    • 2
    • 3
    • 4
    • 5
    • 6
    • 7
    • 8
    • 9
    • 10
    • 11
    • 12
    • 13
    • 14
    • 15
    • 16
    • 17
    • 18
    • 19
    • 20
    • 21
    • 22
    • 23
    • 24
    • 25
    • 26
    • 27
    • 28
    • 29
    • 30
    • 31
    • 32
    • 33
    • 34
    • 35
    • 36
    • 37
    • 38
    • 39
    • 40
    • 41
    • 42
    • 43
    • 44
    • 45
    • 46
    • 47
    • 48

    2. 原因

      当前系统的时间不对,我使用的是虚拟机,关闭过一段时间;一旦长时间关机,导致系统时间和真实时间差异较大,chrony就不会自动同步时间

    3. 解决方案

      手动同步时间即可,我使用的是chrony,因此执行:chronyc -a makestep命令即可同步时间。
      时间正确之后,就可以愉快的安装软件啦!!!

  • 相关阅读:
    青岛大学数据结构与算法——第8章
    Spring Cloud Alibaba+saas企业架构之自组织是管理者和成员的双向奔赴
    信钰证券:股票抵押是好还是坏?
    4WRBA6EB15-2X/G24N9Z4/M比例换向阀控制器
    开发JSP应用的基础知识
    9-6 Prometheus告警通知Alertmanager,结合邮箱,钉钉,企业微信实现告警,告警模板使用,告警分类发送
    2023最新接口自动化测试面试题
    C专家编程 第11章 你懂得C,所以C++不再话下 11.4 展示一些类---用户定义类型享有和预定义类型一样的权限
    约数:AcWing 870. 约数个数
    研究生有限元仿真应用中存在的问题与对策
  • 原文地址:https://blog.csdn.net/IOT_AI/article/details/133146956