更新系统包相关
执行更新命令时遇到的情况
root@设备名:~# apt update && apt upgrade -y
获取:1 http://repo.huaweicloud.com/ubuntu-ports focal InRelease [265 kB]
命中:2 http://repo.huaweicloud.com/ubuntu-ports focal-updates InRelease
获取:3 http://repo.huaweicloud.com/ubuntu-ports focal-backports InRelease [128 kB]
忽略:4 https://node3.histb.com:9088/update/repo/arm64 histb InRelease
命中:5 http://repo.huaweicloud.com/ubuntu-ports focal-security InRelease
命中:6 https://mirrors.ustc.edu.cn/docker-ce/linux/ubuntu focal InRelease
错误:7 https://node3.histb.com:9088/update/repo/arm64 histb Release
Certificate verification failed: The certificate is NOT trusted. The certificate chain uses expired certificate. Could not handshake: Error in the certificate verification. [IP: 218.75.183.139 9088]
正在读取软件包列表... 完成
E: 仓库 “https://node3.histb.com:9088/update/repo/arm64 histb Release” 没有 Release 文件。
N: 无法安全地用该源进行更新,所以默认禁用该源。
N: 参见 apt-secure(8) 手册以了解仓库创建和用户配置方面的细节。
root@设备名:~# 具体情况
1、报错:
错误:7 https://node3.histb.com:9088/update/repo/arm64 histb Release Certificate verification failed: The certificate is NOT trusted. The certificate chain uses expired certificate. Could not
2、命令中断,停止执行apt upgrade -y
解决办法
打开更新系统源文件删除报错的源相关的文件
系统源文件路径一般默认是:/etc/apt/