This tutorial will guide you on how to setup a custom (third party) package repository in Ubuntu. We have our own Ubuntu archive repository in our network which undergoes rsync updates twice a day. Instead of using the official repository or local region mirror, we might instead use our local network repository to maximize speed and reduce internet bandwidth.
The configuration can be made though apt config file of if you prefer using GUI, the synaptic tool. This howto will cover configuration using Synaptic.
From the menu choose “Settings > Repositories”
Turn off all checkboxes, only leave the “Source Code” checked. Don’t forget to turn of the Cdrom source if you didn’t have the plan to use it.
Click on the “Third Party” tab
Enter your custom repository’s address and component. In our case the address is
deb http://mirror.oscc.org.my/ubuntu/archive edgy main
*modify the above address base on your release. We are using version 6.10 which is edgy. If you are using 6.06 change the edgy part to dapper.
Add other components universe branch also to be able to install community maintained packages
deb http://mirror.oscc.org.my/ubuntu/archive edgy universe
Optionally if you want to use restricted and multiverse packages, add the following addresses.
deb http://mirror.oscc.org.my/ubuntu/archive edgy mulitiverse
deb http://mirror.oscc.org.my/ubuntu/archive edgy restricted
You will be prompted with an repository changes warning.
Click close and click the Reload button on the Synaptic main interface to update your repositories information.
You can now install a new packages using the local repositories.
You can also add the above 4 repositories address using a single line. Use a single combined address as the example below
deb http://mirror.oscc.org.my/ubuntu/archive edgy main universe multiverse restricted