You are on page 1of 3

ubuntu_mirror_instructions [IISc Web Repository Wiki]

http://webrepo.iisc.ernet.in/wiki/doku.php/ubuntu_mirror_instructions

Using the IISc Ubuntu Mirror


These actions need to be carried out by your local system administrator. They have been tested on Ubuntu Dapper Drake, Feisty Fawn and Hardy Heron. Kubuntu users may also follow the same steps. 1. Add the IISc Local Mirror to /etc/apt/sources.list.: Add the following lines to the top of the /etc/apt/sources.list file:
deb http://webrepo.iisc.ernet.in/mirrors/ubuntu karmic main restricted universe multiverse deb http://webrepo.iisc.ernet.in/mirrors/ubuntu karmic-updates main restricted universe multiverse deb http://webrepo.iisc.ernet.in/mirrors/ubuntu karmic-security main restricted universe multiverse # the next three lines are optional deb-src http://webrepo.iisc.ernet.in/mirrors/ubuntu karmic main restricted universe multiverse deb-src http://webrepo.iisc.ernet.in/mirrors/ubuntu karmic-updates main restricted universe multiverse deb-src http://webrepo.iisc.ernet.in/mirrors/ubuntu karmic-security main restricted universe multiverse

Important: Change karmic to whichever distribution you're running: dapper, hardy, intrepid or jaunty or lucid. You can use gksudo gedit /etc/apt/sources.list to edit the sources.list file. To find what your ubuntu version's codename is, use the command

lsb_release -a

Do not remove any existing Internet repositories APT prioritizes mirrors according to their location in the sources.list file and will automatically use the local mirror first falling back to others if necessary. Note: The backports and security sections are also available. Please use them only if you know what you're doing. Source packages are also available. 2. Disable the IISc proxy for webrepo.iisc.ernet.in. NOTE: You may want to disable the proxy for all IISc pages, i.e. *.iisc.ernet.in

Synaptic
NOTE: Use

authproxy.serc.iisc.ernet.in instead of iiscproxy.serc.iisc.ernet.in.

In Settings Preferences Network:

1 of 3

07-Jun-12 5:35 PM

ubuntu_mirror_instructions [IISc Web Repository Wiki]

http://webrepo.iisc.ernet.in/wiki/doku.php/ubuntu_mirror_instructions

Update Manager
The Update Manager uses the GNOME proxy settings in System Preferences Network Proxy.

aptitude/apt-get
Create a file called

/etc/apt/apt.conf.d/00proxy with the following contents:

Acquire::http::proxy::webrepo.iisc.ernet.in "DIRECT"; Acquire::http::proxy "http://authproxy.serc.iisc.ernet.in:3128/";

Make sure

http_proxy is not set when running apt-get/aptitude.

How to verify you're using the mirror


Make sure you've updated your package list:
$ sudo aptitude update

You should've seen downloads from


$ apt-cache policy aptitude

webrepo.iisc.ernet.in scroll by. Now, you can:

2 of 3

07-Jun-12 5:35 PM

ubuntu_mirror_instructions [IISc Web Repository Wiki]

http://webrepo.iisc.ernet.in/wiki/doku.php/ubuntu_mirror_instructions

aptitude: Installed: 0.4.9-2ubuntu5 Candidate: 0.4.9-2ubuntu5 Version table: *** 0.4.9-2ubuntu5 0 500 http://webrepo.iisc.ernet.in hardy/main Packages 500 file: hardy/main Packages 500 http://in.archive.ubuntu.com hardy/main Packages 100 /var/lib/dpkg/status

The above example is from Ubuntu Hardy. Your version numbers might differ, but in the list above you should see webrepo.iisc.ernet.in above other sources for that package.

Hardy/Intrepid Users
Note: As of November 16, 2008, this section is largely maintained for reference, and the patching is no longer required. It is recommended you patch your system, however. Due to a bug [https://bugs.launchpad.net/ubuntu/+source/apt/+bug/277493] in these versions of Ubuntu, your update-manager might fail to update or you may be unable to use a package manager. We recommend you manually patch the bug.

ubuntu_mirror_instructions.txt Last modified: 2010/05/07 14:55 by 10.16.40.11

3 of 3

07-Jun-12 5:35 PM

You might also like