intel / oneapi-containers

BSD 3-Clause "New" or "Revised" License
113 stars 45 forks source link

Apt not working in 23.2.1 HPC container #53

Closed alexeedm closed 4 months ago

alexeedm commented 1 year ago

Running apt update in the latest HPC OneAPI container doesn't work. It used to be fine about 1 month ago when I last tried, but not now:

$ docker pull intel/oneapi-hpckit:2023.2.1-devel-ubuntu22.04
2023.2.1-devel-ubuntu22.04: Pulling from intel/oneapi-hpckit
Digest: sha256:4cd3cf90f6495d80b42e687d3385fe159bb426e88510064d88e46937959d5cbc
Status: Image is up to date for intel/oneapi-hpckit:2023.2.1-devel-ubuntu22.04
docker.io/intel/oneapi-hpckit:2023.2.1-devel-ubuntu22.04

$ docker run -it intel/oneapi-hpckit:2023.2.1-devel-ubuntu22.04 bash
root@55f6e30993a5:/# apt update
Get:1 https://repositories.intel.com/graphics/ubuntu jammy InRelease [22.4 kB]
Get:2 https://apt.repos.intel.com/oneapi all InRelease [4451 B]
Get:3 http://security.ubuntu.com/ubuntu jammy-security InRelease [110 kB]
Get:4 http://archive.ubuntu.com/ubuntu jammy InRelease [270 kB]
Err:2 https://apt.repos.intel.com/oneapi all InRelease
  The following signatures couldn't be verified because the public key is not available: NO_PUBKEY BAC6F0C353D04109
Get:5 http://archive.ubuntu.com/ubuntu jammy-updates InRelease [119 kB]
........
Reading package lists... Done
W: GPG error: https://apt.repos.intel.com/oneapi all InRelease: The following signatures couldn't be verified because the public key is not available: NO_PUBKEY BAC6F0C353D04109
E: The repository 'https://apt.repos.intel.com/oneapi all 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.
root@55f6e30993a5:/#
gorozco1 commented 11 months ago

Hi @alexeedm

This issue is due the missing of Intel repo keys, you can fix it running the following inside the container instance.

curl -fsSL https://apt.repos.intel.com/intel-gpg-keys/GPG-PUB-KEY-INTEL-SW-PRODUCTS-2023.PUB | gpg --dearmor > /usr/share/keyrings/intel-oneapi-archive-keyring.gpg

This issue is also fixed in the latest version of Intel HPC Kit Container

You can download latest container with docker pull intel/hpckit

tingleby commented 11 months ago

@alexeedm Did the steps to fix it up work for you?

gorozco1 commented 4 months ago

as this does not have any response in 6 months we close it as other similar issues to this has been fixed.