Menu Close

sudo: add-apt-repository: command not found

Considering donating if you found my post helpful 😊

Buy Me a Coffee QR Code

You can install packages on your Ubuntu in many ways. One of them is by using PPA (Personal Package Archive).

Problem descriptions

If you want to add a new PPA repository you will need to use command such as

$ sudo add-apt-repository ppa:ondrej/nginx-mainline

Sometimes on a new fresh installed system, you will get error such as

sudo: add-apt-repository: command not found

What this means is, you don’t have the required package to run that command.

Solution

The solution is so easy

$ sudo apt-get install software-properties-common

And you are good to go.

Considering donating if you found my post helpful 😊

Buy Me a Coffee QR Code
0 0 votes
Article Rating
Subscribe
Notify of
guest
0 Comments
Oldest
Newest Most Voted
Inline Feedbacks
View all comments
0
Would love your thoughts, please comment.x
()
x