modified on 23 May 2016 at 09:38 ••• 6,241 views

Repositories-16.04-LTS

From Maties Ubuntu

Jump to: navigation, search
  • This procedure will require a little bit of patience and a pinch of command line magic.
  • However not to worry, since the instructions are fairly clear.
Introduction

Our central IT department runs a mirror of the Ubuntu software on a server on campus so that you can save money on software updates via the internet.

Follow the procedure below to setup your computer to use the campus software servers.

Step 1

Type CTL+ALT+t on the keyboard. A terminal will open. Move it to a handy corner of your screen.

Step 2

Select all of the text below by holding down the left-button of your mouse and dragging along all of the following text.

sudo cp /etc/apt/sources.list /etc/apt/sources.list-backup
  1. Release the left-button and then right-click on the selection.
  2. Select the "Copy" function from the drop down menu.
  3. In the open terminal, right-click on the blinking cursor and select "Paste".
  4. Now press the "Enter" key on the keyboard.
  5. Enter your password in the pop-up.
Step 3

Select all of the text below by holding down the left-button of your mouse and dragging along all of the following text.

sudo gedit /etc/apt/sources.list
  1. Release the left-button and then right-click on the selection.
  2. Select the "Copy" function from the drop down menu.
  3. In the open terminal, right-click on the blinking cursor and select "Paste".
  4. Now press the "Enter" key on the keyboard.
Step 4

Delete all of the contents in the opened file.

Step 5

Select all of the text below by holding down the left-button of your mouse and dragging along all of the following text.

# Local Stellenbosch Campus Mirrors
deb ftp://ftp.sun.ac.za/ubuntu xenial main restricted universe multiverse
deb ftp://ftp.sun.ac.za/ubuntu xenial-updates main restricted universe multiverse
deb ftp://ftp.sun.ac.za/ubuntu xenial-security main restricted universe multiverse
deb ftp://ftp.sun.ac.za/ubuntu xenial-backports main restricted universe multiverse
#deb ftp://ftp.sun.ac.za/ubuntu xenial-proposed main restricted universe multiverse

###### Mirror of Ubuntu partner
deb ftp://ftp.sun.ac.za/pub/mirrors/3dpartyubuntu/partner/ xenial partner
###### Ubuntu Partner Repo
#deb http://archive.canonical.com/ubuntu xenial partner
###### Ubuntu Extras Repo
#deb http://extras.ubuntu.com/ubuntu xenial main
  1. Release the left-button and then right-click on the selection.
  2. Select the "Copy" function from the drop down menu.
  3. In the open file, right-click and select "Paste".
  4. Save the file and close gedit.
Step 6

Now close the terminal.

Step 7

Update your software. You are done.



References
Official Repositories

For reference only

#############################################################
################### OFFICIAL UBUNTU REPOS ###################
#############################################################

###### Ubuntu Main Repos
deb http://za.archive.ubuntu.com/ubuntu/ xenial main restricted universe multiverse 

###### Ubuntu Update Repos
deb http://za.archive.ubuntu.com/ubuntu/ xenial-security main restricted universe multiverse 
deb http://za.archive.ubuntu.com/ubuntu/ xenial-updates main restricted universe multiverse 
deb http://za.archive.ubuntu.com/ubuntu/ xenial-proposed main restricted universe multiverse 
deb http://za.archive.ubuntu.com/ubuntu/ xenial-backports main restricted universe multiverse 

###### Ubuntu Partner Repo
deb http://archive.canonical.com/ubuntu xenial partner

###### Ubuntu Extras Repo
deb http://extras.ubuntu.com/ubuntu xenial main