Linux

Ubuntu 16.04 Server에서 apt-get update 할때 hash sum 에러 날때

in2stormm 2019. 11. 22. 15:56

Ubuntu 16.04 Server에서 apt-get update 할때 hash sum 에러 날때 아래와 같이 해결하였다.

 

$ sudo apt-get update

....생략..

 

Get:39 http://kr.archive.ubuntu.com/ubuntu xenial-updates/multiverse i386 Packages [15.9 kB]
Get:40 http://kr.archive.ubuntu.com/ubuntu xenial-updates/multiverse Translation-en [8,468 B]
Get:41 http://kr.archive.ubuntu.com/ubuntu xenial-backports/main amd64 Packages [7,280 B]
Get:42 http://kr.archive.ubuntu.com/ubuntu xenial-backports/main i386 Packages [7,288 B]
Get:43 http://kr.archive.ubuntu.com/ubuntu xenial-backports/main Translation-en [4,456 B]
Get:44 http://kr.archive.ubuntu.com/ubuntu xenial-backports/universe amd64 Packages [8,064 B]
Get:45 http://kr.archive.ubuntu.com/ubuntu xenial-backports/universe i386 Packages [7,744 B]
Get:46 http://kr.archive.ubuntu.com/ubuntu xenial-backports/universe Translation-en [4,328 B]
Fetched 30.4 MB in 27s (1,095 kB/s)
Reading package lists... Done
E: Failed to fetch http://kr.archive.ubuntu.com/ubuntu/dists/xenial-updates/main/binary-i386/by-hash/SHA256/62020de0b1eff8fed4184722f037b6812922ffbf76943dbd697015fd1f807c95  Hash Sum mismatch
E: Failed to fetch http://kr.archive.ubuntu.com/ubuntu/dists/xenial-updates/universe/binary-amd64/by-hash/SHA256/389afbf68ba66477471897f9ca4f2ba39e906a98a1d29c03bdcdd47a4c11e7b5
E: Some index files failed to download. They have been ignored, or old ones used instead.

 

sudo apt-get update -o Acquire::CompressionTypes::Order::=gz
sudo apt-get upgrade -y
sudo apt-get update

 

아래 링크를 참조하였다.

https://github.com/moby/moby/issues/30207

 

Hash Sum mismatch on Ubuntu 16.04 apt-get update · Issue #30207 · moby/moby

Description apt-get update fails on fresh Ubuntu image Steps to reproduce the issue: create the following dockerfile: FROM ubuntu:16.04 MAINTAINER b@example.com RUN apt-get clean \ && rm -r...

github.com

 

그리고 또다른 방법은 vagrant를 이용하는 방법이 있는데 이것도 해결된다고 한다.

먼저 vagrant를 설치해야 한다.

vagrant ssh node-01
sudo apt-get clean
sudo apt-get update

 

https://github.com/rancher/rodeo/issues/12