Ubuntu apt-get update 错误解决办法
执行命令 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
然后检查 /etc/opt/source.list文件,查看更新源:
在后添加一行:
deb http://mirrors.aliyun.com/ubuntu xenial main restricted universe
保存后,再次执行 sudo apt-get update
(source.list 文件详解参考 https://blog.csdn.net/u012843189/article/details/80964287)