Method 2: For amd64 or i386 architectures (Main repositories only)
Add the following into /etc/apt/sources.list
.
To edit /etc/apt/sources.list, you can type sudo nano /etc/apt/sources.list
Add the following to the top of /etc/apt/sources.list.
Ensure you replace Groovy with your respective OS release.
deb http://mirror.coganng.com/ubuntu groovy main
deb-src http://mirror.coganng.com/ubuntu groovy main
deb http://mirror.coganng.com/ubuntu groovy-updates main
deb-src http://mirror.coganng.com/ubuntu groovy-updates main
deb http://mirror.coganng.com/ubuntu groovy-backports main
deb-src http://mirror.coganng.com/ubuntu groovy-backports main
deb http://mirror.coganng.com/ubuntu groovy-security main
deb-src http://mirror.coganng.com/ubuntu groovy-security main
Ensure you replace Groovy with your respective OS release.To check your OS release, type . /etc/os-release && echo "$UBUNTU_CODENAME"
into a Bash terminal.
If you want to add restricted/universe/multiverse repositories, refer to the below.
Method 3: For amd64 or i386 architectures (Restricted/universe/multiverse repositories)
Add the following into /etc/apt/sources.list
. Ensure that you have completed Method 2 before doing this, unless you don't want the main repositories.
To edit /etc/apt/sources.list, you can type sudo nano /etc/apt/sources.list
Add the following to the top of /etc/apt/sources.list.
Ensure you replace Groovy with your respective OS release.
deb http://mirror.coganng.com/ubuntu groovy restricted universe
deb-src http://mirror.coganng.com/ubuntu groovy restricted universe
deb http://mirror.coganng.com/ubuntu groovy-updates restricted universe
deb-src http://mirror.coganng.com/ubuntu groovy-updates restricted universe
deb http://mirror.coganng.com/ubuntu groovy-backports restricted universe multiverse
deb-src http://mirror.coganng.com/ubuntu groovy-backports restricted universe multiverse
deb http://mirror.coganng.com/ubuntu groovy-security restricted universe multiverse
deb-src http://mirror.coganng.com/ubuntu groovy-security restricted universe multiverse
Ensure you replace Groovy with your respective OS release.To check your OS release, type . /etc/os-release && echo "$UBUNTU_CODENAME"
into a Bash terminal.
Method 4: For other Ubuntu architectures (Main repositories)
For other Ubuntu architectures, the ubuntu-ports repository is used.
Before you do anything, you need to edit /etc/cloud/cloud.cfg
. Type in echo 'apt_preserve_sources_list: true' >> /etc/cloud/cloud.cfg
into a Bash terminal.
Then, add the following into /etc/apt/sources.list
.
To edit /etc/apt/sources.list, you can type sudo nano /etc/apt/sources.list
Add the following to the top of /etc/apt/sources.list.
Ensure you replace Focal with your respective OS release.
deb http://mirror.coganng.com/ubuntu-ports focal main
deb-src http://mirror.coganng.com/ubuntu-ports focal main
deb http://mirror.coganng.com/ubuntu-ports focal-updates main
deb-src http://mirror.coganng.com/ubuntu-ports focal-updates main
deb http://mirror.coganng.com/ubuntu-ports focal-backports main
deb-src http://mirror.coganng.com/ubuntu-ports focal-backports main
deb http://mirror.coganng.com/ubuntu-ports focal-security main
deb-src http://mirror.coganng.com/ubuntu-ports focal-security main
Ensure you replace Focal with your respective OS release.To check your OS release, type . /etc/os-release && echo "$UBUNTU_CODENAME"
into a Bash terminal.
If you want to add restricted/universe/multiverse repositories, refer to the below.
Method 5: For other Ubuntu architectures (Restricted/universe/multiverse repositories)
For other Ubuntu architectures, the ubuntu-ports repository is used.
Before you do anything, you need to edit /etc/cloud/cloud.cfg
. Type in echo 'apt_preserve_sources_list: true' >> /etc/cloud/cloud.cfg
into a Bash terminal. (If you already did this in Method 4, you will not need to do this again.)
Then, add the following into /etc/apt/sources.list
. Ensure that you have completed Method 4 before doing this, unless you don't want the main repositories.
To edit /etc/apt/sources.list, you can type sudo nano /etc/apt/sources.list
Add the following to the top of /etc/apt/sources.list.
Ensure you replace Focal with your respective OS release.
deb http://mirror.coganng.com/ubuntu-ports focal restricted universe
deb-src http://mirror.coganng.com/ubuntu-ports focal restricted universe
deb http://mirror.coganng.com/ubuntu-ports focal-updates restricted universe
deb-src http://mirror.coganng.com/ubuntu-ports focal-updates restricted universe
deb http://mirror.coganng.com/ubuntu-ports focal-backports restricted universe multiverse
deb-src http://mirror.coganng.com/ubuntu-ports focal-backports restricted universe multiverse
deb http://mirror.coganng.com/ubuntu-ports focal-security restricted universe multiverse
deb-src http://mirror.coganng.com/ubuntu-ports focal-security restricted universe multiverse
Ensure you replace Focal with your respective OS release. To check your OS release, type . /etc/os-release && echo "$UBUNTU_CODENAME"
into a Bash terminal.