红联Linux门户
Linux帮助

Updates for this repository will not be applied.(文件过期)

发布时间:2017-05-22 14:53:35来源:linux网站作者:wzc0066
将Debian下载源同步到本地之后,通过本地资源地址进行apt update操作时提示过期问题:
E: Release file for http://localhost/security/dists/stable/updates/InRelease is expired (invalid since 1d 1h 53min 38s). Updates for this repository will not be applied.
 
对于该问题有三种解决方法:
1)、通过cron实现定期同步。
2)、零时解决方法:
aptitude -o Acquire::Check-Valid-Until=false update 
apt-get -o Acquire::Check-Valid-Until=false update
3)、创建文件:/etc/apt/apt.conf.d/10no--check-valid-until,添加内容:
Acquire::Check-Valid-Until "0";
然后就不再提示过期警告了。

参考:
Updates for this repository will not be applied.(文件过期)
Updates for this repository will not be applied.(文件过期)
 
本文永久更新地址:http://www.linuxdiyf.com/linux/30981.html