萌樱の小窝

我永远喜欢樱.jpg

Debian 8 apt-get update 失败解决方法

MoeSakura's Avatar 2020-01-02

萌樱用 Debian 8 时 apt-get update 失败了,出现了以下错误

1
2
3
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.

运行以下命令换源即可

1
2
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

本文作者 : MoeSakura
本文使用 署名-非商业性使用-相同方式共享 4.0 国际 (CC BY-NC-SA 4.0) 协议
本文链接 : https://moesakura.world/archives/failed-to-fetch/

本文最后更新于 天前,文中所描述的信息可能已发生改变