Results 1 to 6 of 6

Thread: How to add software sources with console

  1. #1
    Join Date
    Dec 2011
    Beans
    33

    How to add software sources with console

    Hi. I recently installed Ubuntu Server 11.10. But I cannot install any software using the "apt-get" command. I think that's because the software sources for my country (Bangladesh) don't really work.

    In Ubuntu 11.10 I managed to change the sources from the software center. I use Ubuntu main server as the source and it works. But how can I change the source in Ubuntu Server edition with only the command line? I am fairly new to the Linux world so please give me a step by step instruction Thanks.

  2. #2
    Join Date
    Oct 2006
    Beans
    58,282

    Re: How to add software sources with console

    The path to your sources.list is /etc/apt/sources.list so use your favourite text editor to open it up and amend as required.

    Code:
    sudo nano /etc/apt/sources.list
    See also : https://help.ubuntu.com/community/Re...es/CommandLine

  3. #3
    Join Date
    Dec 2011
    Beans
    33

    Re: How to add software sources with console

    Quote Originally Posted by howefield View Post
    The path to your sources.list is /etc/apt/sources.list so use your favourite text editor to open it up and amend as required.

    Code:
    sudo nano /etc/apt/sources.list
    See also : https://help.ubuntu.com/community/Re...es/CommandLine
    Thanks. But what is the exact line I need to add for the Ubuntu main server repository?
    Ok I have found another way. As the source.list file in my normal Ubuntu is working fine, I will just copy this file and replace the one in the Ubuntu Server. This should work, right?

  4. #4
    Join Date
    Nov 2010
    Location
    India
    Beans
    Hidden!

    Re: How to add software sources with console

    http://repogen.simplylinux.ch/

    please look at that may be it could help you .

    all the best .
    Dont miss anything even it is small. one small pin is enough to bring down a man.


  5. #5
    Join Date
    Dec 2011
    Beans
    33

    Re: How to add software sources with console

    Quote Originally Posted by raja.genupula View Post
    http://repogen.simplylinux.ch/

    please look at that may be it could help you .

    all the best .
    Superb! Thanks a lot

  6. #6
    Join Date
    Nov 2010
    Location
    India
    Beans
    Hidden!

    Re: How to add software sources with console

    Welcome man
    Dont miss anything even it is small. one small pin is enough to bring down a man.


Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •