出现这种问题的原因是当前文件的时间比你系统的时候要晚。
遇到这种情况,有两种解决办法
方法一:
直接用touch命令
touch filename
或者
touch *
然后再重新编译
方法二:
更新系统时间
1.安装ntpdate
sudo apt-get install ntpdate
2.网络时间同步
ntpdate cn.pool.ntp.org
3.系统时间同步到硬件时钟
hwclock -w
然后再重新编译
本文介绍了解决文件时间比系统时间晚的问题,提供了两种方法:一是使用touch命令更新文件时间;二是通过安装ntpdate并同步网络时间来更新系统时间。
出现这种问题的原因是当前文件的时间比你系统的时候要晚。
遇到这种情况,有两种解决办法
方法一:
直接用touch命令
touch filename
或者
touch *
然后再重新编译
方法二:
更新系统时间
1.安装ntpdate
sudo apt-get install ntpdate
2.网络时间同步
ntpdate cn.pool.ntp.org
3.系统时间同步到硬件时钟
hwclock -w
然后再重新编译

被折叠的 条评论
为什么被折叠?