Results 1 to 8 of 8

Thread: Where is add-apt-repository?

  1. #1
    Join Date
    Aug 2010
    Beans
    3

    Red face Where is add-apt-repository?

    Hi,

    I am running an Ubuntu/X64 10.04. I am trying to install bazaar from bazaar.canonical.com. The PPA of bazaar (https://launchpad.net/~bzr/+archive/ppa) page tells me to use the add-apt-repository.

    However my system doesn't have it.

    Code:
    >add-apt-repository
    bash: add-apt-repository: command not found
    
    
    > dpkg -S add-apt-repository
    dpkg: *add-apt-repository* not found.
    Some pages tell me it is in the python-software-properties. But it is not.

    Code:
    >dpkg -L python-software-properties
    /.
    /usr
    /usr/bin
    /usr/share
    /usr/share/doc
    /usr/share/doc/python-software-properties
    /usr/share/doc/python-software-properties/README
    /usr/share/doc/python-software-properties/TODO
    /usr/share/doc/python-software-properties/AUTHORS
    /usr/share/doc/python-software-properties/BUGS
    /usr/share/doc/python-software-properties/copyright
    /usr/share/doc/python-software-properties/changelog.gz
    /usr/share/pyshared
    /usr/share/pyshared/softwareproperties
    /usr/share/pyshared/softwareproperties/__init__.py
    /usr/share/pyshared/softwareproperties/AptAuth.py
    /usr/share/pyshared/softwareproperties/CountryInformation.py
    /usr/share/pyshared/softwareproperties/distro.py
    /usr/share/pyshared/softwareproperties/MirrorTest.py
    /usr/share/pyshared/softwareproperties/SoftwareProperties.py
    /usr/share/pyshared-data
    /usr/share/pyshared-data/python-software-properties
    Any help is seriously appreciated !

  2. #2
    Join Date
    Oct 2006
    Location
    Ayrshire.
    Beans
    54,784
    Distro
    Ubuntu Development Release

    Re: Where is add-apt-repository?

    Try this in terminal...

    Code:
    sudo add-apt-repository ppa:bzr/ppa

  3. #3
    Join Date
    Aug 2010
    Beans
    3

    Re: Where is add-apt-repository?

    Quote Originally Posted by howefield View Post
    Try this in terminal...

    Code:
    sudo add-apt-repository ppa:bzr/ppa
    sudo add-apt-repository ppa:bzr/ppa
    sudo: add-apt-repository: command not found

  4. #4
    Join Date
    Oct 2006
    Location
    Ayrshire.
    Beans
    54,784
    Distro
    Ubuntu Development Release

    Re: Where is add-apt-repository?

    Not sure why it wouldn't work for you assuming no typos. Seems fine for me - (see screenshot).

    You could try the "long" way...

    https://launchpad.net/~bzr/+archive/ppa

    Open a terminal (Applications > Accessories > Terminal) and type

    Code:
    gksudo gedit /etc/apt/sources.list
    Add the following to the end of the file and save...

    Code:
    deb http://ppa.launchpad.net/bzr/ppa/ubuntu lucid main 
    deb-src http://ppa.launchpad.net/bzr/ppa/ubuntu lucid main
    Then add the authentication key - copy the contents of the following webpage to a text file on your desktop.

    http://keyserver.ubuntu.com:11371/pk...02BF6B8C6C1EFD

    and go to System > Administration > Software Sources > Authentication and import the key file that you just created.

    Then reload your software sources.
    Attached Images Attached Images

  5. #5
    Join Date
    Aug 2010
    Beans
    3

    Re: Where is add-apt-repository?

    Thanks Howefeld, with your help and some more attention, I have found "my" problem.

    Thanks.

  6. #6
    Join Date
    May 2008
    Location
    Ohio, USA
    Beans
    6,905
    Distro
    Ubuntu Gnome 15.04 Vivid Vervet

    Re: Where is add-apt-repository?

    Interesting...try this:
    Code:
    sudo apt-get install --reinstall python-software-properties && sudo dpkg-reconfigure python-software-properties

  7. #7
    Join Date
    Sep 2006
    Beans
    60
    Distro
    Ubuntu 11.04 Natty Narwhal

    Re: Where is add-apt-repository?

    Quote Originally Posted by lidex View Post
    Interesting...try this:
    Code:
    sudo apt-get install --reinstall python-software-properties && sudo dpkg-reconfigure python-software-properties
    Thanks that did the trick for me. (better then having to go into /etc/apt/sources.list and manually fixing it.
    "Computers are like air conditioners, they stop working properly if you open Windows."

  8. #8
    Join Date
    Feb 2010
    Location
    Summerwind
    Beans
    12,766
    Distro
    Ubuntu Development Release

    Re: Where is add-apt-repository?

    Glad it's solved , I think you were looking for this.
    Code:
    sudo add-apt-repository ppa:bzr-explorer-dev/ppa
    “Start where you are. Use what you have. Do what you can".

    Ubuntu Documentation Search: Popular Pages
    Ubuntu: Security Basics
    Ubuntu: Manual

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
  •