I have Kali Linux on a virtual machine and I can't get updates with apt-get update it shows me this error:
E: The repository 'http://http.kali.org/kali kali 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 kali/updates 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.So i think the problem is in my sources.list because all the search i have done tells me that, however, the command cat /etc/apt/sources.list gives me:
deb http://http.kali.org/kali kali main non-free contribdeb-src http://http.kali.org/kali kali main non-free contribdeb http://security.kali.org/kali-security kali/updates main contrib non-freeWhich I tried to add but didn't fix it.
Also when I used the upgrade command it upgraded most of the packages except some that i had to do apt-get upgrade --fix-missing to get them upgraded I don't know if that is important.
Hit:1 http://dl.google.com/linux/chrome/deb stable InReleaseIgn:2 http://http.kali.org/kali kali InRelease Hit:3 http://deb.i2p2.no unstable InRelease Ign:4 http://security.kali.org/kali-security kali/updates InReleaseErr:5 http://http.kali.org/kali kali Release 404 Not Found [IP: 192.99.200.113 80]Err:6 http://security.kali.org/kali-security kali/updates Release 404 Not Found [IP: 192.99.200.113 80]Reading package lists... DoneE: The repository 'http://http.kali.org/kali kali 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 kali/updates 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.This is the full respond i get from the command apt-get updateso how do i get the update.
Thanks in advance.
EDIT: so i figured i had to change the sources.list file to this
deb http://http.kali.org/kali kali-rolling main non-free contrib
deb-src http://http.kali.org/kali kali-rolling main non-free contrib
Now it loads for a little while and when its finished it shows another error which is:
Failed to fetch http://kali.download/kali/dists/kali-rolling/main/source/Sources.gz Hash Sum mismatch
Hashes of expected file:
- Filesize:13004030 [weak]
- SHA256:41813ef30e9aff9f1d3e47c3e62db97e78671cca6efcf94c345e01e89f3ca132
- SHA1:df027e74f6b9ccadd465fc033d2e4ebd35ef86c9 [weak]
- MD5Sum:6246a24e60032c03892879386e9961ff [weak]Hashes of received file:
- SHA256:c58d9f5cb4e81fd866b7099e39cc49cb7f0f61a09ed332be8926d0a7b64dac98
- SHA1:0f9aa18fcca3c7f44bde6a3acb85a1ce0c64bd93 [weak]
- MD5Sum:129dff3ad7bfbd82cea9021295c98d37 [weak]
- Filesize:13004030 [weak]Last modification reported: Mon, 15 Jun 2020 00:05:53 +0000Release file created at: Mon, 15 Jun 2020 00:06:41 +0000
E: Some index files failed to download. They have been ignored, or old ones used instead.
And by the way it downloads the same file again when I try apt-get update
What to do now?