방금 여기에서 Kali Linux를 다운로드했습니다.
https://images.offense-security.com/virtual-images/Kali-Linux-2017.1-vbox-i686.ova
root@kali:~# uname -a
Linux kali 4.9.0-kali3-686-pae #1 SMP Debian 4.9.18-1kali1 (2017-04-04) i686 GNU/Linux
root@kali:~#
그러나 업데이트하려고 하면 "해시 합계 불일치" 오류가 발생합니다.
비슷한 질문을 찾았습니다여기, 그러나 해결 방법은 제공되지 않습니다.
이는 동기화 중인 미러를 사용하려고 할 때 발생합니다. 그냥 기다려야 해.
root@kali:~# apt-get clean && apt-get update
Get:1 http://ftp.yzu.edu.tw/Linux/kali kali-rolling InRelease [30.5 kB]
Get:2 http://58.27.38.18/ftp.yzu.edu.tw/Linux/kali kali-rolling/main i386 Packages [15.4 MB]
Err:2 http://58.27.38.18/ftp.yzu.edu.tw/Linux/kali kali-rolling/main i386 Packages
Hash Sum mismatch
Hashes of expected file:
- Filesize:15369822 [weak]
- SHA256:96c0762f0939a8231227c72b37c38c5aa7e1e8d9df391c541e004785f235668d
- SHA1:5b6fb42e4ab12227637bcca0505f0ed7185367af [weak]
- MD5Sum:a9100c40be793e8887d3ceef98a39eea [weak]
Hashes of received file:
- SHA256:2d9eb600d3e43657577de559057912d16b643674437e2211a0785f58a621f38c
- SHA1:6398050676d6b9de57807edb20c102210de03c01 [weak]
- MD5Sum:8a5e5d7ecd4151676a9b6605627b1f86 [weak]
- Filesize:15367961 [weak]
Last modification reported: Fri, 28 Jul 2017 00:04:07 +0000
Release file created at: Sat, 29 Jul 2017 12:07:34 +0000
Get:3 http://58.27.38.18/ftp.yzu.edu.tw/Linux/kali kali-rolling/non-free i386 Packages [146 kB]
Get:4 http://58.27.38.18/ftp.yzu.edu.tw/Linux/kali kali-rolling/contrib i386 Packages [101 kB]
Fetched 15.6 MB in 14s (1,067 kB/s)
Reading package lists... Done
E: Failed to fetch http://58.27.38.18/ftp.yzu.edu.tw/Linux/kali/dists/kali-rolling/main/binary-i386/Packages.gz Hash Sum mismatch
Hashes of expected file:
- Filesize:15369822 [weak]
- SHA256:96c0762f0939a8231227c72b37c38c5aa7e1e8d9df391c541e004785f235668d
- SHA1:5b6fb42e4ab12227637bcca0505f0ed7185367af [weak]
- MD5Sum:a9100c40be793e8887d3ceef98a39eea [weak]
Hashes of received file:
- SHA256:2d9eb600d3e43657577de559057912d16b643674437e2211a0785f58a621f38c
- SHA1:6398050676d6b9de57807edb20c102210de03c01 [weak]
- MD5Sum:8a5e5d7ecd4151676a9b6605627b1f86 [weak]
- Filesize:15367961 [weak]
Last modification reported: Fri, 28 Jul 2017 00:04:07 +0000
Release file created at: Sat, 29 Jul 2017 12:07:34 +0000
E: Some index files failed to download. They have been ignored, or old ones used instead.
root@kali:~#
이건 내 sources.list
파일이야
root@kali:~# cat /etc/apt/sources.list
#
# deb cdrom:[Debian GNU/Linux 2017.1 _Kali-rolling_ - Official Snapshot i386 LIVE/INSTALL Binary 20170416-07:26]/ kali-rolling contrib main non-free
#deb cdrom:[Debian GNU/Linux 2017.1 _Kali-rolling_ - Official Snapshot i386 LIVE/INSTALL Binary 20170416-07:26]/ kali-rolling contrib main non-free
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
root@kali:~#
이 문제를 해결하는 방법을 아시나요?
답변1
다른 거울을 사용해 보세요공식 미러 목록
에 추가하세요 /etc/apt/sources.list
.
좋다:
deb http://mirrors.ocf.berkeley.edu/kali kali-rolling 무료가 아닌 주요 기여
답변2
문제가 있어서 /etc/apt/sources.list로 가서 소스 경로를 다음으로 업데이트했습니다: debhttps://http.kali.org/kali칼리 롤링 메인 비자유 기여
이 작업을 수행하면 모든 것이 문제 없이 업데이트되기 시작했습니다.