18

I was following an old tutorial and did an apt-get installed a repository (I think that's what it was) I am no ubuntu guru. Turns out that repo no longer exists, and when I now do an apt-get update I get this:

W: Failed to fetch http://ppa.launchpad.net/colingille/freshlight/ubuntu/dists/wily/main/binary-i386/Packages  404  Not Found

I tried the usual

sudo rm /var/lib/apt/lists/* -vf

but no luck. Where is the list that stores all the repos that i added myself? How do I get rid of this?

micheal65536
  • 798
  • 6
  • 13
mmaceachran
  • 443
  • 2
  • 8
  • 19
  • That PPA doesn't support 15.10 (or anything newer than 13.10, for that matter). Remove it. – muru Feb 03 '16 at 07:32

1 Answers1

40

The command to remove an apt repository is apt-add-repository with the -r option which will remove instead of add the repository. So in your case, the full command would be:

sudo add-apt-repository -r ppa:colingille/freshlight

The other option is to look in /etc/apt/sources.list and /etc/apt/sources.list.d/ and remove it from there.

Eliah Kagan
  • 116,445
  • 54
  • 318
  • 493
micheal65536
  • 798
  • 6
  • 13
  • While you are correct about removing the PPA, it is recommended to include how to do it based on the question rather than just vague generic instructions, the ppa was given in the question and is easy to find with Google, for now I have edited it in for you so you can see what I mean. – Mark Kirby Feb 03 '16 at 08:56
  • I was wanting to explain specifically how to remove the PPA, but despite performing a google search I was unable to find the "ppa:" line that corresponded to the URL in his log. – micheal65536 Feb 03 '16 at 14:27
  • 1
    It is OK I added it for you, I understand they are tricky to find. – Mark Kirby Feb 03 '16 at 15:59
  • _"The other option is to look in /etc/apt/sources.list and /etc/apt/sources.list.d/ and remove it from there."_ How exactly? – Pedro A Mar 10 '23 at 03:14
  • /etc/apt/sources.list and /etc/apt/sources.list.d/ , this one worked for me, Pedro A, open a terminal, then * $ cd /etc/apt/sources.list * then * $ ls * then it will show list of folders, them remove the one you want * $ sudo rm repository.file * – Vince Banzon Mar 27 '23 at 16:40