Skip to content

Instantly share code, notes, and snippets.

@PeteLawrence
Last active March 6, 2018 05:07
Show Gist options
  • Star 5 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save PeteLawrence/9052977 to your computer and use it in GitHub Desktop.
Save PeteLawrence/9052977 to your computer and use it in GitHub Desktop.
The standard /etc/apt/sources.list file points to us.archive.ubuntu.com, which in my experience is pretty slow. This command will replace the contents of sources.list, and will tell apt-get to select a better mirror
cat >/etc/apt/sources.list << EOL
deb mirror://mirrors.ubuntu.com/mirrors.txt trusty main restricted universe multiverse
deb mirror://mirrors.ubuntu.com/mirrors.txt trusty-updates main restricted universe multiverse
deb mirror://mirrors.ubuntu.com/mirrors.txt trusty-backports main restricted universe multiverse
deb mirror://mirrors.ubuntu.com/mirrors.txt trusty-security main restricted universe multiverse
EOL
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment