0

This question already has an answer here:

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

marked as duplicate by Thomas Ward, muru, Elder Geek, Seth Feb 16 '15 at 17:13

This question has been asked before and already has an answer. If those answers do not fully address your question, please ask a new question.

  • 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

Browse other questions tagged or ask your own question.