From b4032c074e3ae4d88e5d7374dd5f51d10def3d46 Mon Sep 17 00:00:00 2001 From: Robert Cohn Date: Mon, 2 Oct 2023 08:33:32 -0400 Subject: [PATCH 1/3] update apt key Using instructions from here: https://www.intel.com/content/www/us/en/docs/oneapi/installation-guide-linux/2023-2/apt.html#GUID-6E0D0AE9-20CB-424F-B734-F5EC1E131DB7 --- scripts/setup_apt_repo_linux_no_sudo.sh | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/scripts/setup_apt_repo_linux_no_sudo.sh b/scripts/setup_apt_repo_linux_no_sudo.sh index 1e2e1f91..e11ee963 100755 --- a/scripts/setup_apt_repo_linux_no_sudo.sh +++ b/scripts/setup_apt_repo_linux_no_sudo.sh @@ -4,7 +4,10 @@ # # SPDX-License-Identifier: MIT -wget https://apt.repos.intel.com/intel-gpg-keys/GPG-PUB-KEY-INTEL-SW-PRODUCTS-2023.PUB -apt-key add GPG-PUB-KEY-INTEL-SW-PRODUCTS-2023.PUB -echo "deb https://apt.repos.intel.com/oneapi all main" | tee /etc/apt/sources.list.d/oneAPI.list +# download the key to system keyring +wget -O- https://apt.repos.intel.com/intel-gpg-keys/GPG-PUB-KEY-INTEL-SW-PRODUCTS.PUB | gpg --dearmor | tee /usr/share/keyrings/oneapi-archive-keyring.gpg > /dev/null + +# add signed entry to apt sources and configure the APT client to use Intel repository: +echo "deb [signed-by=/usr/share/keyrings/oneapi-archive-keyring.gpg] https://apt.repos.intel.com/oneapi all main" | tee /etc/apt/sources.list.d/oneAPI.list + apt-get update -o Dir::Etc::sourcelist="sources.list.d/oneAPI.list" -o APT::Get::List-Cleanup="0" From eb8a9bf9d704b610ded47d5f43c5099d1c4ce335 Mon Sep 17 00:00:00 2001 From: Robert Cohn Date: Mon, 2 Oct 2023 08:35:58 -0400 Subject: [PATCH 2/3] Update setup_apt_repo_linux.sh --- scripts/setup_apt_repo_linux.sh | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/scripts/setup_apt_repo_linux.sh b/scripts/setup_apt_repo_linux.sh index ab47b08f..cfd7f8d9 100755 --- a/scripts/setup_apt_repo_linux.sh +++ b/scripts/setup_apt_repo_linux.sh @@ -4,7 +4,9 @@ # # SPDX-License-Identifier: MIT -wget https://apt.repos.intel.com/intel-gpg-keys/GPG-PUB-KEY-INTEL-SW-PRODUCTS-2023.PUB -sudo apt-key add GPG-PUB-KEY-INTEL-SW-PRODUCTS-2023.PUB -echo "deb https://apt.repos.intel.com/oneapi all main" | sudo tee /etc/apt/sources.list.d/oneAPI.list +# download the key to system keyring +wget -O- https://apt.repos.intel.com/intel-gpg-keys/GPG-PUB-KEY-INTEL-SW-PRODUCTS.PUB | gpg --dearmor | sudo tee /usr/share/keyrings/oneapi-archive-keyring.gpg > /dev/null + +# add signed entry to apt sources and configure the APT client to use Intel repository: +echo "deb [signed-by=/usr/share/keyrings/oneapi-archive-keyring.gpg] https://apt.repos.intel.com/oneapi all main" | sudo tee sudo apt-get update -o Dir::Etc::sourcelist="sources.list.d/oneAPI.list" -o APT::Get::List-Cleanup="0" From f4ad86333720e27f989ac08d5abd012caac8bc0a Mon Sep 17 00:00:00 2001 From: Maxim Zakharov Date: Mon, 27 Nov 2023 13:48:05 +0100 Subject: [PATCH 3/3] Added missing tee argument --- scripts/setup_apt_repo_linux.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/setup_apt_repo_linux.sh b/scripts/setup_apt_repo_linux.sh index cfd7f8d9..2cef42c6 100755 --- a/scripts/setup_apt_repo_linux.sh +++ b/scripts/setup_apt_repo_linux.sh @@ -8,5 +8,5 @@ wget -O- https://apt.repos.intel.com/intel-gpg-keys/GPG-PUB-KEY-INTEL-SW-PRODUCTS.PUB | gpg --dearmor | sudo tee /usr/share/keyrings/oneapi-archive-keyring.gpg > /dev/null # add signed entry to apt sources and configure the APT client to use Intel repository: -echo "deb [signed-by=/usr/share/keyrings/oneapi-archive-keyring.gpg] https://apt.repos.intel.com/oneapi all main" | sudo tee +echo "deb [signed-by=/usr/share/keyrings/oneapi-archive-keyring.gpg] https://apt.repos.intel.com/oneapi all main" | sudo tee /etc/apt/sources.list.d/oneAPI.list sudo apt-get update -o Dir::Etc::sourcelist="sources.list.d/oneAPI.list" -o APT::Get::List-Cleanup="0"