docker容器ubuntu运行命令apt-get update时报以下错误Err6 httpubuntucn99comubuntu precise Release 404 Not Found IP 11818416932 80
这个错误是因为你使用的镜像源不正确或者该镜像源已经不存在了。
你可以尝试更换为其他可用的镜像源,例如使用官方的镜像源:
RUN sed -i 's/archive.ubuntu.com/mirrors.ubuntu.com/g' /etc/apt/sources.list
或者使用阿里云的镜像源:
RUN sed -i 's/archive.ubuntu.com/mirrors.aliyun.com/g' /etc/apt/sources.list
然后再运行apt-get update命令即可。
 
原文地址: https://www.cveoy.top/t/topic/hQU9 著作权归作者所有。请勿转载和采集!