1 the best way deleted source list file – remove repository ubuntu
a. view the source list
ls /etc/apt/sources.list.d
b. identify the repository source
rm certbot-ubuntu-certbot-focal.list
remove the repository file
sudo rm /etc/apt/sources.list.d/certbot-ubuntu-certbot-focal.list
2nd way Remove a PPA using APT in the terminal – remove repository ubuntu
sudo add-apt-repository –remove ppa:PPA_Name/ppa
example
sudo add-apt-repository –remove ppa:certbot/certbot
3rd using ppa purge package – remove repository ubuntu
1st install the package
sudo apt-get install ppa-purge
sudo ppa-purge ppa-url
ppa url can be found in /etc/apt/sourcelist.d/
4th the old way GUI Winscp
ubuntu desktop:
software updates
and removed the selected repository.
ubuntu server:
winscp for filezilla sftp client
go source list and remove the url or file.
example: – remove repository ubuntu
### THIS FILE IS AUTOMATICALLY CONFIGURED ###
# You may comment out entries below, but any other modifications may be lost.
# Use command ‘dpkg-reconfigure mysql-apt-config’ as root for modifications.
deb http://repo.mysql.com/apt/ubuntu/ focal mysql-apt-config
deb http://repo.mysql.com/apt/ubuntu/ focal mysql-8.0
deb http://repo.mysql.com/apt/ubuntu/ focal mysql-tools
# deb http://repo.mysql.com/apt/ubuntu/ focal mysql-tools-preview
deb-src http://repo.mysql.com/apt/ubuntu/ focal mysql-8.0