24

When I went to install aptik, I tried to add the PPA in the terminal as I normally do with:

sudo apt-add-repository ppa:teejee2008/ppa

But I get the message:

sudo: apt-add-repository: command not found

Undeterred, I downloaded the .deb file and used gdebi (downloaded from the new Software Center) to install it, which it did fine.

But when I open Aptik from the Applications menu, it gives me the following error (see picture).

alert: command not available: add-apt-repository

What can I do? This is a show stopper for me if I can't add a PPA to restore my backup.

37

As far as I know it is intentional from the eOS team. I also had such issues in Loki beta. In order to add PPAs run the following in the terminal

sudo apt install software-properties-common
  • I installed this via the Software Center as Software & Updates, and now I can add ppas! Thanks!! Should I disable all updates? I don't want it pulling down updates that will break my system. – kingogames Sep 9 '16 at 19:03
  • 2
    This was an intentional change by the elementary team IIRC to prevent adding PPAs. Don't disable updates - this is normal and you'll be fine – Crutchcorn Sep 9 '16 at 19:16
  • 3
    @kingogames remember to mark this answer as accepted if it solved your issue. – Gabriel Sep 10 '16 at 2:48
  • @dan Do you know why they disabled? – Anand Kumar Mar 1 '17 at 6:34
  • 1
    This has been a fairly common practice in multiple modern distros as it helps avoid unintentional package injection by default. – Samuel Jun 13 '17 at 14:33
5

The following should install the tool to add apt repositories. Remember that elementary doesn't support or secure these, so they are entirely at your own risk.

sudo apt install software-properties-common python3-software-properties python-software-properties
2

You can also just install "Software & Updates" from the app center.

-1

Make sure to run sudo apt-get update first I had to do this for the software properties to work

protected by Hasan Apr 17 at 19:47

Thank you for your interest in this question. Because it has attracted low-quality or spam answers that had to be removed, posting an answer now requires 10 reputation on this site (the association bonus does not count).

Would you like to answer one of these unanswered questions instead?

Not the answer you're looking for? Browse other questions tagged or ask your own question.