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.

When I tried to install additional drivers in Ubuntu 12.02 via terminal,I got this error message:

sudo add-apt-repository ppa:ubuntu-x-swat/x-updates sudo apt-get update sudo apt-get install nvidia-current [sudo] password for reidsr: Error: need a repository as argument

Can anyone tell me what's wrong?

                      Reidar
share|improve this question

1 Answer 1

I think the error is to run all commands together (Like a single command).
Please try to run first...

sudo add-apt-repository ppa:ubuntu-x-swat/x-updates

Then hit Enter to add the repository, and finally run the...

sudo apt-get update && sudo apt-get install *Pkg to install*

The && will execute commands in series, and only if the first things return success.

Kind Regards.

share|improve this answer

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.