$ sudo apt update && sudo apt upgrade -y
Hit:1 focal InRelease
Hit:2 focal-updates InRelease
Hit:3 focal-backports InRelease
Hit:4 focal InRelease
Hit:5 focal-pgdg InRelease
Hit:6 focal-security InRelease
Hit:7 focal InRelease
Hit:8 stable InRelease
Hit:9 focal InRelease
Hit:10 focal InRelease
Hit:11 focal InRelease
Hit:12 focal InRelease
Hit:13 focal InRelease
Ign:14 focal InRelease
Err:15 focal Release 404 Not Found [IP: 91.189.95.85 80]
Reading package lists... Done
E: The repository ' focal Release' does not have a Release file.
N: Updating from such a repository can't be done securely, and is therefore disabled by default.
N: See apt-secure(8) manpage for repository creation and user configuration details.Whenever I try to do sudo apt update it gives me this error and exits, I don't remember the way in which I installed sublime text throught terminal as it was 2 weeks ago, is there a way to solve this
I followed this tutorial to download sublime text from this heading
Installing Sublime Text on Linux Mint /Ubuntu– The Better Method
I also tried uninstalling it but that didn't work
$ sudo snap remove sublime-text
sublime-text removed`
11 Answer
Remove the outdated PPA
The webupd8 PPA has not been updated since 2018, and does not support Ubuntu 20.04.
Remove it with
sudo add-apt-repository --remove ppa:webupd8team/sublime-text-2Install Sublime Text 4 from its official repository
The instructions for Installing sublime text can be found at its website.
First, install the GPG key:
wget -qO - | sudo apt-key add -Then enable https sources in apt
sudo apt-get install apt-transport-httpsFor the stable version, enter the command
echo "deb apt/stable/" | sudo tee /etc/apt/sources.list.d/sublime-text.listUpdate apt index and install Sublime Text
sudo apt update
sudo apt install sublime-text 3