Monday, December 18, 2017

Ubuntu remove error repository from apt update

When you add a repository URL that doesn't work and later when you do 'sudo apt-get update' and it starts throwing errors; use the below command to remove it.

sudo add-apt-repository --remove <url>

Replace the <url> with error repo URL.

Ex: sudo add-apt-repository --remove http://ppa.launchpad.net/ondrej/mysql-5.6/ubuntu

Happy Coding!

No comments:

Post a Comment