我正在尝试使用
sudo apt-get update
但我收到错误:
W: Failed to fetch http://archive.ubuntu.com/ubuntu/dists/trusty/Release
Unable to find expected entry 'restricted/source/Sources' in Release
file (Wrong sources.list entry or malformed file)
E: Some index files failed to download. They have been ignored, or old
ones used instead.
我用过sudo rm -vf /var/lib/apt/lists/*
但还是失败了。请给我一些建议
答案1
我认为您需要检查“/etc/apt/sources.list”。尝试查找错误消息中给出的 URL,并在其前面添加“#”以将其转换为注释。顺便问一下,您是否手动更改了文件?
即使出现错误,也应该意味着只是忽略了错误的行。仍然应该检查所有其他(正确的)行是否有更新。