W: Failed to fetch http://packages.microsoft.com/repos/vscode/dists/stable/main/binary-amd64/Packages Hash Sum mismatch
E: Some index files failed to download. They have been ignored, or old ones used instead.
在Ubuntu下sudo apt-get update时出现了这个bug,但我本身其实没有安装vscode,不知道为什么会有这个源。
所以我选择直接删除这个list,不去fetch它了:
cd /etc/apt/sources.list.d
sudo rm ./vscode.list
然后再sudo apt-get update
即可