LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   Can't Remove apt Repository on Mint 17 (https://www.linuxquestions.org/questions/linux-newbie-8/cant-remove-apt-repository-on-mint-17-a-4175546658/)

wingman358 06-28-2015 02:30 PM

Can't Remove apt Repository on Mint 17
 
Hi all,

I can't seem to remove a repository from apt that I added earlier today:

Code:

~ $ sudo add-apt-repository -r ppa:moorkai/cinnamon

Usage: add-apt-repository [options] repository

add-apt-repository: error: no such option: -r
~ $ sudo add-apt-repository --remove ppa:moorkai/cinnamon

Usage: add-apt-repository [options] repository

add-apt-repository: error: no such option: --remove

I'm on Mint 17 x64.

Head_on_a_Stick 06-28-2015 02:41 PM

Just remove it manually:
Code:

# rm /etc/apt/sources.list.d/<name of repository>
It will probably be called "moorkai.list" or something (I don't use Mint)...

EDIT: Actually, it may be added directly to /etc/apt/sources.list -- look for these lines and comment them out (put a "#" symbol, without the quotation marks, at the start of the line):
Code:

deb http://ppa.launchpad.net/moorkai/cinnamon/ubuntu utopic main
deb-src http://ppa.launchpad.net/moorkai/cinnamon/ubuntu utopic main

Make sure you use `apt-get update` after changing your sources.

wingman358 06-28-2015 02:59 PM

Quote:

Originally Posted by Head_on_a_Stick (Post 5384137)
Just remove it manually:
Code:

# rm /etc/apt/sources.list.d/<name of repository>
It will probably be called "moorkai.list" or something (I don't use Mint)...

Perfect! That did it. Thanks! :D :D

Head_on_a_Stick 06-28-2015 03:04 PM

Excellent!

You're welcome :)


All times are GMT -5. The time now is 01:23 PM.