I have verified that the date is indeed the problem. When I run an
ubuntu container privileged, the container has the correct date and apt
update succeeds. But when I run the container privileged and set the
date to 1971, then I get that same error message from apt update.

Therefore, this bug is a duplicate of bug #1896443

pi@raspberrypi:~ $ docker run --privileged -it ubuntu bash
root@ad897025c4b7:/# date "+%Y-%m-%d %H:%M:%S" -s "1971-01-01 00:00:00"
1971-01-01 00:00:00
root@ad897025c4b7:/# apt update
Get:1 http://ports.ubuntu.com/ubuntu-ports focal InRelease [265 kB]
Get:2 http://ports.ubuntu.com/ubuntu-ports focal-updates InRelease [111 kB]
Get:3 http://ports.ubuntu.com/ubuntu-ports focal-backports InRelease [98.3 kB]
Get:4 http://ports.ubuntu.com/ubuntu-ports focal-security InRelease [107 kB]
Reading package lists... Done
E: Release file for http://ports.ubuntu.com/ubuntu-ports/dists/focal/InRelease 
is not valid yet (invalid for another 18010d 17h 33min 0s). Updates for this 
repository will not be applied.
E: Release file for 
http://ports.ubuntu.com/ubuntu-ports/dists/focal-updates/InRelease is not valid 
yet (invalid for another 18222d 10h 50min 54s). Updates for this repository 
will not be applied.
E: Release file for 
http://ports.ubuntu.com/ubuntu-ports/dists/focal-backports/InRelease is not 
valid yet (invalid for another 18222d 10h 51min 16s). Updates for this 
repository will not be applied.
E: Release file for 
http://ports.ubuntu.com/ubuntu-ports/dists/focal-security/InRelease is not 
valid yet (invalid for another 18222d 10h 50min 42s). Updates for this 
repository will not be applied.

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1890332

Title:
  apt update fails on docker arm container 20.04

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/libseccomp/+bug/1890332/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to