Be free…. be yourself with Linux.

Ubuntu Repository

When the first time I used Ubuntu, I always thought why Ubuntu has Repository.

Then finally, I realized what a good thinking to provide a function like this in an Operating System.

I think, the most advantages are

save your time when you re-install your OS.

you can make an update all your clients in a LAN by pointing their’s repository to a server.

In Ubuntu, the repository file is located at:

/etc/apt/sources.list

You can modify it with gedit or vim, such as:

$sudo gedit /etc/apt/sources.list

Before you make any changes a configuration file in Linux, always make as a habit to back up the configuration. Just do as below:

$cd /etc/apt

$sudo mv sources.list sources.list.bak

or you can do like this:

$sudo mv /etc/apt/sources.list /etc/apt/sources.list.bak

Usually, I disable the repository source that I don’t need for the moment with character ‘#’. It’s very easy, just put the ‘#’ in front of ‘deb’. I suggest do not delete it because may be you need next time.