Ask Ubuntu is a question and answer site for Ubuntu users and developers. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

i am kind of new in Linux, and i am using kubuntu and i keep getting this error when installing a package in terminal, i tried java, openshot, any ppa package and i keep getting "Error: nedd a repository as argument". I would appreciate if someone could help me.


kristyano1987@kristyano1987-PC:~$ sudo add-apt-repository ppa:ferramroberto/javasudo apt-get updatesudo apt-get install sun-java6-jre sun-java6-plugin sun-java6-fonts
Error: need a repository as argument"
share|improve this question

No wonder, you're running the commands in a wrong way. It must be executed in multiple lines or at least with && separating the commands.

The correct sequence of commands would be:

sudo add-apt-repository ppa:ferramroberto/java
sudo apt-get update
sudo apt-get install sun-java6-jre sun-java6-plugin sun-java6-fonts
share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.