ML-TANGO / TANGO

public repo for TANGO (Target Aware No-code neural network Generation and Operation framework)
Other
68 stars 20 forks source link

code_gen container 빌드 시에 fetch 에러 #116

Closed iksooman closed 9 months ago

iksooman commented 10 months ago

code_gen container 빌드 중에 DockerfileRUN apt-get install -y libgl1-mesa-glx을 처리하다가 이런 에러가 발생했는데

20.68 E: Failed to fetch http://security.debian.org/debian-security/pool/updates/main/libx/libx11/libx11-6_1.7.2-1%2bdeb11u1_amd64.deb  404  Not Found [IP: 151.101.78.132 80]
20.68 E: Failed to fetch http://security.debian.org/debian-security/pool/updates/main/libx/libx11/libx11-xcb1_1.7.2-1%2bdeb11u1_amd64.deb  404  Not Found [IP: 151.101.78.132 80]

아래 명령을 DockerfileRUN apt-get update 전에 실행해주니 해결되었습니다.

RUN sed -i "s/httpredir.debian.org/`curl -s -D - http://httpredir.debian.org/demo/debian/ | awk '/^Link:/ { print $2 }' | sed -e 's@<http://\(.*\)/debian/>;@\1@g'`/" /etc/apt/sources.list