Changing apt sources for EOL ubuntu

This commit is contained in:
Finley Ghosh 2025-08-10 11:47:35 +10:00
parent 33795bb47f
commit a46ca9d0ab

View file

@ -8,9 +8,9 @@ ENV HOME /root
# Define working directory.
WORKDIR /root
RUN sed -i 's/archive/old-releases/' /etc/apt/sources.list
# Update apt sources to use old-releases.ubuntu.com for EOL Ubuntu 16.04
RUN sed -i 's|http://archive.ubuntu.com/ubuntu/|http://old-releases.ubuntu.com/ubuntu/|g' /etc/apt/sources.list && \
sed -i 's|http://security.ubuntu.com/ubuntu|http://old-releases.ubuntu.com/ubuntu|g' /etc/apt/sources.list
RUN apt-get update
RUN apt-get -y upgrade