解决虚拟机里apt update 时源失效问题

root@rancher:~# apt-get  update  -y
命中:1 http://mirrors.aliyun.com/debian buster InRelease
获取:2 http://mirrors.aliyun.com/debian-security buster/updates InRelease [65.4 kB]
获取:3 http://mirrors.aliyun.com/debian buster-updates InRelease [51.9 kB]                              
获取:4 http://mirrors.aliyun.com/debian buster-backports InRelease [46.7 kB]                            
获取:5 https://download.docker.com/linux/debian bullseye InRelease [43.3 kB]                            
正在读取软件包列表... 完成          
E: http://mirrors.aliyun.com/debian-security/dists/buster/updates/InRelease 的 Release 文件已经过期(已经过期了 7天 9小时 3分 30秒)。该仓库的更新将不会应用。
E: http://mirrors.aliyun.com/debian/dists/buster-updates/InRelease 的 Release 文件已经过期(已经过期了 7天 4小时 18分 27秒)。该仓库的更新将不会应用。
E: http://mirrors.aliyun.com/debian/dists/buster-backports/InRelease 的 Release 文件已经过期(已经过期了 7天 4小时 18分 27秒)。该仓库的更新将不会应用。
E: https://download.docker.com/linux/debian/dists/bullseye/InRelease 的 Release 文件已经过期(已经过期了 2天 19小时 59分 17秒)。该仓库的更新将不会应用。

一直以为是源的问题,然后来回试都不行。

然后看到日期,想看看本地的。

我cao,瞎了。时间好像不对。

 

Usage:
 hwclock [function] [option...]

Time clocks utility.

Functions:
 -r, --show           display the RTC time
     --get            display drift corrected RTC time
     --set            set the RTC according to --date
 -s, --hctosys        set the system time from the RTC
 -w, --systohc        set the RTC from the system time
     --systz          send timescale configurations to the kernel
 -a, --adjust         adjust the RTC to account for systematic drift
     --predict        predict the drifted RTC time according to --date

Options:
 -u, --utc            the RTC timescale is UTC
 -l, --localtime      the RTC timescale is Local
 -f, --rtc <file>     use an alternate file to /dev/rtc0
     --directisa      use the ISA bus instead of /dev/rtc0 access
     --date <time>    date/time input for --set and --predict
     --delay <sec>    delay used when set new RTC time
     --update-drift   update the RTC drift factor
     --noadjfile      do not use /etc/adjtime
     --adjfile <file> use an alternate file to /etc/adjtime
     --test           dry run; implies --verbose
 -v, --verbose        display more details

 -h, --help           display this help
 -V, --version        display version

 

 

 

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值