File tree Expand file tree Collapse file tree 1 file changed +5
-4
lines changed Expand file tree Collapse file tree 1 file changed +5
-4
lines changed Original file line number Diff line number Diff line change @@ -260,8 +260,9 @@ kolla_build_blocks:
260260 {% endfor %}
261261 {% else %}
262262 RUN \
263- rm /etc/apt/sources.list && \
264- ls -lac /etc/apt/sources.list.d/ &&\
263+ cat /etc/apt/sources.list && \
264+ rm -f /etc/apt/sources.list && \
265+ rm -f /etc/apt/sources.list.d/* &&\
265266 {% if stackhpc_repo_mirror_auth_proxy_enabled | bool %}
266267 {# We lack the ca-certificates package at this stage, so don't verify the CA initially #}
267268 echo 'Acquire::https::Verify-Peer "false";' > /etc/apt/apt.conf.d/90no-verify-peer && \
@@ -293,9 +294,9 @@ kolla_build_blocks:
293294 COPY sources.list.ubuntu /etc/apt/sources.list.backup
294295 {% endif %}
295296 RUN \
297+ cat /etc/apt/sources.list && \
296298 rm /etc/apt/sources.list && \
297- ls -lac /etc/apt/sources.list.d/ && \
298- rm -f /etc/apt/sources.list.d/docker-ce.sources && \
299+ rm -f /etc/apt/sources.list.d/* && \
299300 rm -f /etc/apt/apt.conf.d/90no-verify-peer && \
300301 {% for repo in stackhpc_ubuntu_noble_repos %}
301302 echo '{{ repo }}' >> /etc/apt/sources.list {% if not loop.last %} && \
You can’t perform that action at this time.
0 commit comments