File tree Expand file tree Collapse file tree 1 file changed +6
-3
lines changed
.github/scripts/s390x-ci/self-hosted-builder Expand file tree Collapse file tree 1 file changed +6
-3
lines changed Original file line number Diff line number Diff line change @@ -16,11 +16,14 @@ FROM ubuntu:22.04
1616ENV DEBIAN_FRONTEND=noninteractive
1717
1818# Fix sources to point to ports.ubuntu.com for ppc64le
19- RUN sed -i 's|http://archive.ubuntu.com|http://ports.ubuntu.com|g' /etc/apt/sources.list && \
20- sed -i 's|http://security.ubuntu.com|http://ports.ubuntu.com|g' /etc/apt/sources.list
19+ RUN echo "deb [arch=ppc64el] http://ports.ubuntu.com/ubuntu-ports jammy main restricted universe multiverse" > /etc/apt/sources.list && \
20+ echo "deb [arch=ppc64el] http://ports.ubuntu.com/ubuntu-ports jammy-updates main restricted universe multiverse" >> /etc/apt/sources.list && \
21+ echo "deb [arch=ppc64el] http://ports.ubuntu.com/ubuntu-ports jammy-backports main restricted universe multiverse" >> /etc/apt/sources.list && \
22+ echo "deb [arch=ppc64el] http://ports.ubuntu.com/ubuntu-ports jammy-security main restricted universe multiverse" >> /etc/apt/sources.list
2123
2224# Update and clean apt
23- RUN apt-get update -o Acquire::Retries=3 && apt-get clean && rm -rf /var/lib/apt/lists/*
25+ RUN apt-get clean && rm -rf /var/lib/apt/lists/* && \
26+ apt-get update -o Acquire::Retries=5 -o Acquire::http::Timeout="10"
2427
2528# Install dependencies for building and testing PyTorch
2629RUN apt-get update && apt-get -y install --no-install-recommends \
You can’t perform that action at this time.
0 commit comments