Thursday, October 16, 2025
HomeGuest BlogsInstall add-apt-repository on Ubuntu 22.04|20.04|18.04|16.04

Install add-apt-repository on Ubuntu 22.04|20.04|18.04|16.04

.tdi_3.td-a-rec{text-align:center}.tdi_3 .td-element-style{z-index:-1}.tdi_3.td-a-rec-img{text-align:left}.tdi_3.td-a-rec-img img{margin:0 auto 0 0}@media(max-width:767px){.tdi_3.td-a-rec-img{text-align:center}}

If you have a minimal installation of Ubuntu 22.04|20.04|18.04|16.04, chances are you may not have commandadd-apt-repository present in your system. If you get the error “add-apt-repository command not found” while trying to add PPA repository, you’ll need to install add-apt-repository

For those new to Debian package management, add-apt-repository is a command line tool used for adding Personal Package Archive (PPA ) in Debian family Linux distributions.

install add apt repository debian ubuntu

Install add-apt-repository on Ubuntu 22.04/20.04/18.04/16.04

If your system is missing add-apt-repository command, install the software-properties-common package by running the following command in your terminal:

.tdi_2.td-a-rec{text-align:center}.tdi_2 .td-element-style{z-index:-1}.tdi_2.td-a-rec-img{text-align:left}.tdi_2.td-a-rec-img img{margin:0 auto 0 0}@media(max-width:767px){.tdi_2.td-a-rec-img{text-align:center}}
sudo apt update
sudo apt -y install software-properties-common dirmngr apt-transport-https lsb-release ca-certificates

You can now add PPA repository with the syntax:

sudo add-apt-repository ppa:<PPA Name>

The example below add PHP PPA repository

sudo add-apt-repository ppa:ondrej/php

If you get an error message “codeDecodeError: ‘ascii’ codec can’t decode byte 0xc5”, set Locale before running the add-apt-repositorycommand:

sudo LC_ALL=C.UTF-8 add-apt-repository ppa:ondrej/php

Once the PPA repository is added, update the package list and install your new package from the repository.

sudo apt update
sudo apt install <package>

That’s all. Enjoy using add-apt-repository on your Ubuntu or Debian system.

Recommended Linux Books  to read:

More guides:

.tdi_4.td-a-rec{text-align:center}.tdi_4 .td-element-style{z-index:-1}.tdi_4.td-a-rec-img{text-align:left}.tdi_4.td-a-rec-img img{margin:0 auto 0 0}@media(max-width:767px){.tdi_4.td-a-rec-img{text-align:center}}
Dominic
Dominichttp://wardslaus.com
infosec,malicious & dos attacks generator, boot rom exploit philanthropist , wild hacker , game developer,
RELATED ARTICLES

Most Popular

Dominic
32361 POSTS0 COMMENTS
Milvus
88 POSTS0 COMMENTS
Nango Kala
6728 POSTS0 COMMENTS
Nicole Veronica
11892 POSTS0 COMMENTS
Nokonwaba Nkukhwana
11953 POSTS0 COMMENTS
Shaida Kate Naidoo
6852 POSTS0 COMMENTS
Ted Musemwa
7113 POSTS0 COMMENTS
Thapelo Manthata
6805 POSTS0 COMMENTS
Umr Jansen
6801 POSTS0 COMMENTS