Take the 2-minute tour ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

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.

Example:

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
add comment

1 Answer

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
add comment

Your Answer

 
discard

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.