![]() 265950 files and directories currently installed.) Selecting previously unselected package software-properties-common. Get:1 bionic-updates/main amd64 software-properties-common all 0.96.24.32.5 The following NEW packages will be installed:Ġ upgraded, 1 newly installed, 0 to remove and 0 not upgraded.Īfter this operation, 197 kB of additional disk space will be used. ![]() The command’s output will be something like this: Reading package lists. So open a terminal and use this command: sudo apt-get install software-properties-common It’s because the add-apt-repository command is part of package software-properties-common and you need to install this package in order to install add-apt-repository. The package add-apt-repository is not installed on your system.īut if you try to use sudo apt-get install add-apt-repository, it won’t work. Fix add-apt-repository: command not found error Let’s see how to fix this annoying error. Sudo: add-apt-repository: command not found In Debian, elementary OS and sometimes on Ubuntu, you’ll see the error that the add-apt-repository command is missing. If you want to add a new PPA repository, you’ll have to use the add-apt-repository command in the following fashion: sudo add-apt-repository ppa:some/ppa One of the many ways to install software on Ubuntu or Debian is to use a PPA ( Personal Package Archive). If necessary, remove the # character at the beginning of the line: # Defaults targetpw # ask for the password of the target user i.e.This quick tutorial shows you how to quickly fix the “add-apt-repository command not found” error on Debian, Ubuntu and other Debian-based Linux distributions. Make sure that the commenting has been removed in the following lines. Open the /etc/sudoers file using the vim editor. Localhost:~ # sudo zypper install system-user-mail Localhost:~ # sudo zypper install system-group-wheel To install the packages, enter the following commands: Locate the system-group-wheel and system-user-mail packages. To assign sudo privileges to a user in Suse Linux, do the following: ![]() To check if the change was successful, enter the following command : To add the user to this group, enter the following ~]# usermod -aG sudo ~]# usermod -aG sudo jsmith To assign sudo privileges to a user in Debian and Ubuntu, you must add the user to the sudo group. To check if the change was successful, enter the following command: To add the user to this group, enter the following ~]# usermod -aG wheel ~]# usermod -aG wheel jsmith To assign sudo privileges to a user in CentOS 7, CentOS Stream 8, and CentOS Stream 9, you must add the user to the wheel group. ![]() To set the password of the new user, enter the following command: To create a new user, enter the following command: To skip entering this information, press Enter.Ĭhanging the user information for maxmustermannĮnter the new value, or press ENTER for the default Optional: Enter additional user information. To set the password of the new user, enter the following ~]# passwd ~]# passwd johnsmithĮnter the desired password and repeat it. To create a new user, enter the following ~]# adduser ~]# adduser johnsmith Log in as the root user on the desired server. CentOS 7, CentOS Stream 8, and CentOS Stream 9
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |