Skip to content

Instantly share code, notes, and snippets.

@mdPlusPlus
Created May 22, 2026 17:51
Show Gist options
  • Select an option

  • Save mdPlusPlus/6fdc879966311ce7c304dd6f39e91bd3 to your computer and use it in GitHub Desktop.

Select an option

Save mdPlusPlus/6fdc879966311ce7c304dd6f39e91bd3 to your computer and use it in GitHub Desktop.
MX Linux pre
# 0100-set-apt-mirror.sh
sudo sed -i \
-e 's/^URIs:.*\/repo\//URIs: https:\/\/mxrepo\.com\/mx\/repo\//g' \
-e 's/^URIs:.*\/testrepo\//URIs: https:\/\/mxrepo\.com\/mx\/testrepo\//g' \
'/etc/apt/sources.list.d/mx.sources'
# 0200-https-debian-sources.sh
sudo sed -i 's/URIs: http:/URIs: https:/g' /etc/apt/sources.list.d/debian.sources
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment