Skip to content

Instantly share code, notes, and snippets.

@alexisrolland
Last active March 28, 2023 10:43
Show Gist options
  • Save alexisrolland/6227b726caaf99a1ae5202c8afbc2cda to your computer and use it in GitHub Desktop.
Save alexisrolland/6227b726caaf99a1ae5202c8afbc2cda to your computer and use it in GitHub Desktop.
Commands used to update the file /etc/apt/sources.list which contains the list of mirrors to download packages with apt command. Commands below were tested in a Docker container built with image python:3.6.6-slim-stretch.
echo "deb http://ftp.cn.debian.org/debian/ stretch main" > /etc/apt/sources.list
echo "deb http://ftp.cn.debian.org/debian/ stretch-updates main" >> /etc/apt/sources.list
apt-get update
@oriolgalceran
Copy link

Warning: The first one will overwrite your sources.list

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment