I keep getting such errors: None of these work for me guys, I've tried to change the sources in the sources.list files by enabling one, disabling the other and still no avail, I even tried to connect to the internet using wired instead of wifi. My terminal spits out an error as such:
root@kali:~# apt-get update
Get:1 http://ftp.yzu.edu.tw/Linux/kali kali-rolling InRelease [30.5 kB]
Get:2 http://103.1.138.146/ftp.yzu.edu.tw/Linux/kali kali-rolling/main amd64 Packages [16.3 MB]
Err:2 http://103.1.138.146/ftp.yzu.edu.tw/Linux/kali kali-rolling/main amd64 Packages
File has unexpected size (16219097 != 16303971). Mirror sync in progress? [IP: 103.1.138.146 80]
Hashes of expected file:
- Filesize:16303971 [weak]
- SHA256:bfa154b8fd021b85e9992a7a34ea14543edce6136589d8c7e276d46bf967a294
- SHA1:e91a121dc124b0bafe6acfc01a0e2aad5fe565d4 [weak]
- MD5Sum:4bd6e27fe0196c2d53a55bdcd1cf8e06 [weak]
Release file created at: Sat, 18 Aug 2018 12:04:29 +0000
Reading package lists... Done
E: Failed to fetch http://103.1.138.146/ftp.yzu.edu.tw/Linux/kali/dists/kali-rolling/main/binary-amd64/Packages.gz File has unexpected size (16219097 != 16303971). Mirror sync in progress? [IP: 103.1.138.146 80]
Hashes of expected file:
- Filesize:16303971 [weak]
- SHA256:bfa154b8fd021b85e9992a7a34ea14543edce6136589d8c7e276d46bf967a294
- SHA1:e91a121dc124b0bafe6acfc01a0e2aad5fe565d4 [weak]
- MD5Sum:4bd6e27fe0196c2d53a55bdcd1cf8e06 [weak]
Release file created at: Sat, 18 Aug 2018 12:04:29 +0000
E: Failed to fetch http://103.1.138.146/ftp.yzu.edu.tw/Linux/kali/dists/kali-rolling/non-free/binary-amd64/Packages.gz
E: Failed to fetch http://103.1.138.146/ftp.yzu.edu.tw/Linux/kali/dists/kali-rolling/contrib/binary-amd64/Packages.gz
E: Some index files failed to download. They have been ignored, or old ones used instead.
Would appreciate any help!
there are multiple things that causes that problem: 1.) your PC or Laptop i not connected to your router or can't access it (try to ping google.co) 2.) your source list is empty (can i see your source list)
edit:
this are my last solution
1.) Theres a Problem just like you in this link: https://unix.stackexchange.com/questions/429729/apt-get-update-error-in-kali-linux-after-dist-upgrade
2.) here's what i found on youtube: https://www.youtube.com/watch?v=dxdky8gtocc
if this will not work then i don't have further solution to give you sorry