Skip to content

Instantly share code, notes, and snippets.

@m-tmatma
Last active December 28, 2020 00:10
Show Gist options
  • Save m-tmatma/192a4341705a1d2f5121255aa615cdcf to your computer and use it in GitHub Desktop.
Save m-tmatma/192a4341705a1d2f5121255aa615cdcf to your computer and use it in GitHub Desktop.
apt の取得先を mirror に変更
#!/bin/sh
sudo sed -i.bak -r 's!(deb|deb-src) \S+!\1 mirror://mirrors.ubuntu.com/mirrors.txt!' /etc/apt/sources.list
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment