apt-get update
Get:1 http://ftp.yzu.edu.tw/Linux/kali kali-rolling InRelease [30.5 kB]
Reading package lists... Done
E: Release file for http://http.kali.org/kali/dists/kali-rolling/InRelease is not valid yet (invalid for another 10h 37min 24s). Updates for this repository will not be applied
源列表
deb http://http.kali.org/kali kali-rolling main non-free contrib
deb-src http://http.kali.org/kali kali-rolling main non-free contrib
答案1
它说“E:发布文件http://http.kali.org/kali/dists/kali-rolling/InRelease尚未生效(另外 10 小时 37 分 24 秒内无效)。此存储库的更新将不会应用”
因此,听起来您的来源尚未生效(在接下来的 10 小时 37 分 24 秒内无效)。之后请重试。
我以为你可能设置了错误的源,但是https://docs.kali.org/general-use/kali-linux-sources-list-repositories说看起来正确。所以您的计算机日期可能设置错误,请尝试检查/设置日期和时区。(sudo ntpdate -v pool.ntp.org
可能有效)
答案2
sudo systemctl 重启 ntp.service && ntpq -p
或者
手动:“sudo nano /etc/ntp.conf”并添加以下行。
服务器 0.ubuntu.pool.ntp.org
服务器 1.ubuntu.pool.ntp.org
服务器 2.ubuntu.pool.ntp.org
服务器 3.ubuntu.pool.ntp.org
答案3
E: Release file for http://http.kali.org/kali/dists/kali-rolling/InRelease is not valid yet (invalid for another 10h 37min 24s). Updates for this repository will not be applied
当您的系统时间不正确时,您将收到此错误。尝试更改系统时间并执行 apt-get update。对我来说,它运行完美...
答案4
我尝试时遇到了同样的问题:
sudo apt-get update
Get:1 http://kali.download/kali kali-rolling InRelease [30.6 kB]
Reading package lists... Done
E: Release file for http://http.kali.org/kali/dists/kali-rolling/InRelease is not valid yet (invalid for another 3h 0min 29s). Updates for this repository will not be applied.
为了修复这个问题我运行了:
sudo apt install ntp
然后在那之后,我必须跑
sudo systemctl start ntpsec
然后你最终可以运行:
sudo apt update
没有错误。希望这能有所帮助。