在 ubunu 18.04 上使用 curl -fsSL https://get.docker.com | sh 命令安装 docker 时出现下面的错误:
curl -fsSL https://get.docker.com | sh
Failed to fetch https://download.docker.com/linux/ubuntu/dists/bionic/stable/binary-amd64/Packages.bz2 File has unexpected size (10262 != 10390).
请问如何解决?
在 github issue 中找到了解决方法:删除 /etc/apt/sources.list.d/docker.list 中下面的配置
/etc/apt/sources.list.d/docker.list
deb [arch=amd64] https://download.docker.com/linux/ubuntu bionic stable