OS/Linux

[Ubuntu WSL] Ubuntu 18.04 LTS(WSL) 업데이트 시 Hash Sum mismatch 에러

1. Windows10 WSL Ubuntu 설치 후 업데이트 시 Hash Sum mismatch 에러 발생

 

Get:27 http://archive.ubuntu.com/ubuntu bionic-backports/universe amd64 Packages [4020 B]

Get:28 http://archive.ubuntu.com/ubuntu bionic-backports/universe Translation-en [1856 B]

Fetched 18.0 MB in 26s (685 kB/s)

Reading package lists... Done

E: Failed to fetch http://archive.ubuntu.com/ubuntu/dists/bionic-updates/main/binary-amd64/by-hash/SHA256/150afbc75f7714dbb250457a2a79e03623cc64e734654e7204e0b6acbc65823b Hash Sum mismatch

Hashes of expected file:

- Filesize:753324 [weak]

- SHA256:150afbc75f7714dbb250457a2a79e03623cc64e734654e7204e0b6acbc65823b

- SHA1:0c3dfa79c88f035e97b52c3299efaac6798a0be0 [weak]

- MD5Sum:694acbcd0a3e3dda6b87c0d2cabba058 [weak]

Hashes of received file:

- SHA256:21ae7a733d2ec97978a1173ef54b0e23e8b4eef3181eb4d05916830e9bd53f47

- SHA1:0be45238527076c603c66974c13613039772366f [weak]

- MD5Sum:2d5bcf07a7e90b12bf5ded586983c7c0 [weak]

- Filesize:753324 [weak]

Last modification reported: Sat, 19 Oct 2019 07:01:13 +0000

Release file created at: Sat, 19 Oct 2019 09:44:49 +0000

E: Some index files failed to download. They have been ignored, or old ones used instead.

 

2. 업데이트에 사용하는 repository를 daum(kakao)로 변경 후 업데이트를 실행하면 해결된다. 업데이트 서버의(해외) 속도가 불안정한 것이 원인이 될 수 있다고 한다.

sudo sed -i 's/archive.ubuntu.com/ftp.daum.net/g' /etc/apt/sources.list

 

3. 참조 : http://ccambo.blogspot.com/2015/02/ubuntu-apt-get-update-hash-sum-mismatch.html