Failed to fetch …… Hash Sum mismatch

By | 2024년 9월 2일
Table of Contents

Failed to fetch …… Hash Sum mismatch

이따금 아래와 같은 오류가 발생할 때가 있다.

E: Failed to fetch http://kr.archive.ubuntu.com/ubuntu/dists/focal-updates/main/binary-amd64/by-hash/SHA256/5e313425a49903be74217fccf4cd6da8143d1f995b49c86c8c706821a0a9c72c  Hash Sum mismatch
   Hashes of expected file:
    - Filesize:3533544 [weak]
    - SHA256:5e313425a49903be74217fccf4cd6da8143d1f995b49c86c8c706821a0a9c72c
    - SHA1:e9ba77d9bcb45c007a6fae947b77166ab849e6bf [weak]
    - MD5Sum:71a7b90205696b16d624f8dd2fbc2aba [weak]
   Hashes of received file:
    - SHA256:e6cb9cc2b547a5b15bca4f5fdaa663021c40ac0d8016e4c75ac89a40a5dd738c
    - SHA1:8e20dae6c62c1a0aebcee66767218d016c67b392 [weak]
    - MD5Sum:b34a19892fc2ceffa3d08da4f680c516 [weak]
    - Filesize:3533544 [weak]
   Last modification reported: Mon, 02 Sep 2024 00:32:26 +0000
   Release file created at: Mon, 02 Sep 2024 05:29:35 +0000
E: Some index files failed to download. They have been ignored, or old ones used instead.

이럴 때는 아래 명령을 실행해 주면 된다.

sudo rm -rf /var/lib/apt/lists/*
sudo apt-get update -o Acquire::CompressionTypes::Order::=gz
sudo apt update
# sudo apt upgrade

답글 남기기