From b3c0ab7fd87ec9341d4be0a8a8570a53722dbb78 Mon Sep 17 00:00:00 2001 From: Cameron Fairchild Date: Thu, 9 Jan 2025 18:56:37 -0500 Subject: [PATCH] Use apt-get instead of apt for scripts (#2571) apt --> apt-get --- Dockerfile | 4 ++-- scripts/install.sh | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/Dockerfile b/Dockerfile index 5a355b5cf6..03c0533746 100644 --- a/Dockerfile +++ b/Dockerfile @@ -12,10 +12,10 @@ LABEL bittensor.image.authors="bittensor.com" \ ARG DEBIAN_FRONTEND=noninteractive # Update the base image -RUN apt update && apt upgrade -y +RUN apt-get update && apt-get upgrade -y # Install bittensor ## Install dependencies -RUN apt install -y curl sudo nano git htop netcat-openbsd wget unzip tmux apt-utils cmake build-essential +RUN apt-get install -y curl sudo nano git htop netcat-openbsd wget unzip tmux apt-utils cmake build-essential ## Upgrade pip RUN pip3 install --upgrade pip diff --git a/scripts/install.sh b/scripts/install.sh index 5111d75afb..9021fb499c 100755 --- a/scripts/install.sh +++ b/scripts/install.sh @@ -175,9 +175,9 @@ mac_install_bittensor() { OS="$(uname)" if [[ "$OS" == "Linux" ]]; then - which -s apt + which -s apt-get if [[ $? == 0 ]] ; then - abort "This linux based install requires apt. To run with other distros (centos, arch, etc), you will need to manually install the requirements" + abort "This linux based install requires apt-get. To run with other distros (centos, arch, etc), you will need to manually install the requirements" fi echo """