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

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?

share|improve this question

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


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.