Skip to content

Instantly share code, notes, and snippets.

@emamulandalib
Last active June 27, 2020 05:15
Show Gist options
  • Save emamulandalib/d016a055f7fc06053ce9af3e17f315fa to your computer and use it in GitHub Desktop.
Save emamulandalib/d016a055f7fc06053ce9af3e17f315fa to your computer and use it in GitHub Desktop.
Speed up Ubuntu "apt update", "apt upgrade", "apt dist-upgrade" by using mirror method. This will select the nearest Ubuntu mirror server. Update /etc/apt/sources.list. Just replace the release name with your release name. Like `20.04 = focal`. I have used `focal` here. To know the release name visit the link: https://en.wikipedia.org/wiki/Ubunt…
# Just replace the release name with your release name. Like `20.04 = focal`. I have used `focal` here.
# To know the release name visit the link: https://en.wikipedia.org/wiki/Ubuntu_version_history
deb mirror://mirrors.ubuntu.com/mirrors.txt focal main restricted universe multiverse
deb mirror://mirrors.ubuntu.com/mirrors.txt focal-updates main restricted universe multiverse
deb mirror://mirrors.ubuntu.com/mirrors.txt focal-backports main restricted universe multiverse
deb mirror://mirrors.ubuntu.com/mirrors.txt focal-security main restricted universe multiverse
deb http://security.ubuntu.com/ubuntu/ focal-security main restricted
deb http://security.ubuntu.com/ubuntu/ focal-security universe
deb http://security.ubuntu.com/ubuntu/ focal-security multiverse
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment