Debian本地镜像长时间不更新

一、执行apt-get update

使用一个长期未更新的本地源,得到错误的提示:

Release file for ... is expired. Updates for this repository will not be applied.

二、解决办法

apt-get -o Acquire::Check-Valid-Until=false update