Menu Close

sudo: add-apt-repository: command not found

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.

0 0 votes
Article Rating
Subscribe
Notify of
guest
0 Comments
Inline Feedbacks
View all comments
0
Would love your thoughts, please comment.x
()
x