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
    Location
    Ayrshire
    Beans
    39,669
    Distro
    Ubuntu Development Release

    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
    4,821
    Distro
    Ubuntu Development Release

    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 .
    Raja

    రాజ శేఖర్ రెడ్డి

  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
    4,821
    Distro
    Ubuntu Development Release

    Re: How to add software sources with console

    Welcome man
    Raja

    రాజ శేఖర్ రెడ్డి

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
  •