Changing apt sources for EOL ubuntu
This commit is contained in:
parent
33795bb47f
commit
a46ca9d0ab
|
|
@ -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
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue