redis-server를 설치할 일이 생겨서 설치하던 도중 오류가 났다.
Err:1 http://kr.archive.ubuntu.com/ubuntu xenial/universe amd64 libjemalloc1 amd64 3.6.0-9ubuntu1
Could not connect to kr.archive.ubuntu.com:80 (103.22.220.133). - connect (111: Connection refused)
Err:2 http://kr.archive.ubuntu.com/ubuntu xenial/universe amd64 redis-tools amd64 2:3.0.6-1
Unable to connect to kr.archive.ubuntu.com:http:
Err:3 http://kr.archive.ubuntu.com/ubuntu xenial/universe amd64 redis-server amd64 2:3.0.6-1
Unable to connect to kr.archive.ubuntu.com:http:
E: Failed to fetch http://kr.archive.ubuntu.com/ubuntu/pool/universe/j/jemalloc/libjemalloc1_3.6.0-9ubuntu1_amd64.deb Could not connect to kr.archive.ubuntu.com:80 (103.22.220.133). - connect (111: Connection refused)
E: Failed to fetch http://kr.archive.ubuntu.com/ubuntu/pool/universe/r/redis/redis-tools_3.0.6-1_amd64.deb Unable to connect to kr.archive.ubuntu.com:http:
E: Failed to fetch http://kr.archive.ubuntu.com/ubuntu/pool/universe/r/redis/redis-server_3.0.6-1_amd64.deb Unable to connect to kr.archive.ubuntu.com:http:
E: Unable to fetch some archives, maybe run apt-get update or try with --fix-missing?
오류를 살펴보니 카이스트의 SPARCS가 운영하는 것으로 추측되는 우분투 저장소 한국 미러(kr.archive.ubuntu.com)가 죽어있었다.
이 김에 그나마 안정적인 우분투 미러로 바꿔보았다.
sudo vi /etc/apt/sources.list
:%s/kr.archive.ubuntu.com/ap-northeast-2.ec2.archive.ubuntu.com/g
(vi 치환 기능을 사용하였다.