0
root@modsmy:~# add-apt-repository ppa:webupd8team/java
-bash: add-apt-repository: command not found

I got this error when I type the following:

add-apt-repository ppa:webupd8team/java

heemayl
  • 91,753
  • 1
    sudo the command, as it needs root privileges! – Byte Commander Feb 16 '15 at 17:07
  • @ByteCommander The user is running these commands as the root user.. – Seth Feb 16 '15 at 17:14
  • 2
    @Seth Oh sorry. Did not look at the username. I expected that people finally stopped logging into root for security reasons, but does not seem so... :-( – Byte Commander Feb 16 '15 at 17:19
  • @ByteCommande so how to get root privileges ? P.S. I'm on vps – Smygolas Feb 16 '15 at 18:04
  • modsmy@modsmy:~$ sudo apt-add-repository ppa:webupd8team/java [sudo] password for modsmy: sudo: apt-add-repository: command not found same sh*t – Smygolas Feb 16 '15 at 18:27
  • Sorry, as you are already logged in as root, you don't have to use sudo (which runs a single command as root). I did not see this when I wrote my first comment. But anyway, enabling and using the root-account is not recommended, because it is a security problem, intruders immediately get full control over the machine without even having to think about a password. Therefore people should usually disable their root accounts (default on downloaded Ubuntu) and use sudo instead to administrate their machine. – Byte Commander Feb 17 '15 at 08:17

0 Answers0