Managing software on Linux systems can require executing a few command-line tools to accomplish tasks such as installing software packages, updating the system, or adding software sources. One such tool used on Debian-based systems such as Ubuntu is the "apt" package manager.
While executing administrative tasks such as adding a new software source or repository to your system, you may encounter an error saying that "sudo apt-add-repository" command is not found. If this is the case, then you might wonder what went wrong.
The reason for this error may be that the "software-properties-common" package is not installed on your system. This package contains the apt-add-repository command, among other administrative tools that can be used to manage software sources on Debian-based Linux systems.
To solve the issue, you need to first check whether the package is installed by running the following command:
sudo apt-get install software-properties-common
If the package is not installed, then the command will install it for you. Otherwise, if the package is already installed, you will receive a message saying that the package is already the latest version.
Once you have installed software-properties-common package, you can now run the "sudo apt-add-repository" command without any issues. Additionally, you can use other administrative tools that come with the package to manage your software sources.
In conclusion, if you encounter the "sudo apt-add-repository" command is not found error when managing software sources on Debian-based Linux systems, make sure to install the "software-properties-common" package. This package contains the required administrative tools to accomplish the task, and its absence may cause errors to occur.
If you are looking for How to run shell scripts with sudo command in linux, you've came to the right place. We have pictures like Ubuntu 17上的“ sudo：aptget：未找到命令” 码农俱乐部 golang中国 go语言中文社区, how to fix sudo command not found in debian 10 tutorials and how to, 9 most useful apt commands on debian, ubuntu & linux mint. Read more:
Sudo found command apt update bash linux paayi unix root. Bash sudo command not found unix & linux paayi tech. How to fix sudo command not found in debian 10 tutorials and how to. Sudo debian cloudcone. How to fix sudo command not found in debian after a new install i. Sudo found install command apt bash linux root unix. Linux sudo command help and examples