First, I encountered the error below when trying to install new packages.
sudo apt-get install mpack
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
Suggested packages:
mail-transport-agent inews
The following NEW packages will be installed:
mpack
0 upgraded, 1 newly installed, 0 to remove and 0 not upgraded.
Need to get 36.4 kB of archives.
After this operation, 93.2 kB of additional disk space will be used.
Err:1 http://http.kali.org/kali kali-rolling/main amd64 mpack amd64 1.6-8.2
404 Not Found [IP: 192.99.200.113 80]
E: Failed to fetch http://http.kali.org/kali/pool/main/m/mpack/mpack_1.6-8.2_amd64.deb 404 Not Found [IP: 192.99.200.113 80]
This is just one example from many packages I'd tried to install. They all failed with the same error (fetching old-non-existent package version)
I noticed that the error said that I could not access to "http://http.kali.org/kali/pool/main/m/mpack/mpack_1.6-8.2_amd64.deb" (on the last line)
So, I tried to access the URL directly on the browser and got 404 not found. What I did next was I went back one step on the URL, so I went to "http://http.kali.org/kali/pool/main/m/mpack/" and found that there was no this "mpack_1.6-8.2_amd64.deb" version. The file that my kali should fetch is "mpack_1.6-17_amd64.deb" (it is there on the mpack path)
I confirm that I have a correct sources.list file and did run the apt update.
my sources.list contains these 2 lines which should be correct and should not be the problem here.
deb http://http.kali.org/kali kali-rolling main non-free contrib
deb-src http://http.kali.org/kali kali-rolling main contrib non-free
The commands that I ran so many times are:
apt update
apt-get update
sudo apt update
sudo apt-get update
So I was so confused why my kali still keeps fetching the old package that it does not exist, and throws the error 404 not found to me?
Or has anybody encountered the same problem?
sudo apt update
result:
$ sudo apt update
Get:1 http://mirror.kku.ac.th/kali kali-rolling InRelease [30.5 kB]
Get:2 http://mirror.kku.ac.th/kali kali-rolling/non-free Sources [135 kB]
Get:3 http://mirror.kku.ac.th/kali kali-rolling/main Sources [12.7 MB]
Get:4 http://mirror.kku.ac.th/kali kali-rolling/contrib Sources [63.7 kB]
Get:5 http://mirror.kku.ac.th/kali kali-rolling/main amd64 Packages [17.1 MB]
Get:6 http://mirror.kku.ac.th/kali kali-rolling/main amd64 Contents (deb) [36.3 MB]
Get:7 http://mirror.kku.ac.th/kali kali-rolling/contrib amd64 Packages [105 kB]
Get:8 http://mirror.kku.ac.th/kali kali-rolling/contrib amd64 Contents (deb) [105 kB]
Get:9 http://mirror.kku.ac.th/kali kali-rolling/non-free amd64 Packages [188 kB]
Get:10 http://mirror.kku.ac.th/kali kali-rolling/non-free amd64 Contents (deb) [911 kB]
Fetched 67.7 MB in 8s (8,332 kB/s)
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
All packages are up to date.
apt-get update
?