JasonYangShadow/lpmx

apt update on containerized ubuntu 16.04 or above

JasonYangShadow opened this issue · 1 comments

root@jason:/# apt update
Get:1 http://security.ubuntu.com/ubuntu xenial-security InRelease [107 kB]
Get:2 http://archive.ubuntu.com/ubuntu xenial InRelease [247 kB]
Err:1 http://security.ubuntu.com/ubuntu xenial-security InReleasen't create tempfiles for splitting up /var/lib/apt/lists/partial/security.ubuntu.com_ubuntu_dists_xenial-security_InRelease
Could not execute 'apt-key' to verify signature (is gnupg installed?)
Err:2 http://archive.ubuntu.com/ubuntu xenial InReleasen't create tempfiles for splitting up /var/lib/apt/lists/partial/archive.ubuntu.com_ubuntu_dists_xenial_InRelease
Could not execute 'apt-key' to verify signature (is gnupg installed?)
Get:3 http://archive.ubuntu.com/ubuntu xenial-updates InRelease [109 kB]
Err:3 http://archive.ubuntu.com/ubuntu xenial-updates InReleasete tempfiles for splitting up /var/lib/apt/lists/partial/archive.ubuntu.com_ubuntu_dists_xenial-updates_InRelease
Could not execute 'apt-key' to verify signature (is gnupg installed?)
Get:4 http://archive.ubuntu.com/ubuntu xenial-backports InRelease [107 kB]
Err:4 http://archive.ubuntu.com/ubuntu xenial-backports InReleaseng up /var/lib/apt/lists/partial/archive.ubuntu.com_ubuntu_dists_xenial-backports_InRelease
Could not execute 'apt-key' to verify signature (is gnupg installed?)
Reading package lists... Done
E: Invalid message from method http: {"timestamp":"2019-01-09 02:03:13","level":"FATAL","file":"unionfs.c","line":845,"msg":"creating dirs /home/jason/app/.docker/ubuntu/16.04/workspace/rQVy7rrzJo/rw/etc/apt encounters failure with error File exists"}
{"timestamp":"2019-01-09 02:03:13","level":"FATAL","file":"unionfs.c","line":1184,"msg":"creating dirs /home/jason/app/.docker/ubuntu/16.04/workspace/rQVy7rrzJo/rw/etc/apt/auth.conf encounters failure with error File exists"}
102 Status
URI: http://security.ubuntu.com/ubuntu/dists/xenial-security/InRelease
Message: Waiting for headers
W: GPG error: http://security.ubuntu.com/ubuntu xenial-security InRelease: Could not execute 'apt-key' to verify signature (is gnupg installed?)
E: The repository 'http://security.ubuntu.com/ubuntu xenial-security InRelease' is not signed.
N: Updating from such a repository can't be done securely, and is therefore disabled by default.
N: See apt-secure(8) manpage for repository creation and user configuration details.
W: GPG error: http://archive.ubuntu.com/ubuntu xenial InRelease: Could not execute 'apt-key' to verify signature (is gnupg installed?)
E: The repository 'http://archive.ubuntu.com/ubuntu xenial InRelease' is not signed.
N: Updating from such a repository can't be done securely, and is therefore disabled by default.
N: See apt-secure(8) manpage for repository creation and user configuration details.
W: GPG error: http://archive.ubuntu.com/ubuntu xenial-updates InRelease: Could not execute 'apt-key' to verify signature (is gnupg installed?)
E: The repository 'http://archive.ubuntu.com/ubuntu xenial-updates InRelease' is not signed.
N: Updating from such a repository can't be done securely, and is therefore disabled by default.
N: See apt-secure(8) manpage for repository creation and user configuration details.
W: GPG error: http://archive.ubuntu.com/ubuntu xenial-backports InRelease: Could not execute 'apt-key' to verify signature (is gnupg installed?)
E: The repository 'http://archive.ubuntu.com/ubuntu xenial-backports InRelease' is not signed.
N: Updating from such a repository can't be done securely, and is therefore disabled by default.
N: See apt-secure(8) manpage for repository creation and user configuration details.

apt update will fail until 'apk-key list' is executed and then everything goes back to normal.

mktemp failed because of "/tmp" does not exist by default of the newly created container. should be fixed by this commit

3789015