都2020年了,debian7 食用指南。

2020-06-28丨运维丨暂无评论 丨890 次阅读

debian7太老了 用着真糟心。。。

1.改源
/etc/apt/sources.list

deb http://archive.debian.org/debian/ wheezy main
deb http://archive.debian.org/debian/ wheezy-backports main
deb http://archive.debian.org/debian-security/ wheezy/updates main

apt-get clean all
apt-get update
然后。。。就输出个这个。。

W: GPG error: http://archive.debian.org wheezy Release: The following signatures were invalid: KEYEXPIRED 1587841717 KEYEXPIRED 1557241909 The following signatures couldn't be verified because the public key is not available: NO_PUBKEY 7638D0442B90D010

2.更新下密匙

apt-key adv --recv-key --keyserver keyserver.ubuntu.com 7638D0442B90D010
apt-key adv --recv-key --keyserver keyserver.ubuntu.com 9D6D8F6BC857C906

然后又

E: Release file for http://archive.debian.org/debian-security/dists/wheezy/updates/Release is expired (invalid since 419d 23h 58min 55s). Updates for this repository will not be applied.

3.修改这个,没有就添加

echo "Acquire::Check-Valid-Until false;" | tee -a /etc/apt/apt.conf.d/10-nocheckvalid

``
祝君好运~
标签: debian7

热门文章

最新回复

标签

发表新评论