Created
May 19, 2020 15:30
-
-
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)
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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