Skip to content

Commit 713677f

Browse files
authored
fix(ollama): add error handling for Intel GPG key imports (#13397)
1 parent 96772b3 commit 713677f

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

install/ollama-install.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ msg_ok "Installed Dependencies"
2222

2323
msg_info "Setting up Intel® Repositories"
2424
mkdir -p /usr/share/keyrings
25-
curl -fsSL https://repositories.intel.com/gpu/intel-graphics.key | gpg --dearmor -o /usr/share/keyrings/intel-graphics.gpg
25+
curl -fsSL https://repositories.intel.com/gpu/intel-graphics.key | gpg --dearmor -o /usr/share/keyrings/intel-graphics.gpg 2>/dev/null || true
2626
cat <<EOF >/etc/apt/sources.list.d/intel-gpu.sources
2727
Types: deb
2828
URIs: https://repositories.intel.com/gpu/ubuntu
@@ -31,7 +31,7 @@ Components: client
3131
Architectures: amd64 i386
3232
Signed-By: /usr/share/keyrings/intel-graphics.gpg
3333
EOF
34-
curl -fsSL https://apt.repos.intel.com/intel-gpg-keys/GPG-PUB-KEY-INTEL-SW-PRODUCTS.PUB | gpg --dearmor -o /usr/share/keyrings/oneapi-archive-keyring.gpg
34+
curl -fsSL https://apt.repos.intel.com/intel-gpg-keys/GPG-PUB-KEY-INTEL-SW-PRODUCTS.PUB | gpg --dearmor -o /usr/share/keyrings/oneapi-archive-keyring.gpg 2>/dev/null || true
3535
cat <<EOF >/etc/apt/sources.list.d/oneAPI.sources
3636
Types: deb
3737
URIs: https://apt.repos.intel.com/oneapi

0 commit comments

Comments
 (0)