在docker中使用ubuntu过程出错:
apt-get update
W: Failed to fetch http://archive.ubuntu.com/ubuntu/dists/trusty-updates/universe/binary-amd64/Packages Hash Sum mismatch
W: Failed to fetch http://archive.ubuntu.com/ubuntu/dists/trusty-security/main/source/Sources Hash Sum mismatch
E: Some index files failed to download. They have been ignored, or old ones used instead.
个人理解是因为网络影响或者ubuntu官方维护导致某些文件不存在,
可以用以下方式解决:
rm -rvf /var/lib/apt/lists/*
apt-get -y update