Linux

Debian源无法更新下载软件包解决办法

报错信息如下:

尝试apt-get update  提示InRelease文件已过期

E: Release file for http://mirrors.tencentyun.com/debian/dists/jessie-updates/InRelease is expired (invalid since 5d 0h 55min 32s). Updates for this repository will not be applied.

某云源和163源对比如下:
某云7月12号已过期
163源
解决办法:
使用root权限执行以下命令
aptitude -o Acquire::Check-valid-Until=false update        (忽略检测过期时间并更新源)
apt-get install   XXXXX
或直接替换cat /etc/apt/sources.list 内容为163 sources.list
机票:http://mirrors.163.com/.help/debian.html

以Jessie为例, 编辑/etc/apt/sources.list文件, 在文件最前面添加以下条目(操作前请做好相应备份)

deb http://mirrors.163.com/debian/ jessie main non-free contrib
deb http://mirrors.163.com/debian/ jessie-updates main non-free contrib
deb http://mirrors.163.com/debian/ jessie-backports main non-free contrib
deb-src http://mirrors.163.com/debian/ jessie main non-free contrib
deb-src http://mirrors.163.com/debian/ jessie-updates main non-free contrib
deb-src http://mirrors.163.com/debian/ jessie-backports main non-free contrib
deb http://mirrors.163.com/debian-security/ jessie/updates main non-free contrib
deb-src http://mirrors.163.com/debian-security/ jessie/updates main non-free contrib
(0)

本文由 樱花博客 作者:樱花 发表,转载请注明来源!

关键词:,

热评文章

发表评论