skip to content
Logo I like chickens.
they're persistent.
Faust
you better try google.com...
fly you to the moon!

Debian10使用apt报错

Debian10用apt的时候报错

E: The repository 'http://security.debian.org/debian-security buster/updates Release' no longer has a Release file.
N: Updating from such a repository can't be done securely, and is therefore disabled by default.

(因为您正在使用的 Debian Buster (Debian 10) 已经到达了生命周期结束 (EOL),官方仓库已经被移除。Debian Buster 在 2022年8月已经停止支持。 )

解决方案:使用归档仓库

修改 /etc/apt/sources.list

sudo cp /etc/apt/sources.list /etc/apt/sources.list.backup
sudo nano /etc/apt/sources.list

替换为:

deb http://archive.debian.org/debian buster main
deb-src http://archive.debian.org/debian buster main
deb http://archive.debian.org/debian-security buster/updates main
deb-src http://archive.debian.org/debian-security buster/updates main

Done:

sudo apt update