Questions tagged [add-apt-repository]

A command line utility to add and remove APT software repositories, such as PPAs. It is part of the software-properties-common package and installed in Ubuntu by default.

add-apt-repository is a python script that can be used to control APT software repositories via command line. It is generally used to add external sources such as PPAs (ppa-purge can be used to remove such sources more gracefully)

The script can append repositories to the /etc/apt/sources.list file or create a new file in the /etc/apt/sources.list.d directory. It requires root privilege.

Common usage example:

sudo apt-add-repository ppa:atareao/telegram

This creates a file, for example /etc/apt/sources.list.d/atareao-ubuntu-telegram-yakkety.list. After adding the repository, update APT:

sudo apt update

And packages from the added repository are now available and can be installed with APT:

sudo apt install telegram

related tags:

161 questions
404
votes
16 answers

How can I get a list of all repositories and PPAs from the command line into an install script?

I know how to list all packages installed on my system. But how could I get a list of all repositories and PPA's into a script that I can run on a new machine to replicate the repository setup including the keys? I know I can look into…
stwissel
  • 6,461
  • 5
  • 25
  • 25
146
votes
1 answer

How to install 'add-apt-repository' using the terminal?

I want to install: add-apt-repository ppa:ricotz/testin It is showing: The program add-apt-repository is currently not installed. You can install it by typing: sudo apt-get install python-software-properties What should I do now?
130
votes
16 answers

How do I get add-apt-repository to work through a proxy?

I'm trying to follow the "Installing Cross Toolchain on Ubuntu 10.04 (Lucid) and 10.10 (Maverick) Hosts" instructions on wiki.linaro.org (on my Ubuntu 10.04 VM). The first step is: sudo add-apt-repository ppa:linaro-maintainers/toolchain But when I…
53
votes
11 answers

How to use a .iso image as a CD-ROM Repository?

I have all images of Debian, Ubuntu and Ubuntustudio as .iso . How can I use them as repository to install my desired packages with sudo apt-get install package-name ? I easily mount the .iso file with Archive Mounter , but when adding CD-ROM in…
Alexar
  • 1,416
50
votes
2 answers

What is the difference between add-apt-repository & apt-add-repository?

Difference between add-apt-repository & apt-add-repository ?
Newbi
  • 2,219
46
votes
8 answers

ModuleNotFoundError: No module named 'apt_pkg' error

I run below command on ubuntu 16.4 : sudo add-apt-repository ppa:noobslab/apps of below question: How to install PlayOnLinux on Ubuntu 16.04 and get below error: Traceback (most recent call last): File "/usr/bin/add-apt-repository", line 11, in…
43
votes
2 answers

Difference between "ppa-purge" and "add-apt-repository -r"?

What is the main difference between ppa-purge and add-apt-repository -r . Which one better clear residual items and reason to use one over another? Does add-apt-repository -r should do what ppa-purge do? Edit: Also do both remove key from apt's…
35
votes
1 answer

Adding opencpn repository - AttributeError: 'NoneType' object has no attribute 'people'

When I try to add the opencpn repository I get the following error message: sudo add-apt-repository ppa:opencpn/opencpn Traceback (most recent call last): File "/usr/bin/add-apt-repository", line 362, in <module> sys.exit(0 if addaptrepo.main() else…
SPRBRN
  • 2,575
25
votes
1 answer

Cannot Add PPA Behind Proxy Ubuntu 14.04

I am unable to add a repository via the command line on Ubuntu 14.04. Apt-get works perfectly fine, and I am able to update the system. I have configured my /etc/apt/apt.config file as follows: Acquire::http::proxy…
bjd857
  • 303
24
votes
3 answers

Check for and remove unused PPAs

Since the installation, I have added not too few PPAs to my 15.04 system because I wanted a specific application. But sometimes I have removed that package later again, because it did not work, was not what I really wanted, or just because I don't…
24
votes
2 answers

sudo add-apt-repository hangs

I am running sudo add-apt-repository ppa:webupd8team/java in order to add the repository to install oracle jdk on my Ubuntu 18.4 machine. The command hangs and does not return. As far as I understand all this command does is to add the repository to…
a curious engineer
  • 341
  • 1
  • 2
  • 3
20
votes
3 answers

gpgkeys: key F60F4B3D7FA2AF80 not found on keyserver

How can I fix this issue? mona@pascal:~$ sudo apt-get update Ign file: InRelease Get:1 file: Release.gpg [181 B] Get:2 file: Release [196 B] Ign file: Translation-en_US Ign file: Translation-en Hit http://storage.googleapis.com stable InRelease Hit…
Mona Jalal
  • 4,695
20
votes
9 answers

Adding PPA's results in "Couldn't resolve host 'launchpad.net'"

For example, after running this command: sudo add-apt-repository ppa:tualatrix/ppa I get the following output : Traceback (most recent call last): File "/usr/bin/add-apt-repository", line 125, in <module> ppa_info = get_ppa_info_from_lp(user,…
user60660
16
votes
2 answers

Remove PPAs: "add-apt-repository --remove" vs. "rm /etc/apt/sources.list.d/???.list"

According to How can PPAs be removed? there are mainly 3 methods to get rid of a PPA: Use the add-apt-repository command: sudo add-apt-repository --remove ppa:???/??? Manually remove the .list file: sudo rm /etc/apt/sources.list.d/????.list Use…
15
votes
1 answer

apt-add-repository: Command not found

If I try something like: sudo add-apt-repository ppa:graphics-drivers/ppa it raises an error: Command not found. So I installed the repository with: apt-get install software-properties-common and it installed, however it still gives me…
Vu3L5TmD
  • 161
1
2 3
10 11