Debian7:

cp -r /etc/apt/sources.list /etc/apt/sources.list.bak;echo "deb http://archive.debian.org/debian/ wheezy main contrib non-free" > /etc/apt/sources.list;cat /etc/apt/sources.list;apt-get update;

Debian8:

echo "deb http://snapshot.debian.org/archive/debian/20210326T030000Z jessie main" > /etc/apt/sources.list

如果更新后出现:There is no public key available for the following key IDs: xxxxxxxxxxxxxxxx
可运行如下命令修复

aptitude install debian-keyring debian-archive-keyring

请输入图片描述

Last modification:November 7, 2023
If you think my article is useful to you, please feel free to appreciate