Whenever I do `sudo apt update`, I get the following response:

```
Ign:1 http://ppa.launchpad.net/elementary-os/stable/ubuntu loki InRelease
Hit:2 http://in.archive.ubuntu.com/ubuntu xenial InRelease                                                                                      
Get:3 http://security.ubuntu.com/ubuntu xenial-security InRelease [102 kB]                                                                                               
Ign:4 http://ppa.launchpad.net/elementary-os/os-patches/ubuntu loki InRelease                                                                                            
Get:5 http://in.archive.ubuntu.com/ubuntu xenial-updates InRelease [102 kB]                                                
Ign:6 http://http.kali.org/kali loki InRelease                                                                                       
Ign:7 http://security.kali.org/kali-security loki InRelease                                                                          
Err:8 http://ppa.launchpad.net/elementary-os/stable/ubuntu loki Release                                         
  404  Not Found
Err:9 http://ppa.launchpad.net/elementary-os/os-patches/ubuntu loki Release                                     
  404  Not Found
Err:10 http://http.kali.org/kali loki Release                                                                   
  404  Not Found
Err:11 http://security.kali.org/kali-security loki Release                                              
  404  Not Found
Get:12 http://in.archive.ubuntu.com/ubuntu xenial-backports InRelease [102 kB]    
Reading package lists... Done      
E: The repository 'http://ppa.launchpad.net/elementary-os/stable/ubuntu loki 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://ppa.launchpad.net/elementary-os/os-patches/ubuntu loki 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://http.kali.org/kali loki 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.kali.org/kali-security loki 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.

```

I'm able to do `sudo apt upgrade` and everything seems to work fine but this bugs me a lot.

I found similar questions in the forum but nothing with this exact issue.

I thought this [answer](https://elementaryos.stackexchange.com/a/7830/11882) would solve the issue for me but there are no `ubuntu/dists/loki` in my `/etc/apt/sources.list` to replace with `ubuntu/dists/xenial`.

How can this be resolved?