aarch64架构CPU的docker中ubuntu18.04,20.04,22.04等系统apt update均报错的原因

宿主及环境为aarch64的CPU的Ubuntu18.04,docker版本为自带的19.03.6。

对于Ubuntu14.04、16.04、18.04 这个原因很乌龙,之前百度搜索结果也都不对,最终原因竟然只是因为网络问题 。早上8点左右我到公司执行atp update,一切正常,安装lrzsz,htop也成功。但是到了10点左右,就开始无法使用了。

不过在22.04(当前是ubuntu:latest)里尝试发现,自带的报错且按百度搜索到的解决办法都无法解决(手动安装证书报缺少openssl)如下:

root@38fd3b0c0696:/# apt update

Get:1 http://ports.ubuntu.com/ubuntu-ports jammy InRelease [270 kB]

Get:2 http://ports.ubuntu.com/ubuntu-ports jammy-updates InRelease [119 kB]

Err:1 http://ports.ubuntu.com/ubuntu-ports jammy InRelease

The following signatures couldn't be verified because the public key is not available: NO_PUBKEY 871920D1991BC93C

Get:3 http://ports.ubuntu.com/ubuntu-ports jammy-backports InRelease [109 kB]

Err:2 http://ports.ubuntu.com/ubuntu-ports jammy-updates InRelease

The following signatures couldn't be verified because the public key is not available: NO_PUBKEY 871920D1991BC93C

Get:4 http://ports.ubuntu.com/ubuntu-ports jammy-security InRelease [110 kB]

Err:3 http://ports.ubuntu.com/ubuntu-ports jammy-backports InRelease

The following signatures couldn't be verified because the public key is not available: NO_PUBKEY 871920D1991BC93C

Err:4 http://ports.ubuntu.com/ubuntu-ports jammy-security InRelease

The following signatures couldn't be verified because the public key is not available: NO_PUBKEY 871920D1991BC93C

Reading package lists... Done

W: http://ports.ubuntu.com/ubuntu-ports/dists/jammy/InRelease: The key(s) in the keyring /etc/apt/trusted.gpg.d/ubuntu-keyring-2012-cdimage.gpg are ignored as the file is not readable by user '_apt' executing apt-key.

W: http://ports.ubuntu.com/ubuntu-ports/dists/jammy/InRelease: The key(s) in the keyring /etc/apt/trusted.gpg.d/ubuntu-keyring-2018-archive.gpg are ignored as the file is not readable by user '_apt' executing apt-key.

W: GPG error: http://ports.ubuntu.com/ubuntu-ports jammy InRelease: The following signatures couldn't be verified because the public key is not available: NO_PUBKEY 871920D1991BC93C

E: The repository 'http://ports.ubuntu.com/ubuntu-ports jammy InRelease' is not signed.

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.

W: http://ports.ubuntu.com/ubuntu-ports/dists/jammy-updates/InRelease: The key(s) in the keyring /etc/apt/trusted.gpg.d/ubuntu-keyring-2012-cdimage.gpg are ignored as the file is not readable by user '_apt' executing apt-key.

W: http://ports.ubuntu.com/ubuntu-ports/dists/jammy-updates/InRelease: The key(s) in the keyring /etc/apt/trusted.gpg.d/ubuntu-keyring-2018-archive.gpg are ignored as the file is not readable by user '_apt' executing apt-key.

W: GPG error: http://ports.ubuntu.com/ubuntu-ports jammy-updates InRelease: The following signatures couldn't be verified because the public key is not available: NO_PUBKEY 871920D1991BC93C

E: The repository 'http://ports.ubuntu.com/ubuntu-ports jammy-updates InRelease' is not signed.

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.

W: http://ports.ubuntu.com/ubuntu-ports/dists/jammy-backports/InRelease: The key(s) in the keyring /etc/apt/trusted.gpg.d/ubuntu-keyring-2012-cdimage.gpg are ignored as the file is not readable by user '_apt' executing apt-key.

W: http://ports.ubuntu.com/ubuntu-ports/dists/jammy-backports/InRelease: The key(s) in the keyring /etc/apt/trusted.gpg.d/ubuntu-keyring-2018-archive.gpg are ignored as the file is not readable by user '_apt' executing apt-key.

W: GPG error: http://ports.ubuntu.com/ubuntu-ports jammy-backports InRelease: The following signatures couldn't be verified because the public key is not available: NO_PUBKEY 871920D1991BC93C

E: The repository 'http://ports.ubuntu.com/ubuntu-ports jammy-backports InRelease' is not signed.

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.

W: http://ports.ubuntu.com/ubuntu-ports/dists/jammy-security/InRelease: The key(s) in the keyring /etc/apt/trusted.gpg.d/ubuntu-keyring-2012-cdimage.gpg are ignored as the file is not readable by user '_apt' executing apt-key.

W: http://ports.ubuntu.com/ubuntu-ports/dists/jammy-security/InRelease: The key(s) in the keyring /etc/apt/trusted.gpg.d/ubuntu-keyring-2018-archive.gpg are ignored as the file is not readable by user '_apt' executing apt-key.

W: GPG error: http://ports.ubuntu.com/ubuntu-ports jammy-security InRelease: The following signatures couldn't be verified because the public key is not available: NO_PUBKEY 871920D1991BC93C

E: The repository 'http://ports.ubuntu.com/ubuntu-ports jammy-security InRelease' is not signed.

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.

替换成阿里云也如此报错,如果改成https呢,又有如下报错:

Ign:1 https://mirrors.aliyun.com/ubuntu-ports jammy InRelease

Ign:2 https://mirrors.aliyun.com/ubuntu-ports jammy-updates InRelease

Ign:3 https://mirrors.aliyun.com/ubuntu-ports jammy-backports InRelease

Ign:4 https://mirrors.aliyun.com/ubuntu-ports jammy-security InRelease

Ign:1 https://mirrors.aliyun.com/ubuntu-ports jammy InRelease

Ign:2 https://mirrors.aliyun.com/ubuntu-ports jammy-updates InRelease

Ign:3 https://mirrors.aliyun.com/ubuntu-ports jammy-backports InRelease

Ign:4 https://mirrors.aliyun.com/ubuntu-ports jammy-security InRelease

Ign:1 https://mirrors.aliyun.com/ubuntu-ports jammy InRelease

Ign:2 https://mirrors.aliyun.com/ubuntu-ports jammy-updates InRelease

Ign:3 https://mirrors.aliyun.com/ubuntu-ports jammy-backports InRelease

Ign:4 https://mirrors.aliyun.com/ubuntu-ports jammy-security InRelease

Err:1 https://mirrors.aliyun.com/ubuntu-ports jammy InRelease

Certificate verification failed: The certificate is NOT trusted. The certificate issuer is unknown. Could not handshake: Error in the certificate verification. [IP: 103.151.149.55 443]

Err:2 https://mirrors.aliyun.com/ubuntu-ports jammy-updates InRelease

Certificate verification failed: The certificate is NOT trusted. The certificate issuer is unknown. Could not handshake: Error in the certificate verification. [IP: 103.151.149.53 443]

Err:3 https://mirrors.aliyun.com/ubuntu-ports jammy-backports InRelease

Certificate verification failed: The certificate is NOT trusted. The certificate issuer is unknown. Could not handshake: Error in the certificate verification. [IP: 103.151.149.54 443]

Err:4 https://mirrors.aliyun.com/ubuntu-ports jammy-security InRelease

Certificate verification failed: The certificate is NOT trusted. The certificate issuer is unknown. Could not handshake: Error in the certificate verification. [IP: 103.151.149.56 443]

Reading package lists... Done

Building dependency tree... Done

Reading state information... Done

All packages are up to date.

W: https://mirrors.aliyun.com/ubuntu-ports/dists/jammy/InRelease: No system certificates available. Try installing ca-certificates.

W: https://mirrors.aliyun.com/ubuntu-ports/dists/jammy-updates/InRelease: No system certificates available. Try installing ca-certificates.

W: https://mirrors.aliyun.com/ubuntu-ports/dists/jammy-backports/InRelease: No system certificates available. Try installing ca-certificates.

W: https://mirrors.aliyun.com/ubuntu-ports/dists/jammy-security/InRelease: No system certificates available. Try installing ca-certificates.

W: https://mirrors.aliyun.com/ubuntu-ports/dists/jammy/InRelease: No system certificates available. Try installing ca-certificates.

W: https://mirrors.aliyun.com/ubuntu-ports/dists/jammy-updates/InRelease: No system certificates available. Try installing ca-certificates.

W: https://mirrors.aliyun.com/ubuntu-ports/dists/jammy-backports/InRelease: No system certificates available. Try installing ca-certificates.

W: https://mirrors.aliyun.com/ubuntu-ports/dists/jammy-security/InRelease: No system certificates available. Try installing ca-certificates.

W: https://mirrors.aliyun.com/ubuntu-ports/dists/jammy/InRelease: No system certificates available. Try installing ca-certificates.

W: https://mirrors.aliyun.com/ubuntu-ports/dists/jammy-updates/InRelease: No system certificates available. Try installing ca-certificates.

W: https://mirrors.aliyun.com/ubuntu-ports/dists/jammy-backports/InRelease: No system certificates available. Try installing ca-certificates.

W: https://mirrors.aliyun.com/ubuntu-ports/dists/jammy-security/InRelease: No system certificates available. Try installing ca-certificates.

W: https://mirrors.aliyun.com/ubuntu-ports/dists/jammy/InRelease: No system certificates available. Try installing ca-certificates.

W: https://mirrors.aliyun.com/ubuntu-ports/dists/jammy-updates/InRelease: No system certificates available. Try installing ca-certificates.

W: https://mirrors.aliyun.com/ubuntu-ports/dists/jammy-backports/InRelease: No system certificates available. Try installing ca-certificates.

W: https://mirrors.aliyun.com/ubuntu-ports/dists/jammy-security/InRelease: No system certificates available. Try installing ca-certificates.

W: Failed to fetch https://mirrors.aliyun.com/ubuntu-ports/dists/jammy/InRelease Certificate verification failed: The certificate is NOT trusted. The certificate issuer is unknown. Could not handshake: Error in the certificate verification. [IP: 103.151.149.55 443]

W: Failed to fetch https://mirrors.aliyun.com/ubuntu-ports/dists/jammy-updates/InRelease Certificate verification failed: The certificate is NOT trusted. The certificate issuer is unknown. Could not handshake: Error in the certificate verification. [IP: 103.151.149.53 443]

W: Failed to fetch https://mirrors.aliyun.com/ubuntu-ports/dists/jammy-backports/InRelease Certificate verification failed: The certificate is NOT trusted. The certificate issuer is unknown. Could not handshake: Error in the certificate verification. [IP: 103.151.149.54 443]

W: Failed to fetch https://mirrors.aliyun.com/ubuntu-ports/dists/jammy-security/InRelease Certificate verification failed: The certificate is NOT trusted. The certificate issuer is unknown. Could not handshake: Error in the certificate verification. [IP: 103.151.149.56 443]

W: Some index files failed to download. They have been ignored, or old ones used instead.

相关推荐
维尔切1 小时前
Nginx 反向代理与负载均衡
运维·nginx·负载均衡
知白守黑2671 小时前
反向代理和负载均衡
运维·负载均衡
杨云龙UP1 小时前
小工具大体验:rlwrap加持下的Oracle/MySQL/SQL Server命令行交互
运维·服务器·数据库·sql·mysql·oracle·sqlserver
码路工人1 小时前
附录B:kubectl 命令速查表 - Kubernetes 集群管理必备指南
docker·云原生·容器
码路工人1 小时前
附录A:常用 Docker 命令速查表
docker·云原生·容器
love530love2 小时前
【笔记】 Podman Desktop 中部署 Stable Diffusion WebUI (GPU 支持)
人工智能·windows·笔记·python·容器·stable diffusion·podman
iconball2 小时前
个人用云计算学习笔记 --18(NFS 服务器、iSCSI 服务器)
linux·运维·笔记·学习·云计算
zcz16071278213 小时前
Docker Compose 搭建 LNMP 环境并部署 WordPress 论坛
android·adb·docker
广药门徒3 小时前
Linux驱动开发与BuildRoot是什么关系与其的应用场景
linux·运维·驱动开发
Bruce_Liuxiaowei6 小时前
MQTT协议在物联网环境中的安全风险与防范指南
运维·网络·物联网·安全·网络安全