From caeb45a9df115cef41dfd8e91cf1be3e0902ca49 Mon Sep 17 00:00:00 2001 From: Sebastian Rittau Date: Sat, 27 Apr 2024 14:25:22 +0200 Subject: [PATCH] Use apt-get to install packages (#11824) --- .github/workflows/daily.yml | 2 +- .github/workflows/stubtest_third_party.yml | 2 +- scripts/generate_proto_stubs.sh | 2 +- scripts/sync_tensorflow_protobuf_stubs.sh | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/.github/workflows/daily.yml b/.github/workflows/daily.yml index f3c1c84d2..faf10f881 100644 --- a/.github/workflows/daily.yml +++ b/.github/workflows/daily.yml @@ -84,7 +84,7 @@ jobs: if [ "${{ runner.os }}" = "Linux" ]; then if [ -n "$PACKAGES" ]; then - sudo apt update && sudo apt install -y $PACKAGES + sudo apt-get update && sudo apt-get install -y $PACKAGES fi PYTHON_EXECUTABLE="xvfb-run python" diff --git a/.github/workflows/stubtest_third_party.yml b/.github/workflows/stubtest_third_party.yml index b1d8fcc3d..8573da747 100644 --- a/.github/workflows/stubtest_third_party.yml +++ b/.github/workflows/stubtest_third_party.yml @@ -69,7 +69,7 @@ jobs: if [ "${{ runner.os }}" = "Linux" ]; then if [ -n "$PACKAGES" ]; then echo "Installing apt packages: $PACKAGES" - sudo apt update && sudo apt install -y $PACKAGES + sudo apt-get update && sudo apt-get install -y $PACKAGES fi PYTHON_EXECUTABLE="xvfb-run python" diff --git a/scripts/generate_proto_stubs.sh b/scripts/generate_proto_stubs.sh index 1d238a0bc..138924fcb 100755 --- a/scripts/generate_proto_stubs.sh +++ b/scripts/generate_proto_stubs.sh @@ -16,7 +16,7 @@ PROTOBUF_VERSION=26.1 MYPY_PROTOBUF_VERSION=3.6.0 # brew install coreutils wget -# sudo apt install -y unzip +# sudo apt-get install -y unzip REPO_ROOT="$(realpath "$(dirname "${BASH_SOURCE[0]}")"/..)" TMP_DIR="$(mktemp -d)" PYTHON_PROTOBUF_FILENAME="protobuf-$PROTOBUF_VERSION.zip" diff --git a/scripts/sync_tensorflow_protobuf_stubs.sh b/scripts/sync_tensorflow_protobuf_stubs.sh index ab35fffdb..19f91951c 100755 --- a/scripts/sync_tensorflow_protobuf_stubs.sh +++ b/scripts/sync_tensorflow_protobuf_stubs.sh @@ -11,7 +11,7 @@ TENSORFLOW_VERSION=2.16.1 MYPY_PROTOBUF_VERSION=3.6.0 # brew install coreutils wget -# sudo apt install -y unzip +# sudo apt-get install -y unzip REPO_ROOT="$(realpath "$(dirname "${BASH_SOURCE[0]}")"/..)" TMP_DIR="$(mktemp -d)" TENSORFLOW_FILENAME="v$TENSORFLOW_VERSION.zip"