Change the Mirror Repository of Ubuntu

Recently, I installed the new version of Ubuntu: 11.10 (Oneiric Ocelot) in my desktop to take its taste. But I am having some problems when updating the OS. Our local repository was not up to date. So, I started googling and found a list of repositories. Chose a up to date repository and update my OS from that mirror repository. Now I am sharing the process here.

First you will have to take the backup of current repository.  Open the terminal and type the following command.

sudo cp  /etc/apt/sources.list /etc/apt/sources.list_backup

Then go to the link: and choose any up to date repository.

Suppose you chose the repository: and want to replace with the current one: Now, open the terminal and type . .

gksudo gedit  /etc/apt/sources.list

Sources.list will be pop up. Now type Ctrl + h and fill up the Search for and Replace with. Click the Replace All. Done 🙂

Now update the sources.list. So, type

sudo apt-get update

To update the OS, type following command

sudo apt-get upgrade

This post is totally for beginner Ubuntu user. Hope, beginner will enjoy it 🙂

Just Additional Information:
If you use the old version of Ubuntu, which is very unlikely, Ubuntu also has support for old releases.

Just change your repository settings to and enjoy freedom. and enjoy you freedom.


Eftakhairul Islam

Hi, I'm Eftakhairul Islam, a passionate Software Engineer, Hacker and Open Source Enthusiast. I enjoy writing about technical things, work in a couple of startup as a technical advisor and in my spare time, I contribute a lot of open source projects.


One thought on “Change the Mirror Repository of Ubuntu

Leave a Reply

Your email address will not be published. Required fields are marked *


Read previous post:
Offline installation of Zend framework on Ubuntu or Linux Mint

I am writing this post because I fell in problem with my newly installed Linux PC at slow Internet connection....