X 的发布文件无效但 apt-get 更新中出现错误 [英] Release file for X is not valid yet error in apt-get update

查看:35
本文介绍了X 的发布文件无效但 apt-get 更新中出现错误的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在尝试构建基于 ubuntu 的 Docker 容器(Windows 的 Docker)时,我突然收到类似于

When trying to build my ubuntu-based Docker container (Docker for Windows), all of a sudden I get an error similar to

E: Release file for http://archive.ubuntu.com/ubuntu/dists/focal-updates/InRelease is not valid yet (invalid for another 9h 55min 59s). Updates for this repository will not be applied.

并且构建失败.我该如何解决这个问题?

and the build fails. How can I fix this?

推荐答案

请试试这个命令.

sudo hwclock --hctosys

sudo hwclock --hctosys

我通过上面的命令修复了错误.

I fixed the error by above commands.

这篇关于X 的发布文件无效但 apt-get 更新中出现错误的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆