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.

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 1
    评论
要下载docker-compose-aarch64.tar文件,您可以按照以下步骤进行操作: 1. 打开您所使用的网络浏览器,例如Chrome或Firefox。 2. 在浏览器的搜索栏输入“docker-compose-aarch64.tar下载”。 3. 在搜索结果找到可靠且安全的网站,提供docker-compose-aarch64.tar文件的下载。 4. 单击该网站链接,访问下载页面。 5. 在下载页面上,确认您下载的是适用于aarch64架构docker-compose版本。请注意,aarch64适用于一些特定的ARM架构设备,如树莓派等。 6. 确认您所下载的文件是否与您需要的文件名称相匹配,即docker-compose-aarch64.tar。确保文件名没有错误或拼写错误。 7. 在下载页面上,一般会提供一个下载按钮或链接。单击下载按钮或链接,开始下载docker-compose-aarch64.tar文件。 8. 等待下载完成。具体下载速度取决于您的互联网连接速度以及文件大小。 9. 下载完成后,您可以在计算机的默认下载文件夹或您自定义的下载位置找到docker-compose-aarch64.tar文件。 10. 最后,您可以根据需要继续使用docker-compose-aarch64.tar文件进行后续操作,例如安装或配置docker compose在aarch64架构设备上使用。 请注意,以上步骤仅为大致指南,实际的下载过程可能因不同的浏览器或所用的下载网站而有所不同。在下载文件时,请确保您使用的是可靠和安全的网站,并仔细验证文件的完整性和来源。
评论 1
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值