在ubuntu更新时 出现错误E: Some index files failed to download, they have been ignored, or old ones used instead

在ubuntu更新时

执行命令

sudo apt-get update

出现错误E:

 Some index files failed to download, they have been ignored, or old ones used instead

可以将目录下/var/lib/apt/lists/partial/所有的文件清掉

sudo rm /var/lib/apt/lists/* -vf

再次运行

sudo apt-get update