Skip to content

Instantly share code, notes, and snippets.

@ks2211
Created May 19, 2020 15:30
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ks2211/cc13fe0e888244b649d2aaa0f6769a9a to your computer and use it in GitHub Desktop.
Save ks2211/cc13fe0e888244b649d2aaa0f6769a9a to your computer and use it in GitHub Desktop.
Fix ubuntu /etc/apt/sources.list - replace <ubuntu-codename> with os codename (e.g 19.04 = bionic)
sudo -i
cat > /etc/apt/sources.list << EOF
deb http://archive.ubuntu.com/ubuntu <ubuntu-codename> main restricted universe multiverse
deb-src http://archive.ubuntu.com/ubuntu <ubuntu-codename> main restricted universe multiverse
deb http://archive.ubuntu.com/ubuntu <ubuntu-codename>-updates main restricted universe multiverse
deb-src http://archive.ubuntu.com/ubuntu <ubuntu-codename>-updates main restricted universe multiverse
deb http://archive.ubuntu.com/ubuntu <ubuntu-codename>-backports main restricted universe multiverse
deb-src http://archive.ubuntu.com/ubuntu <ubuntu-codename>-backports main restricted universe multiverse
deb http://archive.ubuntu.com/ubuntu <ubuntu-codename>-security main restricted universe multiverse
deb-src http://archive.ubuntu.com/ubuntu <ubuntu-codename>-security main restricted universe multiverse
#deb http://archive.ubuntu.com/ubuntu <ubuntu-codename>-proposed restricted main universe multiverse
#deb-src http://archive.ubuntu.com/ubuntu <ubuntu-codename>-proposed restricted main universe multiverse
deb http://archive.canonical.com/ubuntu <ubuntu-codename> partner
deb-src http://archive.canonical.com/ubuntu <ubuntu-codename> partner
EOF
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment