我推出了一个带有ubuntu 22.04的容器
docker run -it ubuntu:22.04然后通过apt更新得到错误
root@d089f7dbfc40:/# apt update
Hit:1 http://security.ubuntu.com/ubuntu jammy-security InRelease
Hit:2 http://archive.ubuntu.com/ubuntu jammy InRelease
Hit:3 http://archive.ubuntu.com/ubuntu jammy-updates InRelease
Hit:4 http://archive.ubuntu.com/ubuntu jammy-backports InRelease
Reading package lists... Done
E: Problem executing scripts APT::Update::Post-Invoke 'rm -f /var/cache/apt/archives/*.deb /var/cache/apt/archives/partial/*.deb /var/cache/apt/*.bin || true'
E: Sub-process returned an error code码头图像信息
"RepoTags": [
"ubuntu:22.04"
],
"RepoDigests": [
"ubuntu@sha256:4b1d0c4a2d2aaf63b37111f34eb9fa89fa1bf53dd6e4ca954d47caebca4005c2"
],我试过了ubuntu:20.04,它很好用。大约两周前,22.04还在工作。
发布于 2023-04-20 04:53:25
找到解决方案了!https://bugs.launchpad.net/ubuntu/+source/docker.io/+bug/1998736
我用的是码头20.10.9。在更新到20.10.24 (目前最新版本)之后,问题就消失了。
https://askubuntu.com/questions/1443707
复制相似问题