Last active
March 28, 2023 10:43
-
-
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.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Warning: The first one will overwrite your sources.list