Open MLNW opened 2 years ago
I guess it might be related to #10 since I am using podman. But it still works with other images and your CentOS8 image works without issue.
Hi. I have had a similar error with image geerlingguy/docker-ubuntu2004-ansible:latest
that I have fixed by adding a task for chmod 1777 /tmp
ok: [instance] => {
"msg": {
"changed": true,
"cmd": "apt-get update && apt-get -y install apt-transport-https ca-certificates gnupg gpg-agent",
"delta": "0:00:04.096494",
"end": "2024-08-02 07:53:06.915538",
"failed": false,
"msg": "",
"rc": 0,
"start": "2024-08-02 07:53:02.819044",
"stderr": "W: An error occurred during the signature verification. The repository is not updated and the previous index files will be used. GPG error: http://security.ubuntu.com/ubuntu focal-security InRelease: Couldn't create temporary file /tmp/apt.conf.6DJWwh for passing config to apt-key\nW: An error occurred during the signature verification. The repository is not updated and the previous index files will be used. GPG error: http://archive.ubuntu.com/ubuntu focal InRelease: Couldn't create temporary file /tmp/apt.conf.Hc79Dm for passing config to apt-key\nW: An error occurred during the signature verification. The repository is not updated and the previous index files will be used. GPG error: http://archive.ubuntu.com/ubuntu focal-updates InRelease: Couldn't create temporary file /tmp/apt.conf.FQd78s for passing config to apt-key\nW: An error occurred during the signature verification. The repository is not updated and the previous index files will be used. GPG error: http://archive.ubuntu.c/
"stderr_lines": [
"W: An error occurred during the signature verification. The repository is not updated and the previous index files will be used. GPG error: http://security.ubuntu.com/ubuntu focal-security InRelease: Couldn't create temporary file /tmp/apt.conf.6DJWwh for passing config to apt-key",
"W: An error occurred during the signature verification. The repository is not updated and the previous index files will be used. GPG error: http://archive.ubuntu.com/ubuntu focal InRelease: Couldn't create temporary file /tmp/apt.conf.Hc79Dm for passing config to apt-key",
"W: An error occurred during the signature verification. The repository is not updated and the previous index files will be used. GPG error: http://archive.ubuntu.com/ubuntu focal-updates InRelease: Couldn't create temporary file /tmp/apt.conf.FQd78s for passing config to apt-key",
"W: An error occurred during the signature verification. The repository is not updated and the previous index files will be used. GPG error: http://archive.ubuntu.com/ubuntu focal-backports InRelease: Couldn't create temporary file /tmp/apt.conf.W5JTZt for passing config to apt-key",
"W: Failed to fetch http://archive.ubuntu.com/ubuntu/dists/focal/InRelease Couldn't create temporary file /tmp/apt.conf.Hc79Dm for passing config to apt-key",
"W: Failed to fetch http://archive.ubuntu.com/ubuntu/dists/focal-updates/InRelease Couldn't create temporary file /tmp/apt.conf.FQd78s for passing config to apt-key",
"W: Failed to fetch http://archive.ubuntu.com/ubuntu/dists/focal-backports/InRelease Couldn't create temporary file /tmp/apt.conf.W5JTZt for passing config to apt-key",
"W: Failed to fetch http://security.ubuntu.com/ubuntu/dists/focal-security/InRelease Couldn't create temporary file /tmp/apt.conf.6DJWwh for passing config to apt-key",
"W: Some index files failed to download. They have been ignored, or old ones used instead.",
"debconf: unable to initialize frontend: Dialog",
"debconf: (Dialog frontend will not work on a dumb terminal, an emacs shell buffer, or without a controlling terminal.)",
"debconf: falling back to frontend: Readline",
"debconf: unable to initialize frontend: Readline",
"debconf: (This frontend requires a controlling tty.)",
"debconf: falling back to frontend: Teletype",
"dpkg-preconfigure: unable to re-open stdin: "
],
[...]
For some reason, I am unable to update the apt cache with this docker image. I tried it with
ubuntu:latest
where everything works fine. Do you have an idea how to solve this?My
molecule.yml
: