Notifications
Clear all

[Solved] Ubuntu -bash: add-apt-repository: command not found  

  RSS

Tharindu
(@tharindu)
Admin
Joined: 6 years ago
Posts: 233
08/05/2020 9:40 am  

The error -bash: add-apt-repository: command not found is very common on Ubuntu 18.04 and Ubuntu 16.04. The error is occurring on minimal versions of the above mentioned operating systems. This is due to a mission dependency. The error doesn't seems to be occurring on any of my recommended VPS providers as the dependency is pre-installed on even on the minimal OS server.

 

However can simply fix the error by installing software-properties-common package. Following command should do it,

apt install software-properties-common

Update apt cache,

apt update

Now you can the repository you were trying to add. I came across this error while configuring a server for a client. I was hired to install CPVLab Pro with Virtualmin and Nginx on Ubuntu 18.04.

Become a vpsfix.com affiliate and earn up to 10% commissions from your referrals


Quote
Topic Tags
Share:
Back to top button

We use cookies to give you the best online experience. By agreeing you accept the use of cookies in accordance with our cookie policy.

Close