当前位置: 首页 > 工具软件 > OPNFV > 使用案例 >

opnfv c/fuel 9编译问题处理

澹台啸
2023-12-01

docker编译时出现Hash sum mismatch问题,修改如下

原因:ubuntu官方源下载不全导致hash不对

修改方法:改用阿里源

修改代码


root@fz:/mnt/sdb/fuel/build# git diff docker/Dockerfile
diff --git a/build/docker/Dockerfile b/build/docker/Dockerfile
index b38ea4c..7d85654 100644
--- a/build/docker/Dockerfile
+++ b/build/docker/Dockerfile
@@ -15,6 +15,11 @@ ENV https_proxy INSERT_HTTPS_PROXY
 ENV no_proxy INSERT_NO_PROXY
 ENV DEBIAN_FRONTEND noninteractive
 
+RUN apt-get clean
+RUN sed -i 's/archive.ubuntu.com/mirrors.aliyun.com/g' /etc/apt/sources.list
+RUN apt-get update --fix-missing
+RUN rm -fR /var/lib/apt/lists/*  
+RUN mkdir /var/lib/apt/lists/partial
 RUN apt-get update
 RUN apt-get install -y software-properties-common python-software-properties \
     make python-setuptools python-all dpkg-dev debhelper ruby-json \
root@fz:/mnt/sdb/fuel/build# 



 类似资料: