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

萌樱用 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 它不香吗?(小声

最后修改:2020 年 02 月 24 日 05 : 36 PM

发表评论