Results 1 to 8 of 8

Thread: add-apt-repository not working? not installed?

  1. #1
    Join Date
    Mar 2010
    Beans
    46

    add-apt-repository not working? not installed?

    So I'm running what I believe to be the latest version of Ubuntu Server Edition 10.04 Lucid Lynx.

    1. How do I find what version I'm running on the command line?

    As it is, Sun's JDK was removed so I need to add it per the release notes.

    However, following the instructions and running this command:
    Code:
    sudo add-apt-repository "deb http://archive.canonical.com/ lucid partner"
    Computer reply's with "command not found". Running a whereis on add-apt-repository, it appears it is not installed.

    2. How do I fix this?

    I'm relatively new to the Linux world and help would be much appreciated....

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

    Re: add-apt-repository not working? not installed?

    Find out the version you are running by typing the following into the terminal

    Code:
    lsb_release -a

  3. #3
    Join Date
    Mar 2010
    Beans
    46

    Re: add-apt-repository not working? not installed?

    Quote Originally Posted by howefield View Post
    Find out the version you are running by typing the following into the terminal

    Code:
    lsb_release -a
    Thanks! How do I know if I'm running a server version or not.

  4. #4
    Join Date
    Mar 2010
    Beans
    156

    Re: add-apt-repository not working? not installed?

    "sudo add-apt-repository ppa:<repository name>" this registers the ppa with APT and an entry is created in /etc/apt/sources.list and backs up to /etc/apt/sources.list.save. ff a key is required and available it is automatically downloaded and registered.

    you must have "python-software-properties" installed before using this command

  5. #5
    Join Date
    Mar 2010
    Beans
    46

    Re: add-apt-repository not working? not installed?

    Quote Originally Posted by colorlessprism View Post
    "sudo add-apt-repository ppa:<repository name>" this registers the ppa with APT and an entry is created in /etc/apt/sources.list and backs up to /etc/apt/sources.list.save. ff a key is required and available it is automatically downloaded and registered.

    you must have "python-software-properties" installed before using this command
    it worked by adding "python-software-properties", but is there a way to manually add in the partner repository. How do I do that to avoid installing the python package?

    edit: ohh, I see all it did was add the following line to the /etc/apt/sources.list file:

    Code:
    deb http://archive.canonical.com/ lucid partner
    Last edited by leesiulung; May 13th, 2010 at 09:41 PM.

  6. #6
    Join Date
    Dec 2008
    Beans
    34

    Re: add-apt-repository not working? not installed?

    I found out that one more thing is required, which was not mentioned in this thread.

    You have to have lucid. (I don't know if karmic works. I'm still at jaunty).

    In jaunty the python-software-properties package doesn't have add-apt-repository.

    In the case above, it just needed to add the line to apt/sources.list, in my case, getting the ppa signing key was useful as well....

  7. #7
    Join Date
    Dec 2005
    Beans
    30

    Re: add-apt-repository not working? not installed?

    You do not have to add the repository you can download the deb for your architecture and manually install it.

  8. #8
    Join Date
    Jul 2007
    Location
    Magic City of the Plains
    Beans
    Hidden!
    Distro
    Xubuntu Development Release

    Re: add-apt-repository not working? not installed?

    Closed, necromancy.

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
  •