How to fix “bash: add-apt-repository: command not found” error on Ubuntu/Debian Linux

· >

Fixing “bash: add-apt-repository: command not found” Error on Ubuntu/Debian Linux

Trying to add a new repository on Ubuntu or Debian Linux but getting the error “bash: add-apt-repository: command not found”? This unfortunately happens quite often and can be frustrating. Fortunately, the fix is a relatively straightforward one and this guide will show you the steps you need to take in order to get back up and running quickly.

Installing Software-properties-common

The first step is to install the software-properties-common package. This will give you access to the repository update command “add-apt-repository” in order to be able to add a new repository to the sources list:

  • Run sudo apt-get update first
  • Run sudo apt-get install software-properties-common to install the package
  • Run sudo apt-get install python-software-properties to install the required Python module

Adding Repository

Once the above steps have been completed, you should be able to run the “add-apt-repository” command without any further issues. For example, to add the Google Chrome repository:

  • Run sudo add-apt-repository “deb http://dl.google.com/linux/chrome/deb/ stable main”
  • Run sudo apt-get update to update the repository list
  • Run sudo apt-get install google-chrome-stable to install Google Chrome


Hopefully this guide has helped you with any issues you may have had when trying to add a new repository on Ubuntu or Debian Linux. Be sure to follow the steps closely and if you have any questions feel free to get in touch.

0 0 votes
Article Rating
Notify of
Inline Feedbacks
View all comments