I am trying to update the apt source. I am getting the following error. How to fix it?
sudo apt-get update
Hit:1 https://download.gocd.org InRelease
Ign:2 http://dl.google.com/linux/chrome/deb stable InRelease
Hit:3 http://dl.google.com/linux/chrome/deb stable Release
Hit:4 http://ppa.launchpad.net/ansible/ansible/ubuntu cosmic InRelease
404 Not Found [IP: 147.75.85.69 80]
Err:16 http://us.archive.ubuntu.com/ubuntu cosmic-updates Release
404 Not Found [IP: 91.189.91.38 80]
Reading package lists... Done
E: The repository 'http://apt.postgresql.org/pub/repos/apt cosmic-pgdg 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.
E: The repository 'http://security.ubuntu.com/ubuntu cosmic-security 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.
E: The repository 'http://us.archive.ubuntu.com/ubuntu cosmic Release' does not have a Release file.
linux@bheemesh:~/Downloads$**