2

I am trying to add a repository in Ubuntu Mate using this command-

sudo apt-get-repository "****************(repository name)"

But i am having this output-

sudo: apt-get-repository: command not found

I have tried this-

sudo apt-get install software-properties-common python-software-properties

and also this-

sudo apt-get install software-properties-common

But still getting same command not found output.

What is the reason behind this? And also how can i solve this?

2
  • have you tried to update your repository? like sudo apt-get update Commented Oct 21, 2015 at 10:41
  • I have updated with sudo apt-get update a few minutes ago. It is updated. Commented Oct 21, 2015 at 10:44

1 Answer 1

2

Perhaps you should try

sudo add-apt-repository "(repository name)"

Sign up to request clarification or add additional context in comments.

5 Comments

Thank you, it has worked. :) Any reason behind my previous command didn't work?
Perhaps, because you have used the wrong command ?You used sudo apt-get-repository instead of add-apt-repository
oops, sorry i didn't see that. It was a typo. Got habituated in apt-get for a while.
Thank you. Searched for a while before I found something that worked in liue of sudo add-apt on its own
Thanks @BenjaminGuttmann , Even 8 years in the future it seems people (like me) just can't read :-)

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.