docker中apt-get update更新失败时的解决方法
在RUN apt-get update之前添加RUN mv /etc/apt/sources.list /etc/apt/sources.list.bak && \echo 'deb http://mirrors.163.com/debian/ jessie main non-free contrib' > /etc/apt/sources.list && \echo 'deb http://m
·
在RUN apt-get update
之前添加
RUN mv /etc/apt/sources.list /etc/apt/sources.list.bak && \
echo 'deb http://mirrors.163.com/debian/ jessie main non-free contrib' > /etc/apt/sources.list && \
echo 'deb http://mirrors.163.com/debian/ jessie-updates main non-free contrib' >> /etc/apt/sources.list && \
echo 'deb http://mirrors.163.com/debian-security/ jessie/updates main non-free contrib' >> /etc/apt/sources.list
更多推荐
已为社区贡献1条内容
所有评论(0)