0

I must have a package repository listed that I can't reach and get the following error when I run apt-get update:

Failed to fetch https://<my.favorite.cran.mirror>/bin/linux/ubuntu/trusty/Packages  Could not resolve host: <my.favorite.cran.mirror>

But I don't know how to remove it because it is not in my software sources list when I open up the Ubuntu Software Center. Is there a way to remove this with the terminal?

The Nightman
  • 281
  • 4
  • 14
  • 1
    Possible duplicate of [How can PPAs be removed?](http://askubuntu.com/questions/307/how-can-ppas-be-removed) – Florian Diesch Jan 28 '16 at 18:38
  • Possible duplicate of [How do I remove a repository from the terminal?](http://askubuntu.com/questions/36142/how-do-i-remove-a-repository-from-the-terminal) – Braiam Jan 31 '16 at 14:18

1 Answers1

1

To remove the specific PPA, type:

 sudo add-apt-repository --remove ppa:thenameoftheppa/ppa

Then, update it with:

 sudo apt-get update

This removes the PPA permanently and if you were to install it again, you'd have to use the code like you haven't installed it.