萌樱用 Debian 8 时 apt-get update 失败了,出现了以下错误
W: Failed to fetch http://ftp.debian.org/debian/dists/jessie-updates/InRelease Unable to find expected entry 'main/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.
运行以下命令换源即可
printf "deb http://archive.debian.org/debian/ jessie main\ndeb-src http://archive.debian.org/debian/ jessie main\ndeb http://security.debian.org jessie/updates main\ndeb-src http://security.debian.org jessie/updates main" > /etc/apt/sources.list
apt-get update
官方消息
Removal of Wheezy and Jessie (except LTS) from mirrors
Debian 10 它不香吗?(小声
版权声明:本文为原创文章,版权归 萌樱 所有。
本文链接:https://moesakura.world/archives/failed-to-fetch/
所有原创文章采用 知识共享署名-非商业性使用 4.0 国际许可协议 进行许可。
您可以自由的转载和修改,但请务必注明文章来源并且不可用于商业目的。